This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Genbank Accession Number from Gene Name

Hi,

Is there a way to retrieve the Genbank accession number on bash/unix, by knowing only the gene name?

Thanks.

accession number

1 answer

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

Log in to answer this question.