forked from zibraproject/zika-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reference selection functionality for multiref schemes (currently…
… only artic-inrb-mpox) (#147) * First commit * make model dir if it doesn't exist * scheme length isn't an int
- Loading branch information
Showing
6 changed files
with
284 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
from artic.utils import get_scheme | ||
from pathlib import Path | ||
|
||
|
||
def main(): | ||
import argparse | ||
import os | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument( | ||
"--scheme-name", | ||
type=str, | ||
required=True, | ||
help="Name of the scheme you wish to fetch", | ||
) | ||
parser.add_argument( | ||
"--scheme-version", | ||
type=str, | ||
required=True, | ||
help="Version of the scheme you wish to fetch", | ||
) | ||
parser.add_argument( | ||
"--scheme-directory", | ||
type=Path, | ||
help="Directory where schemes are stored", | ||
default=f"{os.getcwd()}/primer-schemes", | ||
) | ||
parser.add_argument( | ||
"--scheme-length", | ||
type=str, | ||
help="Length of the scheme to fetch, only required if the scheme has multiple possible lengths.", | ||
) | ||
parser.add_argument( | ||
"--read-file", | ||
type=Path, | ||
help="FASTQ file containing reads sequenced with the scheme in question, this is only required when fetching a scheme with reference selection functionality.", | ||
) | ||
args = parser.parse_args() | ||
|
||
get_scheme( | ||
scheme_name=args.scheme_name, | ||
scheme_version=args.scheme_version, | ||
scheme_directory=args.scheme_directory, | ||
scheme_length=args.scheme_length, | ||
read_file=args.read_file, | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.