Hello everyone, this is my first question on this platform. I'm not a statistician but trying to understand if can we use differentially normalized data (eg. FPKM, RPKM, CPM) to merge and apply LASSO regression for comprehensive RNAseq cancer data analysis.
Reproducible Example
install.packages(c("reprex", "glmnet"))
library(reprex)
library(glmnet)
#Set seed for reproducibility
set.seed(123)
#Create sample FPKM data
fpkm_data <- matrix(rnorm(1000, mean = 10, sd = 5), ncol = 10)
rownames(fpkm_data) <- paste0("Gene", 1:100)
colnames(fpkm_data) <- paste0("Sample_FPKM", 1:10)
#Create sample RPKM data
rpkm_data <- matrix(rnorm(1000, mean = 5, sd = 2), ncol = 10)
rownames(rpkm_data) <- paste0("Gene", 1:100)
colnames(rpkm_data) <- paste0("Sample_RPKM", 1:10)
#Merge the datasets
merged_data <- cbind(fpkm_data, rpkm_data)
#Create outcome variable (response)
outcome_variable <- rnorm(10, mean = 15, sd = 5)
#Apply LASSO regression
lasso_model <- cv.glmnet(x = merged_data, y = outcome_variable, alpha = 1)
#Display the results
summary(lasso_model)
I would greatly appreciate it if anyone with knowledge or insights on this topic could kindly provide their input. Your responses would be highly valued. Thank you in advance!
statistics
ml
lasso