This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Retrieving a specific location from reference fasta

I want to retrieve Molecular Location: base pairs 166,259,417 to 166,259,467 on chromosome 2 from ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/technical/reference/human_g1k_v37.fasta.gz

Requesting you guys to help me out !!!!!!

sequencing

Searching biostars.org (use google, works better) comes to mind.

Hello mohammedabeddin1!

We believe that this post does not fit the main topic of this site.

you already asked this : Unable to load index and got a valid answer from genomax

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

1 answer

Use samtools faidx

samtools faidx file.fasta
samtools faidx file.fasta chr2:166259417-166259467

If you have multiple regions to extract, you can use bedtools getfasta

Log in to answer this question.