Skip to content

Commit

Permalink
refactored and fixed #33
Browse files Browse the repository at this point in the history
  • Loading branch information
HomoPolyethylen committed Jul 2, 2024
1 parent 6ecc165 commit 7ea9ff1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions querynator/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,13 @@ def query_api_cgi(mutations, cnas, translocations, cancer, genome, token, email,
required=True,
default="GRCh38",
)
@click.option(
"-c",
"--cancer",
help="the cancer DOID (id or name) to be searched.",
default=None,
type=click.STRING,
)
@click.option(
"-f",
"--filter_vep",
Expand All @@ -427,14 +434,7 @@ def query_api_cgi(mutations, cnas, translocations, cancer, genome, token, email,
show_default=True,
default=False,
)
@click.option(
"-c",
"--cancer",
help="the cancer DOID (id or name) to be searched.",
default=None,
type=click.STRING,
)
def query_api_civic(vcf, outdir, genome, cancer_doid, filter_vep):
def query_api_civic(vcf, outdir, genome, cancer, filter_vep):
try:
result_dir = get_unique_querynator_dir(f"{outdir}")
dirname, basename = os.path.split(result_dir)
Expand All @@ -447,7 +447,7 @@ def query_api_civic(vcf, outdir, genome, cancer_doid, filter_vep):

logger.info("Query the Clinical Interpretations of Variants In Cancer (CIViC)")
# run analysis
query_civic(candidate_variants, result_dir, logger, vcf, genome, cancer_doid, filter_vep)
query_civic(candidate_variants, result_dir, logger, vcf, genome, cancer, filter_vep)

else:
logger.info("Query the Clinical Interpretations of Variants In Cancer (CIViC)")
Expand Down

0 comments on commit 7ea9ff1

Please sign in to comment.