Skip to content

Commit

Permalink
ADD : Add the option to use the defragmentation pipeline in 'workflow'
Browse files Browse the repository at this point in the history
  • Loading branch information
Adelme Bazin committed Nov 29, 2019
1 parent c9b2e85 commit a03a937
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.11
1.0.12
11 changes: 6 additions & 5 deletions ppanggolin/workflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ def launch(args):
readClustering(pangenome, args.clusters)

elif args.clusters is None:#we should have the sequences here.
clustering(pangenome, args.tmpdir, args.cpu)
clustering(pangenome, tmpdir = args.tmpdir, cpu = args.cpu, defrag = args.defrag)
elif args.fasta is not None:
pangenome = Pangenome()
annotatePangenome(pangenome, args.fasta, args.tmpdir, args.cpu)
writePangenome(pangenome, filename, args.force)
clustering(pangenome, args.tmpdir, args.cpu)
pangenome = Pangenome()
annotatePangenome(pangenome, args.fasta, args.tmpdir, args.cpu)
writePangenome(pangenome, filename, args.force)
clustering(pangenome, tmpdir = args.tmpdir,cpu = args.cpu, defrag = args.defrag)

computeNeighborsGraph(pangenome)

Expand Down Expand Up @@ -74,4 +74,5 @@ def workflowSubparser(subparser):
optional.add_argument("--basename",required = False, default = "pangenome", help = "basename for the output file")
optional.add_argument("--rarefaction", required=False, action = "store_true", help = "Use to compute the rarefaction curves (WARNING: can be time consumming)")
optional.add_argument("-K","--nb_of_partitions",required=False, default=-1, type=int, help = "Number of partitions to use. Must be at least 3. If under 3, it will be detected automatically.")
optional.add_argument("--defrag",required=False, action="store_true", help = "Realign gene families to associated fragments with their non-fragmented gene family.")
return parser

0 comments on commit a03a937

Please sign in to comment.