Skip to content

Commit

Permalink
started adding CLI options
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Apr 24, 2019
1 parent 69100b7 commit c98b796
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions vaxrank/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,25 @@ def cached_run_arg_parser():
return arg_parser


def add_variant_filter_args(arg_parser):
filter_group = arg_parser.add_argument_group("Variant filtering")
filter_group.add_argument(
"--filter-min-rna-vaf",
default=0.001,
type=float,
help="Minimum RNA VAF (variant allele fraction) (default %(default)s)")
filter_group.add_argument(
"--filter-min-ratio-rna-variant-count-to-other-nonref-alleles",
default=4.0,
type=float,
help=(
"If other non-ref alleles are present in RNA besides variant, "
"how many times more support required for variant than total for "
"other alleles. For example, if ref is 'G' and alt is 'A', then "
"the number of reads supporting 'A' must be at least %(default)sx "
"more than the number of reads supporting 'C' and 'T'."))


def add_version_args(parser):
parser.add_argument(
"--version",
Expand Down

0 comments on commit c98b796

Please sign in to comment.