Skip to content

Commit

Permalink
improved params names
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Nov 2, 2023
1 parent 306278c commit fbe383a
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions assembly_finder/assembly_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ def get_snakefile():
required=True,
)
@click.option(
"-e",
"--extensions",
"-s",
"--suffixes",
type=str,
help="suffix of files to download from NCBI's ftp",
default="assembly_report.txt,genomic.fna.gz",
show_default=True,
)
@click.option("-o", "--output", help="Output directory", type=str)
@click.option("-o", "--outdir", help="output directory", type=str)
@click.option(
"-n",
"--dryrun_status",
is_flag=True,
default=False,
show_default=True,
help="Snakemake dryrun to see the scheduling plan",
help="snakemake dryrun to see the scheduling plan",
)
@click.option(
"-t",
Expand All @@ -92,15 +92,15 @@ def get_snakefile():
@click.option(
"-db",
"--database",
type=str,
type=click.Choice(["refseq", "genbank"], case_sensitive=False),
help="download from refseq or genbank",
default="refseq",
show_default=True,
)
@click.option(
"-id",
"--uid",
help="are inputs UIDs",
help="are inputs UIDs or assembly names",
type=str,
default=False,
show_default=True,
Expand Down Expand Up @@ -139,7 +139,7 @@ def get_snakefile():
)
@click.option(
"-r",
"--filter_rank",
"--rank",
help="rank to filter by (example: species)",
default="none",
type=str,
Expand All @@ -148,15 +148,15 @@ def get_snakefile():
@click.option(
"-nr",
"--n_by_rank",
help="Max number of genome by target rank (example: 1 per species)",
help="max number of genome by target rank (example: 1 per species)",
type=str,
default="none",
show_default=True,
)
@click.option(
"-nb",
"--n_by_entry",
help="Number of genomes per entry",
help="number of assemblies per entry",
type=str,
default="all",
show_default=True,
Expand All @@ -172,8 +172,8 @@ def get_snakefile():
@click.version_option(version, "-v", "--version")
def cli(
input,
output,
extensions,
outdir,
suffixes,
dryrun_status,
threads,
ncbi_key,
Expand All @@ -184,14 +184,14 @@ def cli(
assembly_level,
annotation,
exclude,
filter_rank,
rank,
n_by_rank,
n_by_entry,
ete_db,
snakemake_args,
):
if not output:
output = datetime.datetime.today().strftime("%Y-%m-%d")
if not outdir:
outdir = datetime.datetime.today().strftime("%Y-%m-%d")

if dryrun_status:
dryrun = "-n"
Expand All @@ -211,17 +211,17 @@ def cli(
f"ncbi_key={ncbi_key} "
f"ncbi_email={ncbi_email} "
f"input={input} "
f"exts={extensions} "
f"sfxs={suffixes} "
f"nb={n_by_entry} "
f"db={database} "
f"uid={uid} "
f"alvl={assembly_level} "
f"excl={exclude} "
f"rcat={refseq_category} "
f"annot={annotation} "
f"rank={filter_rank} "
f"rank={rank} "
f"nrank={n_by_rank} "
f"outdir={output} "
f"outdir={outdir} "
f"{args}"
)
logging.info(f"Executing: {cmd}")
Expand Down

0 comments on commit fbe383a

Please sign in to comment.