I believe the reference sequence is incorrect in my region of interest. I have access to alignment files for several whole genomes and I'd like to use Velvet to do a targeted de novo assembly of just this region. In order to take full advantage of the paired-end reads, I want to compile a file with all reads for which one of the paired-end mates is mapped to the region (I would like the mapped reads, plus any unmapped paired-end mates that don't align to the faulty reference plus any paired-end mates that align elsewhere in the genome). I can use samtools view to identify the mapped reads, but the mates have the same read name, and are only differentiated by 64 vs 132 in the flag code. What is the best way to get the mates that are unmapped or mapped elsewhere?
Unconfigured Ad
Collapse
X
-
SAMtools specs call for the unmapped mate of a mapped read to be given the position of the mapped end.
So if you think that the area from 10,000-12,000 is not right, get all the reads whose coordiantes are 10,000-12,000, and that'll include all the reads that really do map there, as well as the unmapped mates of any of those reads.
As for reads where one end maps there, and the other maps elsewhere, I don't think you can do that directly with samtools. But once you get a list of all the names of reads that map to your region, you can get all of the reads with that name out of your fastq, and that's really the set of reads you want anyway.Last edited by swbarnes2; 10-31-2011, 02:19 PM.
-
Hey newguy,
I am having the same issue. For me, I am looking for insertions (specifically mobile element insertions) that have occurred in the re-sequenced genome with respect to the reference.
I ran RetroSeq, and it gave me a bunch of points that it has called as points of insertion of mobile elements. What I want to do is extract all of the reads around that (potential) break-point and do a local assembly. I appreciate swbarnes2's input, but I, perhaps like newguy, was hoping that there was a tool already written for this purpose.
swbarnes2: Thank you for your suggestion; you have guided my coding. (It probably can be done with a simple grep.)
Cheers,
Kevin
Comment
-
Mobile element insertion detection question
me too, if you have the experiance of how to deal with mobile element insertion or known scripts to detect that, please share with me, I am interested it too. I have data from complete genomics, they have generated MEI files for sequencing data, but I dont know how to summary those novel MEI.
thanks
Originally posted by kjlee View PostHey newguy,
I am having the same issue. For me, I am looking for insertions (specifically mobile element insertions) that have occurred in the re-sequenced genome with respect to the reference.
I ran RetroSeq, and it gave me a bunch of points that it has called as points of insertion of mobile elements. What I want to do is extract all of the reads around that (potential) break-point and do a local assembly. I appreciate swbarnes2's input, but I, perhaps like newguy, was hoping that there was a tool already written for this purpose.
swbarnes2: Thank you for your suggestion; you have guided my coding. (It probably can be done with a simple grep.)
Cheers,
Kevin
Comment
Latest Articles
Collapse
-
by SEQadmin2
The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.
This convergence of genetics, immunology, and computation...-
Channel: Articles
09-01-2026, 05:41 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, Today, 10:22 AM
|
0 responses
5 views
0 reactions
|
Last Post
by SEQadmin2
Today, 10:22 AM
|
||
|
Started by SEQadmin2, Yesterday, 12:32 PM
|
0 responses
6 views
0 reactions
|
Last Post
by SEQadmin2
Yesterday, 12:32 PM
|
||
|
Started by SEQadmin2, 08-24-2026, 10:32 AM
|
0 responses
48 views
0 reactions
|
Last Post
by SEQadmin2
08-24-2026, 10:32 AM
|
||
|
Started by SEQadmin2, 08-20-2026, 11:17 AM
|
0 responses
51 views
0 reactions
|
Last Post
by SEQadmin2
08-20-2026, 11:17 AM
|
Comment