I've been trying to get the nucleotide sequence for a list of genes on the command line, for example for the gene LOC100136426 I would like to get the following:
I have been trying to use eutils to do this with the following command:
$ esearch -db nucleotide -query "LOC100136426" | efetch -format fasta
My issue is that this gives three results, where as I only want the nucleotide sequence for the gene so that I can perform a blast.
I'm not quite sure how to implement a filter in the pipe to only give the gene sequence. I'd greatly appreciate any help or even suggestions to alternate methods to find this information.