Code Monkey home page Code Monkey logo

fastproteinpssm's Introduction

FastProteinPSSM

This script computes PSSM (possition specific scoring matrix) for a protein sequence given in input file in FASTA format.

Credits

Many thanks to Lukáš Jendele, auhor of original project for protein conservation calculation.

Preliminaries

Installing all necessary tools

  1. Download BLAST+ suite from here.
  2. Install/unpack the BLAST+ archive and make sure your directory is PATH.
  3. Download CD-HIT from here.
  4. Unpack CD-HIT archive, run make command and make sure cd-hit is in PATH.

Installing databases

  1. Download SwissProt and UniRef90 databases from here in FASTA format.
  2. Create a directory where you want to store the databases.
  3. Add environmental variable BLASTDB={path to the directory}
  4. cd to this directory and run these commands. This will take quite a lot of time.
    zcat {path to uniref90 database .gz file} | makeblastdb -out uniref90 -dbtype prot -title UniRef90 -parse_seqids
    zcat {path to swissprot database .gz file} | makeblastdb -out swissprot -dbtype prot -title SwissProt -parse_seqids
  1. Optional: Now you can delete the .gz database files.

Running the script

  1. cd to the project directory
  2. Run this command: ./FastProtein.sh {path to your fasta file} [-s]

Parameter -s turnes on scaling of all values using sigmoid function.

Notes

Output

Every line of output contains 21 values of PSSM matrix. Order or amino acids is ACDEFGHIKLMNPQRSTVWXY.

Values are scaled using sigmoid function if -s parameter was passed.

How it works

PSIBLAST is ran with your fasta input on SwissProt database (1 iteration, eval=1e-5).
The result is filtered (min 80% coverage and seq identity between 30% and 95%), then clustered with CD-HIT (default parameters).
If we are left with less then 50 hits, repeat the same for UniRef90 database.

PSSM generated by last iteration of PSI-BLAST is returned in simplier format.

fastproteinpssm's People

Contributors

michalfilippi avatar jendelel avatar

Stargazers

AJ avatar  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.