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!!!
How To Use Coordinates In Order To Extract Sequences In Fasta File?
Yes! I want to use the coordinates of each reads in a bam or sam file to extract its corresponding sequence on reference genome.
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?