rki-mf1 / covsonar

A database-driven system for handling genomic sequences of SARS-CoV-2 and screening genomic profiles.
GNU General Public License v3.0
6 stars 0 forks source link

Allow match query parameters to be read from a file #123

Closed matthuska closed 11 months ago

matthuska commented 11 months ago

All match query parameters can now be read from a file instead of having to include them all in the command line. To use this, prefix the name of the file with a "@" character. For example, the following two queries are the same:

$ ./sonar --db mydb.db --lineage BQ.1.1 BA.5.5 B.1.1.7

and

$ cat lineage.txt  # query arguments are listed one per line
BQ.1.1
BA.5.5
B.1.1.7
$ ./sonar --db mydb.db --lineage @lineage.txt

This should work for basically all match parameters that take multiple values (--acc, --lineage, --zip, --date, ...).

matthuska commented 11 months ago

Also works for restore, remove, and vcf output arguments.

Closes #7