Skip to content

Commit

Permalink
updated populate jbrowse with local configurable datastore URL. #23
Browse files Browse the repository at this point in the history
  • Loading branch information
ctcncgr committed May 17, 2023
1 parent 2ac1bb9 commit be12c67
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions scripts/lis_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ def populate_dscensor(taxa_list, nodes_out, from_github, log_file, log_level):
default="../_data/taxon_list.yml",
help="""Taxa.yml file. (Default: ../_data/taxon_list.yml)""",
)
@click.option(
"--datastore_url",
default="https://data.legumeinfo.org",
help="""URL hosting datastore formatted files.""",
)
@click.option(
"--jbrowse_out",
default="./autocontent",
Expand All @@ -126,15 +131,25 @@ def populate_dscensor(taxa_list, nodes_out, from_github, log_file, log_level):
help="""Log Level to output messages. (default: INFO)""",
)
def populate_jbrowse2(
jbrowse_url, taxa_list, jbrowse_out, from_github, cmds_only, log_file, log_level
jbrowse_url,
datastore_url,
taxa_list,
jbrowse_out,
from_github,
cmds_only,
log_file,
log_level,
):
"""CLI entry for populate-jbrowse2"""
logger = setup_logging(log_file, log_level, "populate-jbrowse2")
if not jbrowse_url:
logger.error("--jbrowse_url required for populate-jbrowse2")
sys.exit(1)
parser = ProcessCollections(
logger, jbrowse_url=jbrowse_url, out_dir=jbrowse_out
logger,
jbrowse_url=jbrowse_url,
datastore_url=datastore_url,
out_dir=jbrowse_out,
) # initialize class
logger.info("Processing Collections...")
parser.parse_collections(taxa_list, from_github) # parse_collections
Expand Down

0 comments on commit be12c67

Please sign in to comment.