how to use build.mim function and on what type of data?
0
1
Entering edit mode
7.1 years ago
mona ▴ 10

how to solve the error of :"Error in cor(dataset, method = estimator, use = "complete.obs") : no complete element pairs" befor using build.mim function in minet package

R • 2.3k views
ADD COMMENT
0
Entering edit mode

please check; your genes should place in columns and samples in rows.

I think you read your original file with row.names = 1

simply read your file

then

mim <- build.mim(your.data,estimator="spearman")
ADD REPLY
0
Entering edit mode

the columns contain the genes and rows have the samples .and while reading my file I didn't use row.names=1

ADD REPLY
0
Entering edit mode

I have been facing the same issue. Have you found any solution yet ? If so could you please share how you overcame this problem ?

ADD REPLY
0
Entering edit mode

In your original data generaly genes are in row and samples in columns, if so; read your file so

your.data=t(read.table("your.data.txt", header = T, sep = "\t",row.names = 1))

then

library(minet)

and

mim <- build.mim(your.data,estimator="spearman")
ADD REPLY
0
Entering edit mode

Thank you for your reply.

your.data=t(read.table(file.choose(), header = T, sep = "\t",row.names = 1)) mim <- build.mim(your.data,estimator="spearman") Error in cor(dataset, method = estimator, use = "complete.obs") : no complete element pairs

i have been getting this error. whenever the gene list goes above 1000 . I have come to believe that this function is limited to a certain input range. I however want your outlook on this situation so that i can take a different route in my analysis.

my gene microarray dataset has 3264 genes across 6 timepoints

ADD REPLY
0
Entering edit mode

Add use="complete.obs" to build.mim

ADD REPLY
0
Entering edit mode

mim <- build.mim(genematrix,use="complete.obs") #Build Mutual Information Matrix Error in build.mim(genematrix, use = "complete.obs") : unused argument (use = "complete.obs")

This is the output after adding the parameter

ADD REPLY

Login before adding your answer.

Traffic: 2584 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