Coder Social home page Coder Social logo

silvtal / get_core_reactions Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15.39 MB

Given a folder with eggnog annotation files (multiple genomes), create a consensus annotations file and save a series of core reactions in different formats

Python 1.11% Jupyter Notebook 98.36% R 0.53%

get_core_reactions's Introduction

core_functions_full.py

Create file with X% consensus annotations ("PCG pangenome"). Save to files parsed list in BiGG/KEGG/EC reaction format.

This script generates a list of core functions for a given phylogenetic core group (PCG). This list is considered that PCG's pangenome, defined as annotations present in at least 90% of available genomes for each PCG. The input for this tool is a path containing .tsv annotation files generated with eggNOG-mapper, for which a consensus annotation file will be generated. The core reactions can be retrieved in KEGG, EC and in BiGG format. A file containing descriptions corresponding to EC and KEGG entries is also generated.

More reactions can be added manually using tools like MetaNetX or by creating custom ko/EC files

Creates consensus annotations from a folder with single genome annotations

Print_unique_functions.ipynb

For each PCG, print all pangenome reactions exclusive to itself.

This script reads the files (either BiGG or KEGG) from the first step and goes through each PCG, comparing its reactions with the reactions of other groups, and keeping track of the unique reactions for each group in a dictionary.

Print_all_descriptions.ipynb

Print all pangenome reactions for each PCG, exclusive or not, alongside a description.


Example_Goldford

This folder contains the specific version of script #1 used at "Leveraging phylogenetic signal to unravel microbial community function and assembly rules" by Talavera-Marcos, Parras-Moltó and Aguirre de Cárcer

get_core_reactions's People

Contributors

silvtal avatar

Watchers

 avatar

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.