forked from anna-alemany/VASAseq
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathextractBC.sh
More file actions
39 lines (35 loc) · 1.37 KB
/
extractBC.sh
File metadata and controls
39 lines (35 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
if [ $# -ne 4 ]
then
echo "Please, give: "
echo "1) input root to fastq files"
echo "2) protocol [celseq1, celseq2, vasaplate, vasadrop, 10x]"
echo "3) path to concatenator.py"
echo "4) output folder for fastq files"
exit
fi
outfq=$1
protocol=$2
path2scripts=$3
outdir=$4
bcfile=$5 # ${path2scripts}/bc_celseq1.tsv, ${path2scripts}/bc_celseq2.tsv
mkdir -p $outdir
if [ $protocol == 'celseq1' ]
then
python3 ${path2scripts}/concatenator.py --fqf ${outfq} --cbcfile ${path2scripts}/bc_celseq1.tsv --cbchd 0 --lenumi 4 --outdir ${outdir}
elif [ $protocol == 'celseq2' ]
then
python3 ${path2scripts}/concatenator.py --fqf ${outfq} --cbcfile ${path2scripts}/bc_celseq2.tsv --cbchd 0 --lenumi 6 --umifirst --outdir ${outdir}
elif [ $protocol == 'vasaplate' ]
then
python3 ${path2scripts}/concatenator.py --fqf ${outfq} --cbcfile ${path2scripts}/bc_celseq2.tsv --cbchd 0 --lenumi 6 --umifirst --demux --outdir ${outdir}
elif [ $protocol == 'vasadrop' ]
then
python3 ${path2scripts}/concatenator.py --fqf ${outfq} --cbcfile $bcfile --cbchd 0 --lencbc 16 --lenumi 6 --umifirst --demux --outdir ${outdir}
elif [ $protocol == '10x' ]
then
python3 ${path2scripts}/concatenator.py --fqf ${outfq} --cbcfile $bcfile --cbchd 0 --lencbc 16 --lenumi 12 --demux --outdir ${outdir}
else
echo "unknown protocol [celseq1, celseq2, vasaplate, vasadrop]"
exit
fi