This is a test version of Biostars. For the public version, visit https://www.biostars.org.
fasta file parsing

I have a genome file in .Fasta format and a file containing some sequences' starting and end positions. how to extract these sequences from the genome file?

fasta

2 answers

Take a look at bedtools getfasta function. This should do exactly what you want.

You can also use samtools faidx or seqkit faidx.

Log in to answer this question.