Coder Social home page Coder Social logo

siftr's Introduction

rmimp logo

Predicting the impact of mutations on protein function

===============================================================

Installation

To install siftr, first make sure your R version is at least R 3.0. You can check by typing the following into your R console:

R.Version()$major

Install and load devtools package:

install.packages("devtools")
library("devtools")

Download and install the siftr package from github:

install_github("omarwagih/siftr")

Load the siftr package

library("siftr")

Running siftr on sample data

# Get the path to the sample amino acid alignment
# Alternatively you can pass in the alignment as a vector
# e.g. c('SSSS', 'STTT', 'SYSY', 'ASST', 'KKHS')
sample_fa = system.file("extdata", "P39709.alignedfasta", package = "siftr")


# Compute sift scores
# You can adjust the number of cores for faster processing
sift_mat = predictFromAlignment(sample_fa, cores=1)

# Summary of the sift matrix
summary(sift_mat)

The generated matrix contains the sift scores. Each row is the substituted amino acid and each column is the position in the alignment.

Then, filter the matrix for significant scores (< 0.05), and output in a table format:

# Keep predictions with sift scores < 0.05 
filt = filterPredictions(sift_mat, score_thresh = 0.05)

# Display resulting table
print( head(filt) )

You can extract further information about the alignment from functions diffAA and infoContent

# Get information content per position for the alignment
info_content = infoContent(sift_mat)

# Get number of unique amino acids per position
diff_aa = diffAA(sift_mat)

That's all there is to it!

For further documentation see ?predictFromAlignment, ?filterPredictions, ?diffAA and ?infoContent

Contact

If you have any feedback, suggestions or questions, please drop me a line at (wagih(at)ebi.ac.uk) or open an issue on github.

siftr's People

Watchers

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