Skip to content

Commit cfb4884

Browse files
committed
Add feature to handle mulitple indices and sequences simulatenously
1 parent 48d9033 commit cfb4884

2 files changed

Lines changed: 143 additions & 68 deletions

File tree

newmap/main.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
DEFAULT_KMER_SEARCH_RANGE = "20:200"
2121

2222
FASTA_FILE_METAVAR = "fasta_file"
23+
INDEX_FILE_METAVAR = "index_file"
2324

2425
INDEX_SUBCOMMAND = "index"
2526
UNIQUE_LENGTHS_SUBCOMMAND = "search"
@@ -95,12 +96,14 @@ def parse_subcommands():
9596
unique_length_parser.add_argument(
9697
"fasta_file",
9798
metavar=FASTA_FILE_METAVAR,
98-
help="File of (gzipped) fasta file for kmer generation")
99+
help="File of (gzipped) fasta file for kmer generation. Optionally "
100+
"comma separate multiple fasta files to simultaneously process.")
99101

100102
unique_length_parser.add_argument(
101103
"index_file",
102104
nargs="?",
103-
help="File of reference index file to count occurances in. "
105+
help="File of reference index file to count occurances in. Optionally "
106+
"comma separate multiple index files to simulatenously count in. "
104107
f"(default: basename of {FASTA_FILE_METAVAR} with "
105108
f"the {INDEX_EXTENSION} extension)")
106109

0 commit comments

Comments
 (0)