aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Amstutz2020-07-03 16:36:55 -0400
committerPeter Amstutz2020-07-03 16:36:55 -0400
commit841af02eaa45c1b7395d5f4e4711de3c3661c146 (patch)
tree7d94b10ea530b79ad0b4ecc9903b6b71455eddb8
parentae4cb3c2cf7103bbc84f52618bb755d7ce25775b (diff)
downloadbh20-seq-resource-841af02eaa45c1b7395d5f4e4711de3c3661c146.tar.gz
bh20-seq-resource-841af02eaa45c1b7395d5f4e4711de3c3661c146.tar.lz
bh20-seq-resource-841af02eaa45c1b7395d5f4e4711de3c3661c146.zip
Fix single arg upload
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
-rw-r--r--bh20sequploader/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bh20sequploader/main.py b/bh20sequploader/main.py
index c442af0..89c30e8 100644
--- a/bh20sequploader/main.py
+++ b/bh20sequploader/main.py
@@ -62,7 +62,7 @@ def main():
parser = argparse.ArgumentParser(description='Upload SARS-CoV-19 sequences for analysis')
parser.add_argument('metadata', type=argparse.FileType('r'), help='sequence metadata json')
parser.add_argument('sequence_p1', type=argparse.FileType('rb'), help='sequence FASTA/FASTQ')
- parser.add_argument('sequence_p2', type=argparse.FileType('rb'), default=None, help='sequence FASTQ pair')
+ parser.add_argument('sequence_p2', type=argparse.FileType('rb'), default=None, nargs='?', help='sequence FASTQ pair')
parser.add_argument("--validate", action="store_true", help="Dry run, validate only")
args = parser.parse_args()