Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Adjust transmart-batch to load high-dim data in the new way #122

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

ewelinagr
Copy link
Member

@ewelinagr ewelinagr commented Dec 7, 2017

Fix NOS-4 - loading of gene expression data

Make tm-batch load high-dim data with the new observations/modifiers in 17.1:

  • High dim observations having textual value with sample name (subject
    sample mapping).
  • Modifier on it specifying high dim data type and as value assay ID.

Fix NOS-4 - loading of gene expression data

Make tm-batch load high-dim data with the new observations/modifiers
that this data needs in 17.1:
- High dim observations having textual value with sample name (subject
sample mapping).
- Modifier on it specifying high dim data type and as value assay ID.
sourcesystem_cd: STUDY_ID
assert count == 45
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be nice to add a test for the column values of the HD observation rows.

// add modifier for each assay_id
String modifier = 'TRANSMART:HIGHDIM:' + platform.markerType.toUpperCase()
for (int i=0; i<result.size(); i++){
rowSet.instanceNum = i+1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does not look right. instance_id should be unique for each row. Pass it maybe to addValue method?

""", [study_num: study.studyNum]

if (trialVisit) {
def t = trialVisit?.first()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it work for the data people to bind row with a first trial visit from the study? If so you should do it once per job.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure how to get a trial visit there and what to do, if there is more than one visit or none (for now there is a function to add a default visit then)

@@ -72,4 +110,30 @@ class DummyFactGenerator extends AbstractItemCountingItemStreamItemReader<Clinic

@Override
protected void doClose() throws Exception {}

private List<Map<String, Object>> getAssayIds(String sample_id) {
List result = jdbcTemplate.queryForList """
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about making the result of the query the main data source, instead of reading from subjectConceptMappingFileRows?

forus pushed a commit that referenced this pull request Feb 1, 2018
Added conditional before destroying analysis dialog
forus pushed a commit that referenced this pull request Feb 1, 2018
Added conditional before destroying analysis dialog
@forus forus changed the base branch from master to dev March 7, 2018 03:55
@ewelinagr ewelinagr force-pushed the dev branch 3 times, most recently from 93183e7 to b651751 Compare August 16, 2022 07:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants