Question: Obtaining rules between genes using Arules package
gravatar for marwwa11
23 months ago by
marwwa110 wrote:

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)?

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

ADD COMMENTlink modified 23 months ago • written 23 months ago by marwwa110
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2123 users visited in the last hour