-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsoap_basic.bash
52 lines (39 loc) · 1.66 KB
/
soap_basic.bash
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
40
41
42
43
44
45
46
47
48
49
50
51
samtools tview SRR3134441_tr.bam ../Map/Zea_mays.AGPv4.dna.toplevel.fa
for f in *; do echo "Processing ${f}"; module load samtools; samtools index ${f};done
#### vim script for creating a soap index
#!/bin/bash
#SBATCH -J soap_indexing
#SBATCH -p batch
#SBATCH -n 4
#SBATCH [email protected]
#SBATCH -o ./soap_index.%N.%j.out
#SBATCH -e ./soap_index.%N.%j.err
#SBATCH --mail-type=END,FAIL
cd /home/dkiambi/reads/new_map
module load SOAPaligner/2.21
2bwt-builder ./Zea_mays.AGPv4.dna.toplevel.fa -p 10
###multiple jobs
#!/bin/bash
#SBATCH -J soap_map_41_un_dave
#SBATCH -p batch
#SBATCH -n 4
#SBATCH [email protected]
#SBATCH -o ./soap_map_utr_41.%N.%j.out
#SBATCH -e ./soap_map_untr_41.%N.%j.err
#SBATCH --mail-type=END,FAIL
cd /home/dkiambi/reads
module purge
module load SOAPaligner/2.21
soap -D ./new_map/Zea_mays.AGPv4.dna.toplevel.fa.index -a ./reads/SRR3134441/SRR3134441_1.fastq.gz -b ./reads/SRR3134441/SRR3134441_2.fastq.gz -o ./SRR3134441_unt_soap.txt -2 ./SRR3134441_unt_soap_unpaired.txt -M 4 -p 10
for f in *.sh; do echo "submitting ${f}"; sbatch ${f};done
# viewing allingment
cd /var/scratch/Dave/Exercise/reads/
module load tablet
tablet
## blast workthrough
module load blast
makeblastdb -in Exercise/reads/Map/Zea_mays.AGPv4.dna.toplevel.fa -dbtype nucl
blastn -query GW2_rice.fa -db Exercise/reads/Map/Zea_mays.AGPv4.dna.toplevel.fa -out maize_blast.txt -evalue 0.00001 -outfmt 7
blastx -query GW2_rice.fa -db nr -out gw2_blastx.txt -num_threads 10 -max_target_seqs 20 -best_hit_score_edge 0.25
## Generating fasta statistics for downloaded genomes
for f in ./*; do echo "processing ${f}"; module load seqkit/0.7.2; seqkit stats ${f}; done