Skip to content

Commit

Permalink
add help msg, bioconda test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgowan committed Jul 21, 2020
1 parent 6470d4a commit e3d6f70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fastg2protlib/fastg2protlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def write_peptide_fasta(db, fasta_name="peptide.fasta"):


def peptides_for_fastg(
fastg_filename,
fastg_filename=None,
cleavage="trypsin",
min_protein_length=166,
min_peptide_length=10,
Expand Down Expand Up @@ -350,6 +350,10 @@ def peptides_for_fastg(
"""
# endregion

if not fastg_filename:
print("A FASTG file path is mandatory.")
exit(0)

logger.info(f"FASTG file: {fastg_filename}")
logger.info(f"Protein len: {min_protein_length}")
logger.info(f"Peptide len: {min_peptide_length}")
Expand Down

0 comments on commit e3d6f70

Please sign in to comment.