cscMap is a bioinformatics pipeline to search for the RNA chimeras resulted from fusions of the transcripts encoded by the two opposite DNA strands.
cscMap was written in Python 2.7.16 and has dependencies for popular python libraries:
Also, it depends on some bioinformatics packages.
Tophat, bowtie are used to align the reads to genome and transcriptome. RSEQC(bam2wig.py), BEDOPS(sam2bed), bedtools(intersect) are used to file format conversion.
The reference genome of human (hg19) and mouse (mm10) were downloaded from the UCSC Genome Browser, and the reference genomes of other species were from the Ensemble Genome Browser (zebrafish: GRCz11, C. elegans: WBcel235, fruit fly: BDGP6, Saccharomyces: R64-1-1, E.coli: Escherichia_coliK-12_substr.MG1655).
The genome annotation files of both human and mouse were obtained from GENCODE (human: v19, mouse: vM17), and the annotation files of all the other species were from the Ensemble Genome Browser.
The pipeline is required the extra files, for example hg19.chrom.sizes and hg19.fa.out.bed in human, which can get these files from the UCSC Genome Browser(http://hgdownload.soe.ucsc.edu/goldenPath/hg19/bigZips/).
The first step is used the bowtie2 aligment the RNA-seq data to get junction reads.
cd example/
sed 's/ /_2 /' FASTQ2|cat FASTQ1 - > merge.fastq ### distinguish the paired-end reads
bowtie2 -p 8 -q unmapped.fastq -x refs/Bowtie2Index/genome --nofw --local -S readC.sam
bowtie2 -p 8 -q unmapped.fastq -x refs/Bowtie2Index/genome --norc --local -S readW.sam
After this step we get the junction file, which is the input for the cscMap pipeline.
The second step is executed the cscMap pipeline to identify the cscRNAs.
python src/cscRNA_identify.py readW.sam readC.sam OutputFile/r1_need_r2_90M.txt OutputFile/r2_need_r1_90M.txt OutputFile/junctionSite.txt
python getFQ.py r1_need_r2_90M.txt r1_need_r2_90M.fq
python getFQ.py r2_need_r1_90M.txt r2_need_r1_90M.fq
tophat2 -p 8 --library-type fr-firststrand -G refs/gencode.v19.annotation.gtf -o tophat_normalMapping1/ refs/Bowtie2Index/genome r1_need_r2_90M.fq
tophat2 -p 8 --library-type fr-firststrand -G refs/gencode.v19.annotation.gtf -o tophat_normalMapping2/ refs/Bowtie2Index/genome r2_need_r1_90M.fq
samtools view tophat_normalMapping1/unmapped.bam > tophat_normalMapping1/unmapped.sam
cut -f1 tophat_normalMapping1/unmapped.sam > tophat_normalMapping1/unmapped.lables
sort tophat_normalMapping1/unmapped.lables |uniq >tophat_normalMapping1/unmapped.uniqLables
python rmToTrspt.py r1_need_r2_90M.txt ../tophat_normalMapping1/unmapped.uniqLables r1_need_r2_90M_f.txt
python rmToTrspt.py r2_need_r1_90M.txt ../tophat_normalMapping2/unmapped.uniqLables r2_need_r1_90M_f.txt
This step aims to remove the junction reads which is high similarity with the linear mRNA.
The last step is annotated the junction sites and statistic analysis for cscRNAs.
cd OutputFile/
python src/statistic_annotation.py refs/gencode.v19.annotation_noHead.gtf junctionSite.txt loci1_annotation5bp+gtf.txt loci2_annotation5bp+gtf.txt
python src/statistic_annotation_overlap.py loci1_annotation5bp+gtf.txt loci2_annotation5bp+gtf.txt junctionLibrary_count_f.txt loci_annotation5bp+gtf.txt
The first step is used the tophat2 aligment the RNA-set data.
sed 's/ /_2 /' FASTQ2|cat FASTQ1 - > merge.fastq ### distinguish the paired-end reads
tophat2 -p 8 --library-type fr-firststrand -G refs/gencode.v19.annotation.gtf -o tophat_normalMapping/ refs/Bowtie2Index/genome merge.fastq
After this step we get the unmapped.sam file, which is converted to unmapped.fastq and as the input for the cscMap pipeline.
The second step is executed the cscMap pipeline to identify the cscRNAs.
cd example/
bowtie2 -p 8 -q unmapped.fastq -x refs/Bowtie2Index/genome --nofw --local -S readC.sam
bowtie2 -p 8 -q unmapped.fastq -x refs/Bowtie2Index/genome --norc --local -S readW.sam
python src/cscRNA_identify.py readW.sam readC.sam OutputFile/r1_need_r2_90M.txt OutputFile/r2_need_r1_90M.txt OutputFile/junctionSite.txt
The last step is annotated the junction sites and statistic analysis for cscRNAs.
cd OutputFile/
python src/statistic_annotation.py refs/gencode.v19.annotation_noHead.gtf junctionSite.txt loci1_annotation5bp+gtf.txt loci2_annotation5bp+gtf.txt
python src/statistic_annotation_overlap.py loci1_annotation5bp+gtf.txt loci2_annotation5bp+gtf.txt junctionLibrary_count_f.txt loci_annotation5bp+gtf.txt
Copyright (c) 2020 Yuting Wang The cscMap codes are licensed under THU.