Cancer Mutation Data Analysis
1
0
Entering edit mode
6.8 years ago
kulani.s91 • 0

I have a data set consisting of mutation data and NaN and NA values as shown below.

GENE    X115    X1154   X1156
AAMP    NaN         NaN         NaN
AARS2   NaN        NaN          NaN
ABCA9   Q10*    NaN         NaN
ABCB1   NA          NA           NA

Is there a way to maintain the NA and NaN values and analyse the data set using apcluster in R-Programming?

Mutation R-Programming • 1.3k views
ADD COMMENT
0
Entering edit mode

Most commands in R have an option along the lines of na.rm. No such option here?

ADD REPLY
0
Entering edit mode

Thank you for the reply. The na.rm() handles the NA values, but I need a method to handle the NaN values since apcluster does not output the correct answer or runs across an error when the NaN values are present.

ADD REPLY
0
Entering edit mode

U can replace NaN to NA or with 0 and then you can re run code

ADD REPLY
0
Entering edit mode

Either this or R also has an option (na.values) I think, to denote what values should be considered NA

ADD REPLY
0
Entering edit mode

Also, please use the formatting bar (especially the code option) to present your post better. I've done it for you this time. Formatting bar

ADD REPLY
0
Entering edit mode
6.8 years ago
Kritika ▴ 270

u can use this

 apcluster(na.omit(your_data_set))
ADD COMMENT

Login before adding your answer.

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