Skip to content

Commit

Permalink
update civicpy cache only when querying civic
Browse files Browse the repository at this point in the history
Fixes #21
  • Loading branch information
HomoPolyethylen committed Apr 3, 2024
1 parent 1b948f0 commit 9824970
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions querynator/query_api/civic_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
gzipped,
)

# load the civic cache (necessary for bulk run)
civic.load_cache()


def check_vcf_input(vcf_path, logger):
"""
Expand Down Expand Up @@ -609,6 +606,10 @@ def query_civic(vcf, out_path, logger, input_file, genome, filter_vep):
:return: None
:rtype: None
"""
# necessary for bulk run
logger.info("Updating CIViCpy Cache")
civic.load_cache()

logger.info("Querying")

coord_dict = get_coordinates_from_vcf(vcf, genome, logger)
Expand Down

0 comments on commit 9824970

Please sign in to comment.