get dna sequence from chromosome, start, and end
1
0
Entering edit mode
8.3 years ago
jde715 • 0

Hello!

Is there a standard way to retrieve a sequence of dna given the chromosome number, start position, and end position? I am using biopython. I would like to do all of this locally without having to query an external source (as was suggested here How To Fetch Genomics Sequence Using Coordinates In Biopython). I have fasta files for the human chromosomes available locally (http://hgdownload.cse.ucsc.edu/goldenpath/hg19/chromosomes/) but have been unable to find a standard way to query them based on position.

Thanks!

sequence python biopython • 3.6k views
ADD COMMENT
2
Entering edit mode
8.3 years ago

Sounds like this would be useful Pyfaidx: Efficient, "Pythonic" Random Access To Fasta Files Using Samtools-Compatible Indexing

BTW, there are convenient examples in the github repo.

ADD COMMENT
1
Entering edit mode

You're doing my job for me :).

ADD REPLY

Login before adding your answer.

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