Skip to content

Commit

Permalink
fix missing symlink and update workflow to handle diploid graphaligne…
Browse files Browse the repository at this point in the history
…r output and fix error checking
  • Loading branch information
skoren committed Nov 21, 2023
1 parent 5bae4a2 commit 4d01971
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ jobs:
echo >> mbg.sh 'xz -dc ../../cache/paths.gaf.xz > paths.gaf'
echo > ga.sh '#!/bin/sh'
echo >> ga.sh 'if [ ! -e "graph" ] ; then'
echo >> ga.sh ' touch graph'
echo >> ga.sh 'if [ ! -e "graph.index" ] ; then'
echo >> ga.sh ' touch graph.index'
echo >> ga.sh ' touch diploid.index'
echo >> ga.sh ' touch empty.gaf'
echo >> ga.sh 'else'
echo >> ga.sh ' xz -dc ../../cache/aligned001.WORKING.gaf.xz > aligned001.WORKING.gaf'
Expand All @@ -99,4 +100,7 @@ jobs:
chmod 755 ga.sh
chmod 755 lib/verkko/bin/utgcns
./bin/verkko -d asm --no-correction --mbg $PWD/mbg.sh --graphaligner $PWD/ga.sh --hifi ./hifi.fastq.gz --nano ./ont.fastq.gz || reportLogs
./bin/verkko -d asm --no-correction --mbg $PWD/mbg.sh --graphaligner $PWD/ga.sh --hifi ./hifi.fastq.gz --nano ./ont.fastq.gz
if [ ! -s asm/assembly.fasta ]; then
reportLogs
fi
12 changes: 6 additions & 6 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ endif
ifeq ($(wildcard overlapErrorAdjustment/findErrors.C), )
$(shell ln -s canu/src/overlapErrorAdjustment overlapErrorAdjustment)
endif
ifeq ($(wildcard overlapInCore/overlapImport.C), )
$(shell ln -s canu/src/overlapInCore overlapInCore)
endif
ifeq ($(wildcard seqrequester/src), )
$(shell ln -s canu/src/seqrequester seqrequester)
endif
Expand All @@ -81,7 +78,10 @@ endif
ifeq ($(wildcard utility/src), )
$(shell ln -s canu/src/utility utility)
endif
ifeq ($(wildcard stores/sqStoreDumpFASTQ.C), )
ifeq ($(wildcard overlapInCore/overlapImport.C), )
$(shell ln -s canu/src/overlapInCore)
endif
ifeq ($(wildcard overlapBasedTrimming/clearRangeFile.H), )
$(shell ln -s canu/src/overlapBasedTrimming overlapBasedTrimming)
endif

Expand Down Expand Up @@ -811,7 +811,7 @@ all: $(addprefix ${TARGET_DIR}/,${ALL_TGTS}) \
../lib/verkko/profiles/jobscript.sh \
../lib/verkko/profiles/slurm-sge-status.sh \
../lib/verkko/profiles/slurm-sge-submit.sh
@rm -f gfa meryl overlapErrorAdjustment overlapBasedTrimming overlapInCore seqrequester stores utgcns utility
@rm -f gfa meryl overlapInCore overlapErrorAdjustment overlapBasedTrimming seqrequester stores utgcns utility
@echo ""
@echo "Success!"
@echo "${MODULE} installed in ${TARGET_DIR}/bin/${MODULE}"
Expand Down Expand Up @@ -839,7 +839,7 @@ $(foreach TGT,${ALL_TGTS},\
$(eval $(call ADD_CLEAN_RULE,${TGT})))
clean:
rm -rf rukki/target
rm -f gfa meryl overlapErrorAdjustment seqrequester stores utgcns utility
rm -f gfa meryl overlapInCore overlapErrorAdjustment overlapBasedTrimming seqrequester stores utgcns utility
find build -type d -print | sort -r | xargs -n 100 rmdir
deinstall:
Expand Down
2 changes: 2 additions & 0 deletions src/main.mk
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ SOURCES := utility/src/align/align-ksw2-driver.C \
\
stores/objectStore.C \
\
overlapInCore/liboverlap/Binomial_Bound.C \
\
utgcns/libpbutgcns/AlnGraphBoost.C \
\
gfa/gfa.C \
Expand Down

0 comments on commit 4d01971

Please sign in to comment.