Skip to content

Commit

Permalink
enable single genome input
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMainguy committed Sep 15, 2023
1 parent d4a7316 commit 45ba8cb
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 78 deletions.
17 changes: 3 additions & 14 deletions ppanggolin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from ppanggolin.utils import check_input_files, set_verbosity_level, add_common_arguments, manage_cli_and_config_args
import ppanggolin.nem.partition
import ppanggolin.nem.rarefaction
import ppanggolin.nem.partition
import ppanggolin.graph
import ppanggolin.annotate
import ppanggolin.cluster
Expand Down Expand Up @@ -143,19 +142,9 @@ def cmd_line() -> argparse.Namespace:
if args.subcommand == "align" and args.sequences is None:
parser.error("Please provide sequences (nucleotides or amino acids) for alignment with the pangenome gene families "
"using the --sequences argument, either through the command line or the config file.")


# if args.subcommand == "projection" and args.organism_name is None:
# parser.error("Please specify the name of the input organism you want to annotate using the provided pangenome. "
# "You can use the --organism_name argument either through the command line or the config file.")

# if args.subcommand == "projection" and args.fasta_file is None and args.annot_file is None:
# parser.error("Please provide either a sequence file using the --fasta_file option or an annotation file (GFF/GBFF) "
# "using the --annot_file option for the input organism, either through the command line or the config file, "
# "to enable annotation with the provided pangenome.")




if args.subcommand == "projection":
ppanggolin.projection.projection.check_projection_arguments(args, parser)

return args

Expand Down
Loading

0 comments on commit 45ba8cb

Please sign in to comment.