Obtaining rules between genes using Arules package
0
0
Entering edit mode
5.2 years ago
marwwa11 • 0

Hi, I am doing this code to obtain association rules from a data expression matrix mat with 13 genes in columns and 24 transactions in lines: how can I obtain this kind of rules(gene a,.. - > gene b)?

library(arules) 
Disc<- discretize(mat) 
Write(disc, file="disc. csv", sep=",")
tr<-read. transactions(file="disc. csv")
Rules=apriori(tr, parameter=list(supp=0.1, conf=0.1))

By using this code I have an example of this rule: [1] {} =>{2,1,1,2,2}

How to correct my code please, thanks

RNA-Seq arules Gene expression apriori • 739 views
ADD COMMENT

Login before adding your answer.

Traffic: 1985 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6