|
33 | 33 |
|
34 | 34 |
|
35 | 35 | variant_type_to_data_type_etc = { |
36 | | - 'snv': ['Simple Nucleotide Variation', ['Raw SNV Calls', None], ['CaVEMan'], ['GATK:Mutect2']], # dataCategory, [dataType, data_subtype], analysis_tools |
| 36 | + 'snv': ['Simple Nucleotide Variation', ['Raw SNV Calls', None], ['CaVEMan'], ['GATK:Mutect2']], # dataCategory, [dataType, data_subtypes], analysis_tools |
37 | 37 | 'indel': ['Simple Nucleotide Variation', ['Raw InDel Calls', None], ['Pindel'], ['GATK:Mutect2']], |
38 | 38 | 'cnv': ['Copy Number Variation', ['Raw CNV Calls', None], ['ASCAT']], |
39 | 39 | 'sv': ['Structural Variation', ['Raw SV Calls', None], ['BRASS']], |
40 | 40 | 'caveman-supplement': ['Simple Nucleotide Variation', ['SNV Supplement', None], ['CaVEMan']], |
41 | 41 | 'pindel-supplement': ['Simple Nucleotide Variation', ['InDel Supplement', None], ['Pindel']], |
42 | 42 | 'ascat-supplement': ['Copy Number Variation', ['CNV Supplement', None], ['ASCAT']], |
43 | 43 | 'brass-supplement': ['Structural Variation', ['SV Supplement', None], ['BRASS']], |
44 | | - 'timings-supplement': ['Quality Control Metrics', ['Analysis QC', 'Runtime Stats'], None, None], |
45 | | - 'bas_metrics': ['Quality Control Metrics', ['Aligned Reads QC', 'Alignment Metrics'], ['Sanger:bam_stats']], |
46 | | - 'contamination_metrics': ['Quality Control Metrics', ['Analysis QC', 'Cross Sample Contamination'], ['Sanger:verifyBamHomChk'], ['GATK:CalculateContamination']], |
47 | | - 'ascat_metrics': ['Quality Control Metrics', ['Analysis QC', 'Ploidy and Purity Estimation'], ['ASCAT']], |
48 | | - 'genotyped_gender_metrics': ['Quality Control Metrics', ['Analysis QC', 'Genotyping Stats'], ['Sanger:compareBamGenotypes']], |
49 | | - 'mutect_filtering_metrics': ['Quality Control Metrics', ['Analysis QC', 'Variant Filtering Stats'], [], ['GATK:FilterMutectCalls']], |
50 | | - 'mutect_callable_metrics': ['Quality Control Metrics', ['Analysis QC', 'Variant Callable Stats'], [], ['GATK:Mutect2']], |
| 44 | + 'timings-supplement': ['Quality Control Metrics', ['Analysis QC', ['Runtime Stats']], None, None], |
| 45 | + 'bas_metrics': ['Quality Control Metrics', ['Aligned Reads QC', ['Alignment Metrics']], ['Sanger:bam_stats']], |
| 46 | + 'contamination_metrics': ['Quality Control Metrics', ['Analysis QC', ['Cross Sample Contamination']], ['Sanger:verifyBamHomChk'], ['GATK:CalculateContamination']], |
| 47 | + 'ascat_metrics': ['Quality Control Metrics', ['Analysis QC', ['Ploidy', 'Tumour Purity']], ['ASCAT']], |
| 48 | + 'genotyped_gender_metrics': ['Quality Control Metrics', ['Analysis QC', ['Genotyping Stats']], ['Sanger:compareBamGenotypes']], |
| 49 | + 'mutect_filtering_metrics': ['Quality Control Metrics', ['Analysis QC', ['Variant Filtering Stats']], [], ['GATK:FilterMutectCalls']], |
| 50 | + 'mutect_callable_metrics': ['Quality Control Metrics', ['Analysis QC', ['Variant Callable Stats']], [], ['GATK:Mutect2']], |
51 | 51 | } |
52 | 52 |
|
53 | 53 | workflow_full_name = { |
@@ -151,22 +151,22 @@ def get_files_info(file_to_upload, wf_short_name, wf_version, somatic_or_germli |
151 | 151 |
|
152 | 152 | file_info['info'] = { |
153 | 153 | 'data_category': variant_type_to_data_type_etc[variant_type][0], |
154 | | - 'data_subtype': None |
| 154 | + 'data_subtypes': None |
155 | 155 | } |
156 | 156 |
|
157 | 157 | extra_info = {} |
158 | 158 | if new_fname.endswith('.vcf.gz'): |
159 | 159 | file_info['dataType'] = variant_type_to_data_type_etc[variant_type][1][0] |
160 | | - file_info['info']['data_subtype'] = variant_type_to_data_type_etc[variant_type][1][1] |
| 160 | + file_info['info']['data_subtypes'] = variant_type_to_data_type_etc[variant_type][1][1] |
161 | 161 | elif new_fname.endswith('.vcf.gz.tbi'): |
162 | 162 | file_info['dataType'] = 'VCF Index' |
163 | 163 | elif new_fname.endswith('.tgz'): |
164 | 164 | if new_fname.endswith('-supplement.tgz'): |
165 | 165 | file_info['dataType'] = variant_type_to_data_type_etc[variant_type][1][0] |
166 | | - file_info['info']['data_subtype'] = variant_type_to_data_type_etc[variant_type][1][1] |
| 166 | + file_info['info']['data_subtypes'] = variant_type_to_data_type_etc[variant_type][1][1] |
167 | 167 | elif new_fname.endswith('_metrics.tgz'): |
168 | 168 | file_info['dataType'] = variant_type_to_data_type_etc[variant_type][1][0] |
169 | | - file_info['info']['data_subtype'] = variant_type_to_data_type_etc[variant_type][1][1] |
| 169 | + file_info['info']['data_subtypes'] = variant_type_to_data_type_etc[variant_type][1][1] |
170 | 170 | else: |
171 | 171 | sys.exit('Error: unknown file type "%s"' % file_to_upload) |
172 | 172 |
|
|
0 commit comments