Extract primary STAR mapped reads to specific chromosomes
0
0
Entering edit mode
2.3 years ago
rubic ▴ 270

Hi,

I have RNA-seq reads which I mapped with STAR and I'd like to extract from the bam file the primary alignments that map to chr1, chr2, and chr3.

I know the second part is achieved by:

samtools view -b -L <my_chrs_bed_file> <my_bam_file>

So I'm mostly interested in the first part, and how to pipe the two parts.

Thanks

samtools STAR • 426 views
ADD COMMENT
0
Entering edit mode

I don't follow, what's the 'first' part you want to achieve? You have one question: how to extract reads aligning to chr1 chr2 etc, and you have the solution.

ADD REPLY

Login before adding your answer.

Traffic: 1678 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6