Skip to content

Commit

Permalink
example.R should be executed within the example folder
Browse files Browse the repository at this point in the history
  • Loading branch information
vbranders committed Jul 27, 2020
1 parent 6cb2c38 commit 0de6556
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions example/example.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@

# library(devtools)
# install_github("vbranders/mssm")
library("mssm")

# -----------------
# Example with importing data from file and executing a search

setwd("example")
library("mssm")

#Open a matrix
mat = as.matrix(read.csv("data.tsv", sep="\t", dec=".", header=FALSE, stringsAsFactors=FALSE))

Expand All @@ -24,8 +22,6 @@ print(solution)
# -----------------
# Example with making a matrix with uniform background and inserting solution

library("mssm")

build.matrix<-function(nr=500, nc=200, FUN = rnorm, ...){
return(matrix(FUN(...), nrow = nr, ncol = nc, byrow = TRUE))
}
Expand Down

0 comments on commit 0de6556

Please sign in to comment.