From e3d6f708c6f04335793db7579ba54995da32398d Mon Sep 17 00:00:00 2001 From: tmcgowan Date: Tue, 21 Jul 2020 15:27:37 -0500 Subject: [PATCH] add help msg, bioconda test --- fastg2protlib/fastg2protlib.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fastg2protlib/fastg2protlib.py b/fastg2protlib/fastg2protlib.py index 3434172..6f849ff 100644 --- a/fastg2protlib/fastg2protlib.py +++ b/fastg2protlib/fastg2protlib.py @@ -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, @@ -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}")