Update: I did it with bedtools. For those who might be asking the same question, here's my procedure:
- I manually created a minimal BED file (tab-delimited txt file) with genome name (matching fasta file header) and genomic range I want to extract
- Run the following:
bedtools getfasta -fo BED_output.txt -tab -fi REF.fasta -bed BED_input.txt
Do you need this just once or for multiple positions?
Yup, multiple positions (coming from a screen)