|
33 | 33 |
|
34 | 34 |
|
35 | 35 | variant_type_to_data_type_etc = { |
36 | | - 'snv': ['Simple Nucleotide Variation', 'Raw SNV Calls', ['CaVEMan'], ['Mutect2']], # dataCategory, dataType, analysis_tools |
37 | | - 'indel': ['Simple Nucleotide Variation', 'Raw InDel Calls', ['Pindel'], ['Mutect2']], |
| 36 | + 'snv': ['Simple Nucleotide Variation', 'Raw SNV Calls', ['CaVEMan'], ['GATK-Mutect2']], # dataCategory, dataType, analysis_tools |
| 37 | + 'indel': ['Simple Nucleotide Variation', 'Raw InDel Calls', ['Pindel'], ['GATK-Mutect2']], |
38 | 38 | 'cnv': ['Copy Number Variation', 'Raw CNV Calls', ['ASCAT']], |
39 | 39 | 'sv': ['Structural Variation', 'Raw SV Calls', ['BRASS']], |
40 | 40 | 'caveman-supplement': ['Simple Nucleotide Variation', 'Variant Calling Supplement', ['CaVEMan']], |
|
43 | 43 | 'brass-supplement': ['Structural Variation', 'Variant Calling Supplement', ['BRASS']], |
44 | 44 | 'timings-supplement': [None, 'Variant Calling Supplement', ['CaVEMan', 'Pindel', 'ASCAT', 'BRASS']], |
45 | 45 | 'bas_metrics': ['Quality Control Metrics', 'Alignment QC', ['bas_stats']], |
46 | | - 'contamination_metrics': ['Quality Control Metrics', 'Cross Sample Contamination', ['verifyBamHomChk'], ['CalculateContamination']], |
| 46 | + 'contamination_metrics': ['Quality Control Metrics', 'Cross Sample Contamination', ['verifyBamHomChk'], ['GATK-CalculateContamination']], |
47 | 47 | 'ascat_metrics': ['Quality Control Metrics', 'Ploidy and Purity Estimation', ['ASCAT']], |
48 | 48 | 'genotyped_gender_metrics': ['Quality Control Metrics', 'Genotyping Inferred Gender', ['compareBamGenotypes']], |
| 49 | + 'mutect_filtering_metrics': ['Quality Control Metrics', 'Mutect2 Filtering Stats', [], ['GATK-FilterMutectCalls']], |
| 50 | + 'mutect_callable_metrics': ['Quality Control Metrics', 'Mutect2 Callabe Stats', [], ['GATK-Mutect2']], |
49 | 51 | } |
50 | 52 |
|
51 | 53 | workflow_full_name = { |
@@ -119,9 +121,14 @@ def get_files_info(file_to_upload, wf_short_name, wf_version, somatic_or_germli |
119 | 121 | elif file_to_upload.endswith('mutect2-indel.vcf.gz') or file_to_upload.endswith('mutect2-indel.vcf.gz.tbi'): |
120 | 122 | variant_type = 'indel' |
121 | 123 | elif file_to_upload.endswith('_metrics.tgz'): |
122 | | - variant_type = file_to_upload.split(".")[-2] |
123 | | - if re.match(r'.+?\.normal.contamination_metrics.tgz', file_to_upload): |
124 | | - fname_sample_part = normal_analysis['samples'][0]['sampleId'] |
| 124 | + if file_to_upload.endswith('.contamination_metrics.tgz'): |
| 125 | + variant_type = file_to_upload.split(".")[-2] |
| 126 | + if re.match(r'.+?\.normal.contamination_metrics.tgz', file_to_upload): |
| 127 | + fname_sample_part = normal_analysis['samples'][0]['sampleId'] |
| 128 | + elif file_to_upload.endswith('.filtering_metrics.tgz'): |
| 129 | + variant_type = 'mutect_filtering_metrics' |
| 130 | + elif file_to_upload.endswith('.callable_metrics.tgz'): |
| 131 | + variant_type = 'mutect_callable_metrics' |
125 | 132 | else: |
126 | 133 | sys.exit('Error: unknown file type "%s"' % file_to_upload) |
127 | 134 |
|
|
0 commit comments