Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/runLR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ fi


echo -e "[M::worker_pipeline:: Compute effective SMS coverage]"
samtools depth -a LRout/$LRname"_sort.bam" | perl $src/avgdep.pl LRout seq.size - > LRout/$LRname"_sort.depth"
samtools depth -@ $t -a LRout/$LRname"_sort.bam" | perl $src/avgdep.pl LRout seq.size - > LRout/$LRname"_sort.depth"
LRavg_depth=$(cat LRout/Avgcov)
echo -e "[M::SMS mapping coverage: $LRavg_depth]"
rm LRout/Avgcov
Expand Down
2 changes: 1 addition & 1 deletion src/runSR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fi
echo -e "[M::worker_pipeline:: Compute effective NGS coverage]"
#-------------------------------------------------------------------------------------------------------------
#samtools depth -a SRout/$SRname"_sort.bam" > SRout/$SRname"_sort.depth"
samtools view -h -@ $t -q $mapquality SRout/$SRname"_sort.bam" |samtools depth -a - | perl $src/avgdep.pl SRout seq.size - >SRout/$SRname"_sort.depth"
samtools view -h -@ $t -q $mapquality SRout/$SRname"_sort.bam" |samtools depth -@ $t -a - | perl $src/avgdep.pl SRout seq.size - >SRout/$SRname"_sort.depth"

SRavg_depth=$(cat SRout/Avgcov)
echo -e "[M::NGS mapping coverage: $SRavg_depth]"
Expand Down