Skip to content

Commit

Permalink
added primary
Browse files Browse the repository at this point in the history
  • Loading branch information
molikd committed Jul 14, 2022
1 parent e4a44e5 commit 8d914b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions otb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ help(){
display otb version and exit
-s or --supress
supress stop and checks, and submit without sending to background
supress \"stop and gather user input\", and submit without sending to background
-c or --check
perform checks to insure smoother operation
Expand All @@ -35,7 +35,7 @@ help(){
suggested:
-m or --mode
mode to use, must be one of \"phasing\",\"homozygous\",\"heterozygous\",\"trio\", default: homozygous
mode to use, must be one of \"phasing\",\"homozygous\",\"heterozygous\",\"primary\",\"trio\", default: homozygous
-t or --threads
number of threads to use, clusters sometimes use this as number of cores, default: 20
Expand Down
8 changes: 8 additions & 0 deletions run.nf
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,14 @@ process HiFiASM {
sleep 120;
exit 0;
"""
else if( params.mode == 'primary')
"""
touch hifiasm.flag.txt
hifiasm -o ${params.assembly} --primary -t ${task.cpus} --write-paf --write-ec ${fasta} 2>&1
echo "finished alignment"
sleep 120;
exit 0;
"""
else if ( params.mode == 'trio')
"""
touch hifiasm.flag.txt
Expand Down

0 comments on commit 8d914b8

Please sign in to comment.