GithubHelp home page GithubHelp logo

Comments (3)

Robaina avatar Robaina commented on August 11, 2024

CART model to classify nifH

The CART model is taken from this publication.

Departing from the nifH sequence of Azotobacter, it classifies peptides based on the position of three residues following:

    CART = {
        109: ['F', 'W', 'Y'], 
        49: ['A', 'D', 'I'],  
        53: ['L', 'M', 'W'] 
    }

and the decision tree:

CART_model

Now, we have included Azotobacter's sequence in our nifH peptide database, followed by a MSA of all the peptide sequences in there. To use the CART model, we first have to find the correspondence between the residue positions in the original, unaligned Azotobacter sequence and the aligned one. This is currently done manually since this correspondence changes depending on the set of sequences that the database contains (it changes the MSA). For our nifH database, the correspondence is (unaligned: aligned):

adjusted_CART = {
    109: 180,
    49: 95,
    53: 99
}

Here are the unaligned and aligned nifH sequences of Azotobacter:

unaligned:

>001_WP_039801084.1 MULTISPECIES: nitrogenase iron protein [Azotobacter]
MALRQCAIYGKGGIGKSTTTQNLVAALAEAGKKVMIVGCDPKADSTRLILHSKAQNTVMEMAASAGSVEDLELEDVLQIGYGGVKCVESGGPEPGVGCAGRGVITAINFLEEEGAYSDDLDFVFYDVLGDVVCGGFAMPIRENKAQEIYIVCSGEMMAMYAANNIAKGIVKYAHSGSVRLGGLICNSRKTDREDELIMALAAKIGTQMIHFVPRDNVVQHAEIRRMTVIEYDPKAKQADEYRALAQKILNNKLLVIPNPASMEDLEELLMEFGIMEAEDESIVGKAAAEG

aligned:

>001_WP_039801084.1 MULTISPECIES: nitrogenase iron protein [Azotobacter]_cluster_I 001_WP_039801084.1 MULTISPECIES: nitrogenase iron protein [Azotobacter]_cluster_I
---------------------------------------------MALRQCAIYGKGGIGKSTTTQNLVAALAE-AGKKVMIVGCDPKADSTRLILHSKAQN-TVMEMAASAGSV---------ED-LEL-ED-VLQIG------------YGGVKCVESGGPEPGVGCAGRGVITAINFLEEEG-AYSDD-----LDFVFYDVLGDVVCGGFAMPIRENKAQEIYIVCSGEMMAMYAANNIAKGIVKYAHS--GSVRLGGLICNSRKTDR-EDELIMALAAKIGTQMIHFVPRDNVVQHAEIRRMT------VIEY-------------DPKAKQADEYRALAQK----ILNN--K-L--LVIPNP-ASMED------------LEE------------------------LL--------ME-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------FGIMEA--EDESIV--GKAAAEG--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The script that implements the CART model can be found in:

https://github.com/Robaina/TRAITS/blob/main/code/classifyNifHsequences.py

NOTE that residue positions in the script are one unit behind because Python follows a 0-indexing scheme.

Using the script above, we obtain the following cluster distribution for the nifH peptide database:

clusters

from metatag.

Robaina avatar Robaina commented on August 11, 2024

I have checked both the model and its implementation and they seem fine. Therefore, the observation that too few environmental sequences are classified outside of cluster IV (hence classified as "true" nifH) could be explained by:

  1. The CART model itself is incomplete / doesn't capture all possible variability of nifH sequences
  2. There CART model is right and there is really a small number of non - cluster IV environmental sequences in some samples
  3. A combination of the previous ones...

from metatag.

Robaina avatar Robaina commented on August 11, 2024

Alright, closing this issue because the CART model will no longer be used to cluster nifH

from metatag.

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.