-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands_file.sh
40 lines (17 loc) · 1.06 KB
/
commands_file.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
29
30
31
32
33
34
35
36
37
38
39
#bin/bash
#Assembly and gene prediction:
### Commands used for Trinity: ###
`______________________________________________________________________________`
nohup Trinity --seqType fq --single SG_trimmed.fastq --CPU 6 --max_memory 20G &
`______________________________________________________________________________`
`______________________________________________________________________________`
TransDecoder.LongOrfs -t trinity_out_dir/Trinity.fasta
`______________________________________________________________________________`
`______________________________________________________________________________`
TransDecoder.Predict -t trinity_out_dir/Trinity.fasta
`______________________________________________________________________________`
#Mapping:
for i in XM_*.fa; do bowtie2-build $i $i; done
for i in XM_*.fa; do bowtie2 --fast -p 16 -x $i -1 *_R1.fastq.gz -2 *_R2.fastq.gz -U Single_R.fastq.gz -S $i.sam
for i in XM_*.sam ; do samtools view -bS $i | samtools sort -o $i.sorted.bam ; done
for i in XM_*.sorted.bam; do samtools index $i $i.bai; done