forked from mikessh/aging-study
-
Notifications
You must be signed in to change notification settings - Fork 0
/
process.sh
28 lines (23 loc) · 1.11 KB
/
process.sh
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
for i in {2..6}
do
# barcodes can be found in the repository root folder
java -Xmx40G -jar migec.jar Checkout -cute age${i}_barcodes.txt age${i}_R1.fastq.gz age${i}_R2.fastq.gz checkout/
cp checkout/checkout.filelist.txt checkout_logs/age${i}_checkout.filelist.txt
cp checkout/checkout.log.txt checkout_logs/age${i}_checkout.log.txt
done
cat checkout_logs/age2_checkout.filelist.txt | head -n 1 > checkout/checkout.filelist.txt
cat checkout_logs/age2_checkout.log.txt | head -n 1 > checkout/checkout.log.txt
for i in {2..6}
do
cat checkout_logs/age${i}_checkout.filelist.txt | awk 'FNR>1' >> checkout/checkout.filelist.txt
cat checkout_logs/age${i}_checkout.log.txt | awk 'FNR>1' >> checkout/checkout.log.txt
done
java -Xmx40G -jar migec.jar Histogram checkout/ histogram/
java -Xmx40G -jar migec.jar AssembleBatch --force-collision-filter --force-overseq 2 --default-mask 0:1 checkout/ histogram/ assemble/
cd assemble
for f in *.fastq
do
s=${f%_R2.t2.cf.fastq};
# age-pset.xml can be found in the repository root folder
mitcr -pset ../age-pset.xml -report ../cdrblast/mitcr.log.txt $f ../out/$s.txt;
done