bhklab / genefu

R package providing various functions relevant for gene expression analysis with emphasis on breast cancer.
25 stars 13 forks source link

Genefu package #32

Open Ojulari opened 2 years ago

Ojulari commented 2 years ago

Click preview tab ^^^ above!

By continuing to file this new issue / feature request, I confirm I have :

  1. Searched open and closed issues on this repository to ensure I am not duplicating an issue for a previously resolved problem, known bug or existing feature request.
  2. Read all package documentation relevant to the functions or classes causing the problem, including the help pages. For example, by running ?functionName in the R terminal or using the help() function as well as consulting with relevant package vignettes.

Thanks! Please remove the text above and include the two items below.

# Minimal reproducible example; please be sure to set verbose=TRUE where possible!

# Output of sessionInfo()

Ojulari commented 2 years ago

I am trying to do a portfolio with the genefu package replicating the tutorial using breastcancervdx but ones I get to a stage in molecular subtype classification this code it gives error error. It doesn’t recognise this (“ surv.obj.PAM50 <- survfit(Surv(data.for.survival.PAM50$months_to_death, data.for.survival.PAM50$vital_status) ~ data.for.survival.PAM50$PAM50)

Secondly for comparing risk prediction once I get to this code it starts giving error as well

here

BIND ALL TOGETHER

res <- rbind(res, rest) } names(ddemo.all) <- dn

Please I need your help as I need to be able to run the complete tutorial with the vdx get me my curve and be able to discuss and create a portfolio for submission Thanks in anticipation of your response

Best regards Halimat

ChristopherEeles commented 2 years ago

Hi @Ojulari,

We are happy to help with your concern.

However, please kindly read the issue template and include all requested information so we get enough context to answer your questions.

Best, Christopher Eeles Software Developer Haibe-Kains Lab

Ojulari commented 2 years ago

Hi ChristopherEeles

For the molecular subtype I have written the code I run and error. data.for.survival.PAM50$months_to_death <- data.for.survival.PAM50$t.os / days.per.month data.for.survival.PAM50$vital_status <- data.for.survival.PAM50$e.os == "1" surv.obj.PAM50 <- survfit(Surv(data.for.survival.PAM50$months_to_death, data.for.survival.PAM50$vital_status) ~ data.for.survival.PAM50$PAM50)

Once I run the above code w.r.t PAM50 and SCMOD2 this is the error given Error in survfit formula(surv(data.for.survival.PAM50$month_to_death,: data has no non-missing observations

and I noticed that the data survival for both has 0 objects of 4 variables for both And I can’t proceed to get the Kaplan Meier curve either.

and I have also written the codes I run and errors generated for risk prediction model.

res <- rbind(res, rest) } names(ddemo.all) <- dn

error message Error in cbind, rest AKURA =sig.score(x=modt, data=ddata, annot = dannot, : Object ‘rest’ not found

looking forward to hear from you soon. Thanks

best regards Halimat

Ojulari commented 1 year ago

Hi ChristopherEles

trust your day is going on well.

please am looking forward to hear from you

thanks in anticipation of your response

Ojulari commented 1 year ago

Hi ChristopherEeles

For the molecular subtype I have written the code I run and error. data.for.survival.PAM50$months_to_death <- data.for.survival.PAM50$t.os / days.per.month data.for.survival.PAM50$vital_status <- data.for.survival.PAM50$e.os == "1" surv.obj.PAM50 <- survfit(Surv(data.for.survival.PAM50$months_to_death, data.for.survival.PAM50$vital_status) ~ data.for.survival.PAM50$PAM50)

Once I run the above code w.r.t PAM50 and SCMOD2 this is the error given Error in survfit formula(surv(data.for.survival.PAM50$month_to_death,: data has no non-missing observations

and I noticed that the data survival for both has 0 objects of 4 variables for both And I can’t proceed to get the Kaplan Meier curve either.

and I have also written the codes I run and errors generated for risk prediction model.

res <- rbind(res, rest) } names(ddemo.all) <- dn

error message Error in cbind, rest AKURA =sig.score(x=modt, data=ddata, annot = dannot, : Object ‘rest’ not found

looking forward to hear from you soon. Thanks

best regards Halimat