-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCounts.sh
More file actions
38 lines (33 loc) · 1.65 KB
/
Counts.sh
File metadata and controls
38 lines (33 loc) · 1.65 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
#!/bin/bash
#SBATCH --job-name=Counts
#SBATCH -N 1
#SBATCH -n 1
#SBATCH -c 16
#SBATCH --partition=general
#SBATCH --qos=general
#SBATCH --mem=100G
#SBATCH --mail-type=END
#SBATCH --mail-user=jesse.dunnack@uconn.edu
#SBATCH -o %x_%j.out
#SBATCH -e %x_%j.err
######################################################
# Change CPU cores (-c), RAM (-mem), #
# and partition according to job requirements! #
######################################################
echo `hostname`
# Load required modules
module load htseq/0.9.1
mkdir ../Counts
gff=/isg/shared/databases/alignerIndex/animal/mus_musculus/Mus_musculus.GRCm38.92.gtf
htseq-count -s reverse -r pos -t gene -t exon -f bam C1.bam $gff > ../Counts/C1.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam C2.bam $gff > ../Counts/C2.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam C3.bam $gff > ../Counts/C3.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam C4.bam $gff > ../Counts/C4.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam C5.bam $gff > ../Counts/C5.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam C6.bam $gff > ../Counts/C6.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam T1.bam $gff > ../Counts/C1.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam T3.bam $gff > ../Counts/T3.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam T4.bam $gff > ../Counts/T4.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam T5.bam $gff > ../Counts/T5.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam T6.bam $gff > ../Counts/T6.Counts
htseq-count -s reverse -r pos -t gene -t exon -f bam T7.bam $gff > ../Counts/T7.Counts