Filtering NA from MethyLumiSet
0
0
Entering edit mode
4.5 years ago

I have MethyLumiSet object which has some NA

sumis.na(exprs(infdata)))

[1] 3822

Now how do I remove NA's from it and keep the same MethyLumiSet class for the result? I thought of something like:

exprs(infdata) <- exprs(infdata)[!is.na(exprs(infdata))]

but I'm not sure whether this is the correct way.

R • 632 views
ADD COMMENT
0
Entering edit mode

Isn't it the case that infdata is of class MethyLumiSet while exprs(infdata) is not? You might be working with a 2D structure like a matrix or data.frame, which would make your life simpler.

ADD REPLY
0
Entering edit mode

Yes you're right, I was wondering if there's a way to filter the MethyLumiSet itself without filtering just the m-values. I need MethyLumiSet later on.

ADD REPLY
0
Entering edit mode

Well, the MethyLumiSet seems to be a list of 2D data structures, so filtering the list doesn't make sense. You may need to create a copy of the list and then filter each 2D component of the new list.

ADD REPLY

Login before adding your answer.

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