Entering edit mode
4.4 years ago
GDavis
•
0
Hi,
Is there a way to retrieve the Genbank accession number on bash/unix, by knowing only the gene name?
Thanks.
Hi,
Is there a way to retrieve the Genbank accession number on bash/unix, by knowing only the gene name?
Thanks.
Using Entrezdirect:
$ esearch -db nuccore -query "SOX1" | efetch -format acc
gives you (truncated for brevity)
NW_004450701.1
XM_004273597.1
NW_004438471.1
XM_012058062.1
NW_011344346.1
KN538395.1
KN549270.1
NW_008824374.1
XM_010575793.1
You may want to limit by species
$ esearch -db nuccore -query "SOX1 [GENE] AND Homo Sapiens [ORGN]" | efetch -format acc
NM_005986.3
NC_000013.11
CM000264.1
CH471085.1
Y13436.1
AF111431.1
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.