From 8f1819dc9b7ace9727d396d6b89f79b3b41165f8 Mon Sep 17 00:00:00 2001 From: AndreaGuarracino Date: Fri, 28 Aug 2020 11:20:22 +0200 Subject: local QC is optional --- bh20sequploader/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bh20sequploader') diff --git a/bh20sequploader/main.py b/bh20sequploader/main.py index d2a6c5f..314a2ea 100644 --- a/bh20sequploader/main.py +++ b/bh20sequploader/main.py @@ -50,7 +50,7 @@ def qc_stuff(metadata, sequence_p1, sequence_p2, do_qc=True): target[0] = ("reads_1."+target[0][0][6:], target[0][1]) target[1] = ("reads_2."+target[1][0][6:], target[0][1]) - if target[0][2] == 'text/fasta' and sample_id != target[0][1]: + if do_qc and target[0][2] == 'text/fasta' and sample_id != target[0][1]: raise ValueError("The sample_id field in the metadata must be the same as the FASTA header") except Exception as e: -- cgit v1.2.3