Finding standard deviation from dataframe
0
0
Entering edit mode
2.5 years ago
soyeon • 0

enter image description here

Hi,

I'm studying about DNA methylation.

I ran minfi to get a beta value file, but the file size is too large.

So i have to filtering this file as standard deviation >0.05 by cgIDs.

How do I get standard deviation value??

standard DNAmethylation deviation • 697 views
ADD COMMENT
1
Entering edit mode

I am not convinced about filtering CpGs by standard deviation because "the file is too large" but if you want to do that using R, you can use apply(dataframe,1,sd) to obtain sd for each CpG

ADD REPLY
0
Entering edit mode

Thank you so much...

Do you know how to get the standard deviation of rows all at once and add them to the dataframe?

ADD REPLY
0
Entering edit mode

Supposing df is your dataframe of beta values : df$sd = apply(df,1,sd)

ADD REPLY

Login before adding your answer.

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