GithubHelp home page GithubHelp logo

transmart / transmart-extensions Goto Github PK

View Code? Open in Web Editor NEW
1.0 29.0 10.0 16.68 MB

Elements that are being collected for refactoring but do not yet have a home. This project needs to be reviewed often!

Groovy 28.64% Java 69.75% CSS 1.59% JavaScript 0.02%

transmart-extensions's Introduction

transmart-extensions

Elements that are being collected for refactoring but do not yet have a home. This project needs to be reviewed often!

Sub-Directories (each is currently created as a plugin to add to core transmart)

transmart-java essentially isolating Java classes originally extracted from transmart-legacy-db. biomart-domain This isolates all of the domain classes associated with biomart schema. Originally extracted from transmart-legacy-db; updated to transmart-legacy-db reflect that. search-domain This isolates all of the domain classes associated with searchapp schema. Originally extracted from transmart-legacy-db; updated to transmart-legacy-db reflect that.

transmart-extensions's People

Contributors

akhandeshi avatar aoehmichen avatar cataphract avatar davidxn avatar fguitton avatar forus avatar hsahni avatar ricepeterm avatar sdenizot avatar terry-weymouth avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

transmart-extensions's Issues

biomart_domain: bio_data_uuid may contains non-unique bio_data_id values

Hi,
I created new database from transmart-data master branch and it looks like biomart.bio_data_uuid doesn't contains records for bio_assay_platform (which used for "Add new analysis" and "Add new assay" on "Browse" tab). I tried to insert them manually using following command:

insert into biomart.bio_data_uid
(bio_data_id, unique_id, bio_data_type)
select p.bio_assay_platform_id, 'BAP:' || platform_accession, 'BIO_ASSAY_PLATFORM'
from biomart.bio_assay_platform p
left join biomart.bio_data_uid uid
on uid.bio_data_id = p.bio_assay_platform_id and uid.bio_data_type = 'BIO_ASSAY_PLATFORM'
where uid.bio_data_id is null;

but it fails with error:

ERROR: duplicate key value violates unique constraint "bio_data_uid_pk"
DETAIL: Key (bio_data_id)=(169331) already exists.

I checked this id and it is already occupied by BIO_CONCEPT_CODE:
169331;"ASSAY_TYPE_OF_BM_STUDIED:PROTEIN";"BIO_CONCEPT_CODE"

The easiest way to avoid this problem from my point of view it make unique contraint by pair (bio_data_type, bio_data_id) and looking for unique code using filter by type additional to filter by id.

BioData data = BioData.get(id);

should be replaced with something like:

BioData data = BioData.findWhere(id: id, type: "BIO_ASSAY_PLATFORM");

It can be incapsulated into BioData to just provide method like:

BioData.getUniqueId(platform)

Please, let me know what do you think about it and may be I'm doing something wrong. I can provide pull request if you like for this solution.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.