Skip to content

Commit

Permalink
add pathogen option to barcode_build
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuailevy committed Oct 18, 2024
1 parent ad8ff10 commit 4c446ae
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions freyja/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ def update(outdir, noncl, buildlocal, pathogen):
@click.option('--noncl', is_flag=True, default=True,
help='only include lineages that are'
'confirmed by cov-lineages', show_default=True)
def barcode_build(pb, outdir, noncl):
@click.option('--pathogen', type=click.Choice(pathogens),
default='SARS-CoV-2',
help='Pathogen of interest',
show_default=True)
def barcode_build(pb, outdir, noncl, pathogen):
"""
Build barcodes from a custom protobuf tree
"""
Expand All @@ -292,8 +296,8 @@ def barcode_build(pb, outdir, noncl):
os.pardir))
locDir = outdir
print('Getting outbreak data')
get_curated_lineage_data(locDir)
get_cl_lineages(locDir)
get_curated_lineage_data(locDir, pathogen)
get_cl_lineages(locDir, pathogen)
# # get data from UShER
print('Downloading a new global tree')
print("Converting tree info to barcodes")
Expand Down

0 comments on commit 4c446ae

Please sign in to comment.