Hi tangming2005
Thanks for the reply . I was looking into tabix earlier, the reason I posted this question is because, I am not really interested in the coordinates of the reference region where my sequence maps to, but I would like to retrieve the corresponding sequence itself ( string of ATGCs) that my reads maps onto. SAM files does give the number of mismatch/matches of our reads to the refrence sequence but I was looking to extract the actual reference sequence region where my read maps to. SO it is slightly different. But then very much appreciate your reply :) Thanks again,
I guess I can still take the coordinates generated this way and extract sequence from my genome file perhaps?
Geneart.
Duplicate of Extract Reads From A Bam File That Fall Within A Given Region