Converting Lots of GI Numbers to Accession.version


As you may have read in previous posts, NCBI is in the process of changing the way we handle GI numbers for sequence records. In short, we are moving to a time when accession.version identifiers, rather than GI numbers, will be the primary identifiers for sequence records.

In a previous post, we outlined a method for converting GI numbers (used to identify sequence records) to accession.version identifiers. That method used the E-utility EFetch and is capable of handling cases where you have no more than a few thousand GI numbers to convert.

What if you have more?

We now have a bulk conversion resource that will allow you to handle very large jobs. The resource consists of a Python script coupled with a database file (about 40 GB uncompressed). You’ll need to download both of these files (gi2accession.py and gi2acc_lmdb.gz) to local disk, and then you can process as needed.

Continue reading

Converting GI Numbers to Accession.version


As you may have read in previous posts, NCBI is in the process of changing the way we handle GI numbers for sequence records.

In short, we are moving to a time when accession.version identifiers, rather than GI numbers, will be the primary identifiers for sequence records.

As part of this transition, an obvious question for any of you currently using GI numbers is how to convert a GI number to an accession.version, so that you can make appropriate updates. The good news is that it’s pretty easy if you have no more than a few thousand GIs to convert.

Continue reading

The Future of Existing GI Numbers at NCBI


NCBI has announced that we will be changing the way we handle GI numbers for sequence records in September 2016. (Read more, in case you missed it).

In this post, we’ll address a key question:

What is the future of existing GI numbers?

The short answer is that nothing is happening to these GI numbers.

If a nucleotide or protein record already has a GI, it will continue to have that GI indefinitely. You will also be able to retrieve such a record using its GI either on the NCBI web site or using the E-utilities.

Moreover, GIs will remain part of the XML and ASN.1 formats of sequence records.

If not GIs, then what?

Accession.version identifiers. All sequence records, both new and old, will have a unique accession.version identifier.

Existing records will keep the accessions they already have; new sequences will only receive an accession.version identifier.

So what’s all the fuss about?

Two things:

Stay tuned for additional posts about this topic, and please contact us if you have questions.

NCBI is Phasing Out Sequence GIs – Here’s What You Need to Know


You may have heard that NCBI is changing the way we handle GI numbers for sequence records in September 2016. Well, you heard right! Here’s the announcement, in case you missed it.

There are a number of issues raised by these changes, but we’re going to answer two questions in this post:

  1. What pieces of your code will break in September?
  2. Are GI numbers gone for good?

Continue reading