Skip to content
Snippets Groups Projects
Commit 22820d09 authored by Olivier Langella's avatar Olivier Langella
Browse files

check for gb to get genbank accession

parent 5654a803
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment