Giter Club home page Giter Club logo

Comments (3)

bschilder avatar bschilder commented on June 4, 2024

Noticing that this is returning data where the Gene.Symbol is actually the human ortholog, not the dog gene name as we would expect:

 tar_genes <- all_genes(
            species = "Canis lupus familiaris",
            method = "babelgene",
            run_map_species = TRUE)

Screenshot 2023-03-31 at 15 16 30

from orthogene.

bschilder avatar bschilder commented on June 4, 2024

I think this might be the root of it:

dog_orths=subset(babelgene:::orthologs_df,taxon_id==9615)
dog_orths

Screenshot 2023-03-31 at 16 14 59

We can see that many genes (e.g. A1BG, A1CF) have the same gene symbol across species and are 1:1 in that sense. But there are multiple mappings from the dog symbol to the dog ensembl ID. This makes orthogene think theyre not 1:1 orthologs and thus drops them. But if all we care about is gene symbol to gene symbol, then we should keep them.

from orthogene.

bschilder avatar bschilder commented on June 4, 2024

This was exactly the issue! Fixed it by adding an extra step to drop_non121

 if(isTRUE(symbol_only)){
        gene_map <- data.table::as.data.table(gene_map)
        if("support_n" %in% names(gene_map)){
            data.table::setorderv(gene_map,"support_n",-1)
        }
        gene_map <- gene_map[,.SD[1],by=c("input_gene","ortholog_gene")] 
    } 

After rerunning report_orthologs, you get a near-perfect reconstruction of species similarity to humans. The exception being that dogs now appear more closely related to humans than mice (which is technically wrong, but close enough given that we're only looking at protein coding genes with 1:1 orths):
Screenshot 2023-03-31 at 16 33 10

from orthogene.

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.