I have RNA-Seq data which is FPKM
. In the dataframe df
first column is gene_name
and the other 100 columns are samples
.
Usually if it is counts
data I do like following:
df2 <- aggregate(. ~ gene_name, data = df, max)
I'm not sure what do with the FPKM
data if there are duplicate genes with different FPKM
value for the same sample.
Lets say it looks like this:
gene_name sample1 sample2 sample3
5S_rRNA 0.3206147 0.3327312 0.377578
5S_rRNA 0.3342000 0.0000000 0.1305166
Any suggestions please.