install.packages("RWeka")
install.packages("rJava")
install.packages("igraph")
install.packages("randomForest")
install.packages("rmcfs")
source("https://bioconductor.org/biocLite.R")
biocLite("Biostrings")
In order for the rJava package to work properly, you must have installed JDK java(https://www.oracle.com/java/technologies/downloads/) and JRE java(https://www.java.com/pt-BR/download/manual.jsp).
step - Defines the distance that will be traversed in the sequence for the formation of a new connection. By default the step parameter is set to 1
mRNA - Directory of an FASTA file containing mRNA sequences.
lncRNA - Directory of an FASTA file containing lncRNA sequences.
sncRNA - Directory of an FASTA file containing lncRNA sequences, this parameter is optional.
graphic - If TRUE is used to generate two-dimensional graphs between Thresholds x Measure. By default it is considered FALSE.
classifier - Character Parameter. By default the classifier is J48, but the user can choose to use randomForest by configuring as classifier = "RF". The prediction with a model passed by the param load only works with the classifier J48.
load - Name of the .dat file that will be loaded as a template for the prediction of new RNA sequences. By default is NULL.
save - Name of the .dat file in which the measurement results will be saved. The generated file can be used in the "load" parameter for the prediction of new data. By default is NULL.
mRNA <- system.file("extdata", "sequences2.fasta", package = "BASiNET") lncRNA <- system.file("extdata", "sequences.fasta", package = "BASiNET") library(BASiNET) classification(mRNA,lncRNA, save="example")
Example of generated graph:
Bidimensional graph for the measurement Average Minimum Path
knitr::include_graphics("2d.png")
mRNApredict <- system.file("extdata", "sequences2-predict.fasta", package = "BASiNET") lncRNApredict <- system.file("extdata", "sequences-predict.fasta", package = "BASiNET") modelPredict <- system.file("extdata", "modelPredict.dat", package = "BASiNET") library(BASiNET) classification(mRNApredict,lncRNApredict,load=modelPredict)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.