@@ -168,7 +168,7 @@ def get_files_info(file_to_upload, aligner, date_str, seq_experiment_analysis_di
168168 file_type = 'splice_junctions'
169169 elif re .match (r'.+?splicesites\.txt$' , file_to_upload ):
170170 file_type = 'splice_junctions'
171- elif re .match (r'.+?supplement\.tgz$' , file_to_upload ):
171+ elif re .match (r'.+?supplement\.tgz$' , file_to_upload ) or re . match ( r'.+?supplement\.tar.gz$' , file_to_upload ) :
172172 file_type = 'supplement'
173173 else :
174174 sys .exit ('Error: unknown file type "%s"' % file_to_upload )
@@ -193,7 +193,7 @@ def get_files_info(file_to_upload, aligner, date_str, seq_experiment_analysis_di
193193
194194 # file naming patterns:
195195 # pattern: <argo_study_id>.<argo_donor_id>.<argo_sample_id>.[rna-seq].<date>.<aligner|rg_id>.<file_type>.<file_ext>
196- # example: TEST-PR.DO250183.SA610229.wxs .20200319.sanger-wxs.somatic.snv.vcf.gz
196+ # example: TEST-PR.DO250183.SA610229.rna-seq .20200319.star.genome_aln.cram
197197 new_fname = '.' .join ([
198198 seq_experiment_analysis_dict ['studyId' ],
199199 seq_experiment_analysis_dict ['samples' ][0 ]['donor' ]['donorId' ],
@@ -316,7 +316,7 @@ def main():
316316 'experiment' : seq_experiment_analysis_dict .get ('experiment' )
317317 }
318318
319- if args .analysis_type == "rna_sequencing_alignment" :
319+ if "sequencing_alignment" in args .analysis_type :
320320 payload ['read_group_count' ] = seq_experiment_analysis_dict .get ('read_group_count' )
321321 payload ['read_groups' ] = copy .deepcopy (seq_experiment_analysis_dict .get ('read_groups' ))
322322
0 commit comments