@@ -115,14 +115,14 @@ function normalizeExperimentData(context, metadata, data) {
115115 )
116116 . append ( 'author_orcid' , split ( referenceData . author_orcids || referenceData . author_orcid ) )
117117 . append ( 'has_cycle' , [ ...new Set ( cycle_ids ) ] )
118- . append ( 'sample_organ' , referenceData . organ_uberon )
118+ . append ( 'sample_organ' , referenceData . organ_uberon ?. replaceAll ( '_' , ':' ) ?? '' )
119119 . build ( ) ;
120120}
121121
122122function normalizeExperimentCycleData ( context , data ) {
123123 const omapId = data [ 0 ] . omap_id ;
124124 const uniqueCycleNumbers = [ ...new Set ( data . map ( row => row . cycle_number ) ) ] ;
125- return uniqueCycleNumbers . map ( cycleNumber =>
125+ return uniqueCycleNumbers . map ( cycleNumber =>
126126 createExperimentCycle ( context , omapId , cycleNumber , data )
127127 ) ;
128128}
@@ -135,7 +135,7 @@ function createExperimentCycle(context, omapId, cycleNumber, allData) {
135135 . append ( 'label' , `${ omapId } experiment, Cycle ${ cycleNumber } ` )
136136 . append ( 'type_of' , [ 'ccf:ExperimentCycle' ] )
137137 . append ( 'cycle_number' , cycleNumber )
138- . append ( 'uses_antibodies' , uniqueAntibodies . map ( row =>
138+ . append ( 'uses_antibodies' , uniqueAntibodies . map ( row =>
139139 createUsedAntibodyObject ( context , omapId , cycleNumber , row , allData )
140140 ) )
141141 . build ( ) ;
@@ -149,8 +149,8 @@ function removeDuplicateAntibodies(cycleData) {
149149}
150150
151151function getRowIndexFromAllData ( row , allData ) {
152- return allData . findIndex ( dataRow =>
153- dataRow . rrid === row . rrid &&
152+ return allData . findIndex ( dataRow =>
153+ dataRow . rrid === row . rrid &&
154154 dataRow . HGNC_ID === row . HGNC_ID &&
155155 dataRow . conjugate === row . conjugate &&
156156 dataRow . lot_number === row . lot_number &&
@@ -162,7 +162,7 @@ function getRowIndexFromAllData(row, allData) {
162162function createUsedAntibodyObject ( context , omapId , cycleNumber , row , allData ) {
163163 const antibodyObject = new ObjectBuilder ( )
164164 . append ( 'id' , getDilutedAntibodyInstanceIri (
165- context , omapId , cycleNumber , row . rrid , row . lot_number ,
165+ context , omapId , cycleNumber , row . rrid , row . lot_number ,
166166 row . dilution , row . concentration_value
167167 ) )
168168 . append ( 'label' , getDilutedAntibodyInstanceLabel (
0 commit comments