You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was able to follow the first 4 steps of the DASCRUBBER pipeline but I am not sure how to do 5 - 8 steps.
DASmap [-p] <path:db> [ <reads:FILE> |<reads:range> ... ]. What are <reads:FILE> |<reads:range>. Is path:db the patch:db?
DASrealign [-v] [-l<int:(800)>] <block1> <block2> <source:las> <target:las>. What are -l option, <block1> <block2>, <source:las> and <target:las>?
REPqv <subject:db> .... Is subject:db the source or patch db?
REPtrim <subject:db> ... Is subject:db the source or patch db?
Below is what I have done so far:
#DASqv_pbs.sh
#!/bin/sh
# Source: https://unix.stackexchange.com/a/421328/34872
# Usage: ./DASqv_pbs.sh plantDB 6973 38
# use the first 3 arguments for the values to pass to DASqv
db="$1"
H="$2"
cov="$3"
# use shift to get rid of them once we have them in variables, ...
shift 3
# ... so we can loop over the remaining filenames (1 or more) on the command line
for filename in $(find . -type f -name "*.*.las"); do
outfile="$(basename "$filename" .las).DAStrim"
qsub <<EOF
#!/bin/bash -l
#PBS -N DASqv
#PBS -l walltime=48:00:00
#PBS -j oe
#PBS -l mem=1G
#PBS -l ncpus=1
#PBS -M m.lorenc@qut.edu.au
##PBS -m bea
cd "\$PBS_O_WORKDIR"
source activate thegenemyers
DASqv -v -H"$H" -c"$cov" "$db" "$filename" |
sed -n -e "/Recommend/ { s/Recommend //;
s/'//g;
s:$: $db $filename:;
p }" > "$outfile"
EOF
done
./DASqv_pbs.sh plantDB 6973 38 #MEM:0.5GB; CPU time:00:00:19
Catrack -v plantDB qual
find . -name "*.DAStrim" -type f -exec cat {} + > DAStrim-cmds
sh HPC.parallel_pbs.sh DAStrim-cmds #MEM:1.1GB; CPU time:00:00:26
Catrack -v plantDB trim
#DASpatch_pbs.sh
#!/bin/sh
db="$1"
# ... so we can loop over the remaining filenames (1 or more) on the command line
for filename in $(find . -type f -name "*.*.las"); do
#cat << EOF
qsub <<EOF
#!/bin/bash -l
#PBS -N DASpatch
#PBS -l walltime=48:00:00
#PBS -j oe
#PBS -l mem=10G
#PBS -l ncpus=1
#PBS -M m.lorenc@qut.edu.au
##PBS -m bea
cd "\$PBS_O_WORKDIR"
source activate thegenemyers
DASpatch -v $db $filename
EOF
done
sh DASpatch_pbs.sh plantDB #MEM:1.4GB; CPU time:00:00:16
Catrack -v plantDB patch
#DASedit
DASedit -v plantDB plantDB-DASedit #MEM:0.9GB; CPU time:02:04:50
Hi,
I was able to follow the first 4 steps of the DASCRUBBER pipeline but I am not sure how to do 5 - 8 steps.
DASmap [-p] <path:db> [ <reads:FILE> |<reads:range> ... ]
. What are<reads:FILE> |<reads:range>
. Is path:db the patch:db?DASrealign [-v] [-l<int:(800)>] <block1> <block2> <source:las> <target:las>
. What are-l
option,<block1> <block2>
,<source:las>
and<target:las>
?REPqv <subject:db> ...
. Is subject:db the source or patch db?REPtrim <subject:db> ...
Is subject:db the source or patch db?Below is what I have done so far:
#DASqv_pbs.sh
#DAStrim
#DASpatch_pbs.sh
#DASedit
So far I have got the following files:
Thank you in advance,
Michal
The text was updated successfully, but these errors were encountered: