-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRSeQC.sh
executable file
·12 lines (10 loc) · 892 Bytes
/
RSeQC.sh
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Name : Sara Nicholson
# Date : February 2024
# Description: Run RSeQC after aligning reads to Genome in order to remove ribosomal genes. Reads not aligned to Ribosomal genes will be filtered into *.ex.bam. Must have samtools & RSeQc installed.
for i in /leyao/Active/RNA_SEQ_DATA_2024/ANALYSIS/STAR/*sortedByCoord.out.bam; do name=$(basename ${i} .sortedByCoord.out.bam);
echo ${name};
# Index Bam file via samtools (installed in path)
samtools index /leyao/Active/RNA_SEQ_DATA_2024/ANALYSIS/STAR/${name}.sortedByCoord.out.bam
# Remove Ribosomal Gene Reads (desired output will be *.ex.bam)
python3 /home/sara/Downloads/RSeQC-5.0.1/scripts/split_bam.py -i /leyao/Active/RNA_SEQ_DATA_2024/ANALYSIS/STAR/${name}.sortedByCoord.out.bam -r /home/sara/Downloads/RSeQC-5.0.1/scripts/hg38_rRNA.bed -o /leyao/Active/RNA_SEQ_DATA_2024/ANALYSIS/STAR/RSeQC_Out/${name}_ ; done