Giter VIP home page Giter VIP logo

trinotateextractor's Introduction

trinotateExtractor

Easy extraction of transcripts or peptide sequences based on annotated keywords from Trinotate annotation.

This Python script is meant to allow you to extract a subset of nucleotide transcripts or peptide sequences generated by Transdecoder based on the Blastx annotation used by Trinotate. You can feel free to modify this script to extract transscripts based on other Trinotate columns.

I use this script if I want to pull out all of sequences annotated with a specific keyword in the Blastx column of Trinotate. Based on the keyword, the Trinity isoform names are compiled in a list which is then used to extract the sequences from the Trinity fasta or Transdecoder pep file. The sequence headers along with sequences are written to a new file.

Basic usage is as follows and is written in Python 2.

python trinotateExtractor.py -k [keyword] -t [trinotate file] -f [Trinity Fasta or Transdecoder PEP file] -o [output file to write to]

Flags

-k  --keyword 	A keyword that will be searched in the Trinotate file.
-t  --trinotate The Trinotate.xls file generated by Trinotate
-f  --file      Trinity.fasta or Trinity/Transdecoder.pep file. These files contain the desired sequences.
-o  --output    The name of the file to write the sequences.  Will retain fasta format.

Here is an example:

python trinotateExtractor.py -k "Auxin-responsive protein IAA25" -t Trinotate.xls -f Paspalum_urvillei_GENES.fasta -o test.fasta

**** Links to Trinity, Trinotate, and TransDecoder

trinotateextractor's People

Contributors

mcelrjo avatar

Watchers

James Cloos avatar  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.