I have a very huge dataframe (about 700 columns and 4,00,000 rows). Example as follows:
"samp1" "samp2" "samp3"
"ct1" 3.45909539741409 4.16162745114877 4.28378657903742
"ct2" 2.45516883029741 2.64529479763739 2.62023669114738
"ct3" -1.53506396613939 -1.53318358856732 -1.2235498333358
"ct4" 2.54561049516449 1.91067140586626 2.6860636959124
"ct5" 1.08270893850391 0.847112473835081 0.90241673852809
"ct6" -1.49057768051391 -1.09321836721649 -1.11635564230449
"ct7" -0.82888593769947 -0.533641693674542 -0.339345700770896
All the columns contain log2 values in every numeric cell (lets say “a”) and i wish to convert them all to normal values (lets say “b”), with the following formula:
b = 2^a / [(2^a) + 1]
So my resulting file should be like the above, but with all the converted values of b, instead of a.
Can anyone help me with this ?
Thanks in advance.
Create some data
Transform: