This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to get a read sequence from reference genome

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

sequence

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

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.

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

0 answers

No answers yet.

Log in to answer this question.