Hello everybody, I'm quite new in bioinformatics and perl programming and I need some help. My problem is :
I have a sam/bam file resulting form a mapping of paired-ends reads into a reference sequence. And I want to extract all the reads overlapping a specific region. I'm using samtools view
for this purpose but I get only the reads (paired or not) covering this region. Now I want to get the opposite reads (If I have only one reads in this region) even if they are mapped into distant location ! I use bio::db::fasta bioperl
module to retrieve sequence from my original file (fasta containing all the paired-ends reads) but it's too long especially the indexing of the database (6G). Can someone know if there is a simplest way to do that ?
Thanks in advance and sorry for having gone on so long !