Skip to content

Commit

Permalink
add tests for header issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gbouras13 committed Mar 12, 2024
1 parent c31939f commit db9e7e9
Show file tree
Hide file tree
Showing 6 changed files with 2,033 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin/input_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def get_input():
"-g",
"--gene_predictor",
action="store",
help='User specified gene predictor. Use "-g phanotate" or "-g prodigal" or "-g prodigal-gv" or "-g genbank". \nDefaults to phanotate (not required unless prodigal is desired).',
default="phanotate",
help='User specified gene predictor. Use "-g phanotate" or "-g prodigal" or "-g prodigal-gv" or "-g genbank". \nDefaults to phanotate usually and prodigal-gv in meta mode.',
default="default",
)
parser.add_argument(
"-m",
Expand Down
6 changes: 6 additions & 0 deletions bin/pharokka.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ def main():

# set the gene_predictor
gene_predictor = args.gene_predictor
# set to phanotate by default and prodigal-gv in meta mode
if gene_predictor == "default":
if args.meta is True:
gene_predictor = "prodigal-gv"
else:
gene_predictor = "phanotate"

# instantiate outdir
out_dir = instantiate_dirs(args.outdir, args.meta, args.force)
Expand Down
2 changes: 1 addition & 1 deletion bin/pharokka_proteins.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def main():
logger.info("Checking dependencies.")
check_dependencies(False) # to check pharokka_proteins.py, don't need mash

# instantiation/checking fasta and gene_predictor
# instantiation/checking fasta
validate_fasta(args.infile)
validate_threads(args.threads)

Expand Down
4 changes: 2 additions & 2 deletions bin/processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def tidy_phanotate_output(out_dir):
names=col_list,
skiprows=2,
dtype=dtype_dict,
comment='#' # to skip the headers
comment="#", # to skip the headers
)
# get rid of the headers and reset the index
phan_df = phan_df[phan_df["start"] != "#id:"]
Expand Down Expand Up @@ -440,7 +440,7 @@ def tidy_prodigal_output(out_dir, gv_flag):
index_col=False,
names=col_list,
dtype=dtype_dict,
comment='#' # to skip the headers
comment="#", # to skip the headers
)

# meta mode brings in some Nas so remove them
Expand Down

0 comments on commit db9e7e9

Please sign in to comment.