Skip to content

Commit

Permalink
Merge pull request #51 from qbicsoftware/hotfix/fail_unknown_data_imgag
Browse files Browse the repository at this point in the history
make imgag dropbox raise exception if unknown data types arrive
  • Loading branch information
sven1103 committed Nov 3, 2020
2 parents 86b41e9 + 461b81e commit ccd3077
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drop-boxes/register-imgag-dropbox/register-imgag.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,13 +596,14 @@ def process(transaction):
print rawFile
if rawFile.endswith("vcf") or rawFile.endswith("vcf.gz"):
vcfs.append(rawFile)
if rawFile.endswith("fastq") or rawFile.endswith("fastq.gz"):
elif rawFile.endswith("fastq") or rawFile.endswith("fastq.gz"):
fastqs.append(rawFile)
if rawFile.endswith("GSvar") or rawFile.endswith("GSvar.gz"):
elif rawFile.endswith("GSvar") or rawFile.endswith("GSvar.gz"):
gsvars.append(rawFile)
if rawFile.endswith("tsv") or rawFile.endswith("tsv.gz"):
elif rawFile.endswith("tsv") or rawFile.endswith("tsv.gz"):
tsvs.append(rawFile)

else:
raise Exception(rawFile + " is of an unsupported format")

#if rawFiles[0].endswith("vcf") or rawFiles[0].endswith("vcf.gz"):
# datasetSample = find_and_register_vcf(transaction, jsonContent)
Expand Down

0 comments on commit ccd3077

Please sign in to comment.