Finding standard deviation from dataframe
0
0
Entering edit mode
3 months ago
soyeon • 0

Hi,

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 • 242 views
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

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?

0
Entering edit mode

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