Giter Site home page Giter Site logo

Comments (5)

jorvis avatar jorvis commented on July 16, 2024

Whatever loaded the EC numbers initially is supposed to create the full tree of terms. I can see in that database that there are two terms but no parent:

+-----------+-----------+
| cvterm_id | accession |
+-----------+-----------+
|      5846 | 4.3.99.1  |
|      5847 | 4.3.99.2  |
+-----------+-----------+

4.3.99.- doesn't exist.

You mentioned trying to add it and it failing, but I tried and it worked:

$ perl insert_ec_number.pl --ec_number=4.3.99.- --name=7-carboxy-7-deazaguanine synthase --database=hcon2 --user=XXX --password=XXX --server=manatee-db --database_type=mysql
attempting to create database connection
INFO: got db_id 8 for name EC
INFO: got cv_id 7 for name EC
INFO: inserting row into dbxref with dbxref_id: 56551
INFO: inserting row into cvterm with cvterm_id: 35952
INFO: inserting row into dbxref with dbxref_id: 56552
INFO: inserting row into cvterm_dbxref with cvterm_dbxref_id: 22208
INFO: inserting row into cvterm_relationship with cvterm_relationship_id: 54222
INFO: got cvterm_id 2 for name is_a

You should be able to add the child term now.

from biocode.

jorvis avatar jorvis commented on July 16, 2024

Closed for now, please re-open if the child term insertion still fails.

from biocode.

nsuvarnaiari avatar nsuvarnaiari commented on July 16, 2024

Josh,

Thanks for adding the parent.

I do not know why it worked for you and not me. I have few other granular EC numbers for which the parents don't exist to insert them.
Here is the list
7.4.2.8
2.7.14.1
7.1.1.2

So, for 7.1.1.2, I tried adding the parent,

[snadendla@thanos chado]$ perl insert_ec_number.pl --ec_number=7.1.1.- --name=Coenzyme Q reductase --database=hcon2 --user=XX --password=XX --server=manatee-db --database_type=mysql
attempting to create database connection
INFO: got db_id 8 for name EC
INFO: got cv_id 7 for name EC
Unable to find cvterm_id corresponding to base accession 7.1.-.-. Check the base term? at insert_ec_number.pl line 283.

Thanks,
Suvvi

from biocode.

jorvis avatar jorvis commented on July 16, 2024

How was this database initially loaded? I don't see any EC numbers beginning with a 7.

from biocode.

nsuvarnaiari avatar nsuvarnaiari commented on July 16, 2024

This database was loaded in 2017. The enzyme.dat file used then in the pipeline was 2014 version. At that time I guess there was no EC number with base 7.-.-.-.

from biocode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.