From 22820d0976c0e802850b39822f8bf90139693af3 Mon Sep 17 00:00:00 2001 From: Olivier Langella <Olivier.Langella@moulon.inra.fr> Date: Wed, 14 Jun 2017 09:09:41 +0200 Subject: [PATCH] check for gb to get genbank accession --- src/core/proteinxtp.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/proteinxtp.cpp b/src/core/proteinxtp.cpp index 0ec15e07..dbb8fb36 100644 --- a/src/core/proteinxtp.cpp +++ b/src/core/proteinxtp.cpp @@ -180,10 +180,6 @@ void ProteinXtp::parseAccession2dbxref() { _dbxref_list.push_back(DbXref(ExternalDatabase::AGI_LocusCode, temp.at(0))); continue; } - if (ncbi_gi.indexIn(accession, 0) != -1) { - _dbxref_list.push_back(DbXref(ExternalDatabase::NCBI_gi, accession)); - continue; - } if (swiss_prot.indexIn(accession, 0) != -1) { qDebug() << "ProteinXtp::parseAccession2dbxref accession SwissProt " << accession; @@ -208,6 +204,9 @@ void ProteinXtp::parseAccession2dbxref() { if ((access_list.at(i-1) == "tr")&&(accession.size() == 6)) { _dbxref_list.push_back(DbXref(ExternalDatabase::TrEMBL, accession)); } + if ((access_list.at(i-1) == "gb")&&(ncbi_gi.indexIn(accession, 0) != -1)) { + _dbxref_list.push_back(DbXref(ExternalDatabase::NCBI_gi, accession)); + } } -- GitLab