how to get a read sequence from reference genome
0
0
Entering edit mode
5.6 years ago
zhangdengwei ▴ 210

hi, If I have the coordinate and length of a read, how can I fastly get its sequence from the reference genome? Thanks!!!

sequence • 847 views
ADD COMMENT
0
Entering edit mode

Yes! I want to use the coordinates of each reads in a bam or sam file to extract its corresponding sequence on reference genome.

ADD REPLY
0
Entering edit mode

I want to use the coordinates of each reads in a bam or sam file

You actually want coordinates of the hit that read has in the reference. This would require some manipulation of your alignment file (e.g. extract the reference chromosome name and the start of the hit). Then you could use that information to extract the relevant sequence from the reference.

ADD REPLY
0
Entering edit mode

yes, thanks! That's what I want to ask. And is there any python module which can handle this problem quickly?

ADD REPLY

Login before adding your answer.

Traffic: 1310 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