Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Its not an issue rather a request #1

Open
kcmtest opened this issue Jul 18, 2022 · 2 comments
Open

Its not an issue rather a request #1

kcmtest opened this issue Jul 18, 2022 · 2 comments

Comments

@kcmtest
Copy link

kcmtest commented Jul 18, 2022

This is fantastic paper a lot of things for me to learn just by looking at the analysis.
I was trying to replicate the TCGA analysis

This part I tried to run but i don't see any output I would be really glad if you could let me know what is the other way of doing?

mycgds <-  CGDS("http://www.cbioportal.org/public-portal/")
tcgaAML <- getCancerStudies(mycgds)[1,1]
cases <- getCaseLists(mycgds,tcgaAML)[8,1]
g <-  lapply(split(as.numeric(entrez), seq_along(entrez)%/%500), function(genes) getProfileData(mycgds,genes,getGeneticProfiles(mycgds,tcgaAML)[2,1],cases)) ## load in batches of 500
g <- do.call("cbind", g)
@mg14
Copy link
Member

mg14 commented Jul 20, 2022

Thanks -- perhaps the query protocol for cBio has changed in the mean time? The paper was done in 2014. What are the return values for each command?

@kcmtest
Copy link
Author

kcmtest commented Jul 20, 2022

Thank you for the quick response Dr Moritz

the output i get

The error update it

mycgds <-  CGDS("http://www.cbioportal.org/public-portal/")
[1] "CGDS: 0x55bcf82ce978"
tcgaAML <- getCancerStudies(mycgds)[1,1]
> tcgaAML
[1] "<html class=\"cbioportal-frontend\">"
cases <- getCaseLists(mycgds,tcgaAML)[8,1]
 cases
[1] "    <title>cBioPortal for Cancer Genomics</title>"
g <-  lapply(split(as.numeric(entrez), seq_along(entrez)%/%500), function(genes) getProfileData(mycgds,genes,getGeneticProfiles(mycgds,tcgaAML)[2,1],cases)) ## load in batches of 500
 Error in `[.data.frame`(df, , 2) : undefined columns selected 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants