diff options
author | Peter Amstutz | 2020-04-08 17:41:19 -0400 |
---|---|---|
committer | Peter Amstutz | 2020-04-08 17:46:12 -0400 |
commit | 9458ed33da08c787c4bb20af7b4108c93334b351 (patch) | |
tree | e4db1d5dbc8d653e05d612dc1229cef181bf68b3 /bh20sequploader/qc_metadata.py | |
parent | 7140367bd832294c1756fe2369e91e7acc305083 (diff) | |
download | bh20-seq-resource-9458ed33da08c787c4bb20af7b4108c93334b351.tar.gz bh20-seq-resource-9458ed33da08c787c4bb20af7b4108c93334b351.tar.lz bh20-seq-resource-9458ed33da08c787c4bb20af7b4108c93334b351.zip |
Fastq now runs through fastq2fasta pipeline
then gets added to pangenome analysis.
Diffstat (limited to 'bh20sequploader/qc_metadata.py')
-rw-r--r-- | bh20sequploader/qc_metadata.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bh20sequploader/qc_metadata.py b/bh20sequploader/qc_metadata.py index 78b31b2..ebe4dfc 100644 --- a/bh20sequploader/qc_metadata.py +++ b/bh20sequploader/qc_metadata.py @@ -1,6 +1,7 @@ import schema_salad.schema import logging import pkg_resources +import logging def qc_metadata(metadatafile): schema_resource = pkg_resources.resource_stream(__name__, "bh20seq-schema.yml") @@ -17,5 +18,6 @@ def qc_metadata(metadatafile): try: doc, metadata = schema_salad.schema.load_and_validate(document_loader, avsc_names, metadatafile, True) return True - except: - return False + except Exception as e: + logging.warn(e) + return False |