Coder Social home page Coder Social logo

Comments (5)

alouis72 avatar alouis72 commented on September 11, 2024

Hi Maksym,
I guess you're talking about the Resolved_Gene_Trees/*.txt that are produced by Orthofinder?
Can you confirm?
If so, the ENSEMBL.buildProteinTrees.py script is not written for that. (This script is used to move duplication nodes that are not well supported in Ensembl trees).

I think I have something that could be used for that (transform nwk to nhx with species and duplication node annotations?) but I have to make some tests before.

best regards,
Alex

from agora.

Alchimic007 avatar Alchimic007 commented on September 11, 2024

Hi Alex,

Thanks for answer. Yes, I was talking about Resolved gene trees, which Orthofinder produces.
If you have something that could help with transformation of nwk to nhx with species and duplication node annotations and could share, this will be great. Thank you.

Kind regards,

Maksym Prylutskyi

from agora.

alouis72 avatar alouis72 commented on September 11, 2024

Hi Maksym,
sorry for the delay.

To annotate a nwk with species and duplications, you can use a tool that has been developped by a former PostDoc in the lab:
https://github.com/delehef/chainsaw

you should be able to install it with:
cargo install chainsaw
if you have any problem with chainsaw, open an issue on the chainsaw repository.

To use it with OF resolved gene trees, you will have to first transform the leaf names of the trees to get the corresponding extant species tag:
I've added a script in the dev branch og AGORA repo:

src/import/orthofinder_resolved_gene_trees/addSpeciesAnnotationToOFTrees.py

And here is the procedure that was successfull for me in an Orthofinder test directory (OrthoFinder/Results_May24>):

mkdir AgoraData/Resolved_Gene_trees
python $AGORA/src/import/orthofinder_resolved_gene_trees/addSpeciesAnnotationToOFTrees.py -of_trees=Resolved_Gene_Trees -outdir=AgoraData/Resolved_Gene_trees/

for i in AgoraData/Resolved_Gene_trees/*; do chainsaw $i annotate --species-tree Species_Tree/SpeciesTree_rooted_node_labels.txt ; done

=> you should have annotated nhx trees that could be concatenated in a single forestTree files to use AGORA on it.

I hope this helps,
regards,
Alex

from agora.

Alchimic007 avatar Alchimic007 commented on September 11, 2024

Hi Alex,

Sorry for late response. Thank you for script and explanation. You saved me. Thank you again.

Kind regards,

Maksym

from agora.

alouis72 avatar alouis72 commented on September 11, 2024

Hi Maksym,
I'd love any feedback on the method and the Resolved_Gene_trees you use.
The first tests I did on our data were disappointing (a lot of duplications), so if you can tell me what you feel about other data, I'd be grateful.
I don't now if it is due to the OF algorithm or our methodology to annotate the trees... :-(
best regards,
Alex

from agora.

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.