Thank you. It is handy.
• 1 views
•
link
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,
Use getfasta from bedtools : http://bedtools.readthedocs.io/en/latest/content/tools/getfasta.html
Thank you. It is handy.
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).
Log in to answer this question.