Skip to content

Commit 3c13c3c

Browse files
committed
add PBS script to align CENPK data
This commit includes the PBS script for aligning the downloaded FASTQ files and indexing the resulting BAM files. The `.gitignore` file is also updated as appropriate (with some fixes to the log ignore lines)
1 parent 90cdf46 commit 3c13c3c

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

paper/.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ SyntheticStrain/results/hg19*
3535
ENCODE_CellLines/results/BAM
3636
ENCODE_CellLines/results/BAM-nospike
3737
ENCODE_CellLines/results/ID
38-
CENPK-chipseq/logs/*.out-*
39-
CENPK-chipseq/logs/*.err-*
38+
CENPK-chipseq/logs/*.out
39+
CENPK-chipseq/logs/*.err
4040
CENPK-chipseq/results/FASTQ
41+
CENPK-chipseq/results/BAM
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
#PBS -l nodes=1:ppn=8
3+
#PBS -l pmem=32gb
4+
#PBS -l walltime=06:00:00
5+
#PBS -A open
6+
#PBS -o logs/align.data.log.out
7+
#PBS -e logs/align.data.log.err
8+
9+
# FIRST CHANGE PATH TO EXECUTE
10+
WRK=/path/to/GenoPipe/paper/CENPK-chipseq
11+
cd $WRK
12+
13+
module load gcc
14+
module load samtools
15+
module load bwa
16+
module load anaconda3
17+
source activate ~/work/myconda/genopipe/
18+
19+
[ -d logs ] || mkdir logs
20+
[ -d results/BAM ] || mkdir -p results/BAM
21+
22+
YGENOME=$WRK/../input/sacCer3.fa
23+
24+
for SRR in "SRR518875" "SRR518876" "SRR518877" "SRR518878";
25+
do
26+
FQ=$WRK/results/FASTQ/$SRR
27+
BAM=$WRK/results/BAM/$SRR
28+
# align
29+
bwa mem $YGENOME $FQ\_1.fastq.gz -t 8 \
30+
| samtools sort \
31+
> $BAM.bam
32+
# index
33+
samtools index $BAM.bam
34+
done

0 commit comments

Comments
 (0)