Skip to content

Commit

Permalink
sga: Create scaffolds.fa using MergeContigs
Browse files Browse the repository at this point in the history
sga scaffold2fasta blows an assertion.
See jts/sga#125
  • Loading branch information
sjackman committed Nov 2, 2016
1 parent 6e83dec commit 0424aea
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions sga/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ t=64
# Minimum overlap
m=125

# Path to ABySS executables
abyss_bin=/home/benv/arch/genesis/abyss-1.9.0/k256/bin

# Report run time and memory usage
export SHELL=zsh -opipefail
export REPORTTIME=0
Expand Down Expand Up @@ -70,5 +73,13 @@ hsapiens.fa.gz: pe400.fa.gz
%.scaf: %-contigs.fa %-graph.asqg.gz pe400.astat pe400.de mp6k+unknown.de
time sga scaffold -m 500 -g $*-graph.asqg.gz -a pe400.astat --pe pe400.de --mate-pair mp6k+unknown.de -o $@ $<

%-scaffolds.fa: %.scaf %-graph.asqg.gz
time sga scaffold2fasta -m 500 --write-unplaced --use-overlap -o $@ -a $*-graph.asqg.gz $<
# sga scaffold2fasta blows an assertion.
# See https://github.com/jts/sga/issues/125
#%-scaffolds.fa: %.scaf %-graph.asqg.gz
# time sga scaffold2fasta -m 500 --write-unplaced --use-overlap -o $@ -a $*-graph.asqg.gz $<

%.path: %.scaf
../bin/sga-scaf-to-path $< >$@

%-scaffolds.fa: %-contigs.fa %.path
$(abyss_bin)/MergeContigs -v -k100 -o $@ $< $< $*.path

0 comments on commit 0424aea

Please sign in to comment.