unable to find inherited method inRUVG
1
0
Entering edit mode
@husainmanagori1998-22771
Last seen 2.6 years ago
germany

i want to remove unwanted variation from mi RNA raw read count data set,i have two sample one is control and other is main data, i tried to run following example: x1<-RUVg(x = more100,cIdx = migenes,k = 1,drop = 0) x=migenes is main data which has 2234 obs and 90 sample along with gene id cidx = migenes is negative control sample which has 641 obs with 90 sample along with gene id

and got error ::Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘RUVg’ for signature ‘"data.frame", "data.frame", "numeric"’** am i running code in correct way?

ruvseq RUVSeq • 1.1k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 2 days ago
United States

By definition, no. If you only have two samples then there is no unwanted variation to remove! In other words, the unwanted variation that RUV is intended to remove is between-sample variation (where by between-sample we really mean 'between samples from the same group'). Since you only have one sample per group, there is no variation between samples from the same group, hence no variability to remove.

ADD COMMENT
0
Entering edit mode

Oh, wait. If you have 90 samples, why do you say you have two samples? That doesn't make any sense at all. You either have 90 or you have two. You can't have both.

Anyway, the correct course of action for you, when presented with an error that says

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘RUVg’ for signature ‘"data.frame", "data.frame", "numeric"’

Is to actually read the error, which says there is no method for a data.frame, and then go 'huh, wonder what the input should be?', after which you go to the help page for this function to see that it says

Arguments:

    x   Either a genes-by-samples numeric matrix or a SeqExpressionSet object containing the read counts.

Which seems pretty self-explanatory?

ADD REPLY
0
Entering edit mode

thank you @james .from your answer , i understood that , x= need to provide matrix which has geneId and samples. and for cIdx = only geneid or numeric nubers.

ADD REPLY

Login before adding your answer.

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