How to get nucleotide sequences for a given list of genomic positions.
4
3
Entering edit mode
8.5 years ago
Naresh D J ▴ 110

Hi, I have a text file of 7500 genomic positions with their chr, start, end and want to get their nucleotide sequences. Can someone point me some tool or any thoughts on how to do it?

Thank you,

ChIP-Seq sequence NGS • 4.6k views
ADD COMMENT
5
Entering edit mode
ADD COMMENT
0
Entering edit mode

Thank you. It is handy.

ADD REPLY
2
Entering edit mode
8.5 years ago
SP ▴ 300

if you use python:

    import pysam
    genome = pysam.Fastafile(path_to_genome+'genome.fa')
    sequence = genome.fetch(chr, start, end)

path_to_genome: would be any genome you have downloaded (e.g. hg19).

ADD COMMENT
2
Entering edit mode
ADD COMMENT

Login before adding your answer.

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