For General (GPAT) assays, files will be automatically associated with assay result runs provided that:
Assume that the following image files exist in the server's file repository at the path scans/patient1/CT/
When the following assay result file is imported...
ParticipantId | Date | ScanFile |
---|---|---|
100 | 12/12/2017 | scans/patient1/CT/ct_scan1.png |
100 | 12/12/2017 | scans/patient1/CT/ct_scan2.png |
100 | 12/12/2017 | scans/patient1/CT/ct_scan3.png |
...the imported assay results will resolve and link to the files in the repository. Note the automatically generated thumbnail in the assay results:
File association also works when importing using the assay API, for example:
LABKEY.Experiment.saveBatch({
assayId : 444,
batch : {
runs : [{
properties : {
sop : 'filebrowser.png'
},
dataRows : [{
specimenId : '22',
participantId : '33',
filePath : 'cat.png'
}]
}]
},
success : function(){console.log('success');},
failure : function(){console.log('failure');}
});
LABKEY.Assay.importRun({
assayId: 444,
name: "new run",
properties: {
"sop": "assayData/dog.png"
},
batchProperties: {
"Batch Field": "value"
},
dataRows : [{
specimenId : '22',
participantId : '33',
filePath : 'cat.png'
},{
specimenId : '22',
participantId : '33',
filePath : 'filebrowser.png'
},{
specimenId : '22',
participantId : '33',
filePath : 'assayData/dog.png'
}],
success : function(){console.log('success');},
failure : function(){console.log('failure');}
});
previousnext |
expand allcollapse all |