Giter Club home page Giter Club logo

rmimp's Introduction

rmimp logo
Predicting the impact of mutations on kinase-substrate phosphorylation in R

Installation

To install MIMP, 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

Next, install and load devtools package:

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

Then download and install the rmimp package from github (this may take a few minutes, please be patient):

install_github("omarwagih/rmimp", INSTALL_opts="--no-staged-install")

Load the rmimp package into R, and you're ready to go!

library("rmimp")

Running MIMP on sample data:

To start using MIMP, try loading paths to the sample data, which come with the package:

# Get the path to example mutation data 
mut.file = system.file("extdata", "sample_muts.tab", package = "rmimp")

# Get the path to example FASTA sequence file 
seq.file = system.file("extdata", "sample_seqs.fa", package = "rmimp")

# Get the path to example FASTA sequence file 
psite.file = system.file("extdata", "sample_phosphosites.tab", package = "rmimp")

The mutation file contains the following lines:

TP53 R282W
TP53 R248P
TP53 W146S
CTNNB1 S33C
CTNNB1 S37F

The phophosite file contains the following lines:

TP53	284
TP53	215
CTNNB1	33

To start the analysis, simply run the mimp function on these files:

# Run rewiring analysis
results = mimp(mut.file, seq.file, psite.file, display.results=TRUE)

The output is stored in the results variable and should show up in your browser. To suppress browser display, set display.results=FALSE

If you'd like to redisplay the results in your browser at a later time, run the following:

results2html(results)

Running MIMP without phosphosite data:

If you don't pass phosphosite data to the function call, MIMP will use positions of all S, T and Y residues in your FASTA file as potential phosphosites.

# Run rewiring analysis
results2 = mimp(mut.file, seq.file, display.results=TRUE)

Running MIMP without phosphosite or sequence data:

If you pass only a mutation file to the function call, MIMP will use positions of experimentally identified phosphosites from PhosphoSitePlus, and their corresponding sequences. PhosphoSitePlus uses UniProt accessions as identifiers, so for this please make sure the IDs used in your mutation file are uniprot accessions:

Here's an example using a file with five mutations:

P04637 R282W
P04637 R248P
P04637 W146S
P35222 S33C
P35222 S37F
# Get the path to example mutation data 
mut.file.up = system.file("extdata", "sample_muts_uniprot.tab", package = "rmimp")

# run mimp
results3 = mimp(mut.file.up, display.results = TRUE)

Documentation

For a full list of all options, take a look at the documentation by typing the following in your R console:

?mimp

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.

rmimp's People

Contributors

kvnkuang avatar omarwagih avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rmimp's Issues

Problem R code

The function "subjectHIts" needs to be changed for "to"

How to obtain the mutation data?

Hi MIMP and others,

Anyone could provide an introduction about how to obtain the mutation data? I do not know which software could hold this. Thanks a lot.

Bests

quiet mode in R

It would be great to have a "quiet mode" in R where progress % and messages are not printed. Analysing thousands of proteins in a batch will spent a lot of energy on reporting.

reading mutations from data.frame

R-MIMP would be more efficient if it would be able to load mutations from a data frame rather than a file. Sequences and sites as R objects are already included (that's great!) so it would make sense to allow this for mutations as well.

Problem installation in R

I tried to install rmimp on R (version 3.6.0) but I had the following error:

install_github("omarwagih/rmimp")
Downloading GitHub repo omarwagih/rmimp@master
✔ checking for file ‘/tmp/Rtmp73qJKP/remotes295f4b06723f/omarwagih-rmimp-5bf4fc6/DESCRIPTION’ ...
─ preparing ‘rmimp’: (537ms)
✔ checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘rmimp_1.2.tar.gz’

Installing package into '/home/lecob/R/x86_64-pc-linux-gnu-library/3.6'
(as 'lib' is unspecified)

  • installing source package ‘rmimp’ ...
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    ** building package indices
    ** testing if installed package can be loaded from temporary location
    ** testing if installed package can be loaded from final location
    ** testing if installed package keeps a record of temporary installation path
    ERROR: hard-coded installation path: please report to the package maintainer and use ‘--no-staged-install’
  • removing ‘/home/lecob/R/x86_64-pc-linux-gnu-library/3.6/rmimp’
    Error in i.p(...) :
    (converted from warning) installation of package '/tmp/Rtmp73qJKP/file295f30c4b032/rmimp_1.2.tar.gz' had non-zero exit status

sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.2 LTS

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.