I'm pretty new in bioinformatics.
I need to download FASTA sequences of several genes. The list of genes I have assembled consists of 140 genes, so I'd rather do this through via code than download each gene manually from the NCBI database.
The genes belong to 2 different organisms (bacteria) I have chosen, most of them are found in both organisms and some are specific to one or the other bacterium.
I've tried running this code which I found here: https://www.ncbi.nlm.nih.gov/books/NBK179288/
esearch -db nucleotide -query "aminoacyl-tRNA\ hydrolase" | efetch -format fasta
The gene of interest being aminoacyl-tRNA hydrolase here. But I don't know how to filter it for the specific organism, Neisseria meningitidis. Tried running this, without luck:
esearch -db nucleotide -query "aminoacyl-tRNA\ hydrolase" | efilter -organism [Neisseria meningitidis] | efetch -format fasta
Appreciate any help :)