aboutsummaryrefslogtreecommitdiff
path: root/bh20sequploader
diff options
context:
space:
mode:
authorPjotr Prins2020-05-28 09:52:22 -0500
committerPjotr Prins2020-05-28 09:52:22 -0500
commitaad579f05dbfc7bacf11419a8d5ec48697471b24 (patch)
treeb8f6752922c41cc43dc0de62be56b8fa02fe4123 /bh20sequploader
parent426d826ed3c3f77c1ee7af53c7b41dc3c1979485 (diff)
downloadbh20-seq-resource-aad579f05dbfc7bacf11419a8d5ec48697471b24.tar.gz
bh20-seq-resource-aad579f05dbfc7bacf11419a8d5ec48697471b24.tar.lz
bh20-seq-resource-aad579f05dbfc7bacf11419a8d5ec48697471b24.zip
Uploader: validate metadata first (it is faster)
Diffstat (limited to 'bh20sequploader')
-rw-r--r--bh20sequploader/main.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bh20sequploader/main.py b/bh20sequploader/main.py
index 10d1029..0d463f7 100644
--- a/bh20sequploader/main.py
+++ b/bh20sequploader/main.py
@@ -26,16 +26,16 @@ def main():
api = arvados.api(host=ARVADOS_API_HOST, token=ARVADOS_API_TOKEN, insecure=True)
+ if not qc_metadata(args.metadata.name):
+ print("Failed metadata qc")
+ exit(1)
+
try:
target = qc_fasta(args.sequence)
except ValueError as e:
print(e)
exit(1)
- if not qc_metadata(args.metadata.name):
- print("Failed metadata qc")
- exit(1)
-
if args.validate:
print("Valid")
exit(0)