This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to get fasta files for list of genes?

I have list of genes like

LOC109802912

LOC109788332

LOC109789928

LOC109809764 ...

and have a fasta file like

>rna-XR_003803819.1 gene=LOC114915746
TGCTTCTTCTCTGTTGGAAGAGTTTAAAAGCAATAAAACTAAGTGTTTTGAGCTCTCTGAAATTGCTGGT
CATGTTGTTGAGTTCAGTGCGGATCAATATGGGAGCCGATTTATTCAGCAAAAGCTTGAAACAGCTActa
ca

>rna-XR_002239520.2 gene=LOC109794983
TCCTATTCATCATGCAGGATGTCAGAATCTTCATTTCAAATTGGACCAATCCTTCTTGTGAATGAACCCT
TCACGATTGATAATGGTCTAATGACACCTACTTTGAAAATTCGAAGAGATAGAGTTGTGGCTCAATACAG
G

how can i get the fasta sequences for genes?

fasta ngs

1 answer

Try this:

pip install --user pyfaidx

xargs faidx -d " " YOURFASTA.fasta < GENEID_LIST.txt > extracted_sequences.fasta

'xargs' is not recognized as an internal or external command, operable program or batch file. I am using window

I am using window

Please mention this from the beginning in your next questions. By using windows you are making things harder for yourself (because fewer tools are available) and for us (because most of us don't use windows for bioinformatics).

Log in to answer this question.