Coder Social home page Coder Social logo

ggavelis / protein_renamer Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11 KB

Tools to add phylogeny-ready names (including accession, genus, species, lineage & taxid) to protein fastas from any of (A) genbank (B) SRA (C) Genome_paper_supp_data

Python 100.00%

protein_renamer's Introduction

Protein_renamer

python | ETE_toolkit

Tools to add phylogeny-ready names (including accession, genus, species, lineage & taxid) to protein fastas from:

  • rename_from_SRA.py. (SRA reads that have been assembled in Trinity and AA-predicted in TransDecoder)
  • rename_from_genbank.py
  • rename_from_supp_data.py

About the SeqID format:

A.

Full seqid Example:

>SRR7816690_10015c0g1i1p1-158475-Pfiesteria_sp-Dinophyceae

What each (-) separated field means
Accession_CoreSeqid - Taxonomy_ID - Genus_species - Lineage

  1. Accession: SRR if assembled from one Sequence Read Archive run, but a project # if assembled from multiple
  2. CoreSeqid: only present if we assembled or predicted this protein ourselves -- see part B for details.
  3. Taxonomy_ID: this organism's official NCBI taxID #.
  4. Genus_species (but includes 'sp' and unofficial names like 'Ross_Sea_Dinoflagellate)
  5. Lineage: (E.g. 'Plantae') determined automatically by mapping our taxon_ID and against a custom lineages.dmp file

B.

Core of reformatted Seqid

Example: 10844c0g1i2 p1

I. About the italics part:

  1. allows the protein to be traced back to the trinity transcript from which it was predicted
  2. '10844c0g1i2' is shorted from 'TRINITY_DN10844_c0_g1_i2'
  3. proteins that share the '10844c0g1' part but differ in the 'i_' (isoform) number could represent different mature splicing variants of an immature mRNA

II. About the bold part:

  1. This p1 is added in TransDecoder when it predicts an one or more ORFS from each transcript. Any p# > 1 means that there were be multiple proteins predicted from the same transcript.

III: In short: These seqids are long and kind of ugly but are more meaningful than just replacing the trinity+transdecoder output with random accessions. (For example, in downsteam analysis, I'll be able to consider which proteins could have resulted from alternative splicing.)

protein_renamer's People

Contributors

ggavelis 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.