Closed hchintalapudi closed 2 years ago
Can you check for all types of missing and other values, including -Inf
, NA
, n/a
, and even empty fields ""
.
It looks like you are using TCGA clinical data, which can be very sparse.
Hi, Thanks for this suggestion. I checked and I did not find any of the values you mentioned.
allmisscols <- sapply(skcm_cox_input, function(x) all(is.na(x) | x == '' | x=='n/a' | x== -Inf))
colswithallmiss <-names(allmisscols[allmisscols>0])
cat( colswithallmiss,sep="\n")
gives me nothing.
I wonder what went wrong.
Any success? If you want, please provide a minimal reproducible example so that I can re-produce and debug this error. Otherwise I will close this issue in a few days. Thanks!
Hi Kevin, I'll see if I can replicate the same issue with another dataset. For now, I'm attaching the data here and it would be great if you could run and see if you get the same error or if you see anything worrisome with my data/formatting. Here is the piece of code I was trying to run:
skcm_cox_res<-RegParallel(
data = skcm_cox_input,
formula = 'Surv(survival.time, censor) ~ [*] + age_at_diagnosis + ajcc_pathologic_tumor_stage',
FUN = function(formula, data)
coxph(formula = formula,
data = data,
ties = 'breslow',
singular.ok = TRUE),
FUNtype = 'coxph',
variables = colnames(skcm_cox_input)[5:ncol(skcm_cox_input)],
blocksize = 4000,
cores = 2,
nestedParallel = FALSE,
conflevel = 95,
excludeTerms = c("age_at_diagnosis", "ajcc_pathologic_tumor_stage"),
excludeIntercept = TRUE,
p.adjust = 'fdr')
Thanks for your time.
Hi, can you provide any update here? Thank you.
Please re-open if the issue persists.
Hi, I can't seem to understand what this error means, I made sure I removed the NAs in my data.
Any tips appreciated, thanks!