@@ -202,7 +202,7 @@ def replicate_filter(source, ppm, replicates, min_peaks, rsd_thres=None, filelis
202
202
203
203
if hasattr (pls_comb [0 ].metadata , "injectionOrder" ):
204
204
pl .metadata ["injectionOrder" ] = pls_comb [0 ].metadata ["injectionOrder" ]
205
- pl .metadata ["replicate " ] = [_pl .metadata ["replicate" ] for _pl in pls_comb ]
205
+ pl .metadata ["replicates " ] = [_pl .metadata ["replicate" ] for _pl in pls_comb ]
206
206
pl .tags .add_tags (* pls_comb [0 ].tags .tag_of (None ),
207
207
** {t : pls_comb [0 ].tags .tag_of (t ) for t in pls_comb [0 ].tags .tag_types })
208
208
@@ -459,6 +459,8 @@ def create_sample_list(source, path_out, delimiter="\t", qc_label="QC", col_name
459
459
header = ["filename" , "batch" , "injectionOrder" , "classLabel" , "sampleType" ]
460
460
if hasattr (source [0 ].metadata , "replicate" ):
461
461
header .insert (1 , "replicate" )
462
+ elif hasattr (source [0 ].metadata , "replicates" ):
463
+ header .insert (1 , "replicates" )
462
464
463
465
pls_tags = [pl .tags for pl in source ]
464
466
pls_ids = [pl .ID for pl in source ]
@@ -497,6 +499,8 @@ def create_sample_list(source, path_out, delimiter="\t", qc_label="QC", col_name
497
499
if len (pls_metadata ) > 0 :
498
500
if hasattr (pls_metadata [i ], "replicate" ):
499
501
row [header .index ("replicate" )] = pls_metadata [i ].replicate
502
+ if hasattr (pls_metadata [i ], "replicates" ):
503
+ row [header .index ("replicates" )] = pls_metadata [i ].replicates
500
504
if hasattr (pls_metadata [i ], "injectionOrder" ):
501
505
row [header .index ("injectionOrder" )] = pls_metadata [i ].injectionOrder
502
506
0 commit comments