Skip to content

Commit

Permalink
DEV: fix prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vini2 committed Jun 12, 2023
1 parent f5f01a9 commit ce10511
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions metacoag
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ M_MARKER_GENES = 108
"--prefix",
help="prefix for the output file",
type=str,
default="",
required=False,
)
@click.option(
Expand Down Expand Up @@ -210,6 +211,11 @@ def main(

n_bins = 0

# Validate prefix
if prefix != "":
if not prefix.endswith("_"):
prefix = f"{prefix}_"


# Setup logger
# ------------------------------------------------------------------------
Expand Down Expand Up @@ -249,13 +255,6 @@ def main(
if assembler.lower() == "megahit":
contig_paths_file = "None"

# Validate prefix
if prefix != None:
if not prefix.endswith("_"):
prefix = f"{prefix}_"
else:
prefix = ""

# Validate min_bin_size
if min_bin_size <= 0:
logger.error("Please enter a valid number for min_bin_size")
Expand Down

0 comments on commit ce10511

Please sign in to comment.