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

Error using cBioportalData on Genie data #70

Closed
ZWael opened this issue Jul 13, 2023 · 4 comments
Closed

Error using cBioportalData on Genie data #70

ZWael opened this issue Jul 13, 2023 · 4 comments

Comments

@ZWael
Copy link

ZWael commented Jul 13, 2023

Hello CbioPortalData Team,

I was using the R package cBioPortalData as recommended here by genie.cbioportal.org
https://docs.cbioportal.org/web-api-and-clients/#r-client
but having some errors
here is my code

cbio=cBioPortal(
    hostname = "genie.cbioportal.org",
    token = "xxxxx" # extracted from the https://genie.cbioportal.org/webAPI#using-data-access-tokens (download button)
)

Error in cBioPortal(hostname = "genie.cbioportal.org", token = "xx") : 
unused argument (token = "xx")
  1. Does the cBioPortal function support a token argument ?

I commented the token argument
but I had an other error when extracting studies

getStudies(cbio)
Error in x[["pmid"]] : object of type 'externalptr' is not subsettable
  1. Does cBioPortalData works on genie.cbioportal.org
@LiNk-NY
Copy link
Contributor

LiNk-NY commented Jul 14, 2023

Hi @ZWael
Thank you for submitting the issue. I've added a helper function to parse tokens from the genie service.
You can try and see the updated version 2.13.6
It should work with the data at genie.cbioportal.org.
If not open a new issue specific to the data

@LiNk-NY LiNk-NY closed this as completed Jul 14, 2023
@ZWael
Copy link
Author

ZWael commented Jul 15, 2023

@LiNk-NY Nice work, could you have a friendly update with R 4.1.1 ?

@LiNk-NY
Copy link
Contributor

LiNk-NY commented Jul 17, 2023

@ZWael Bioconductor versions are tied to R versions so unfortunately, I don't have one. If possible, update your R version. Otherwise, you could try to install from GitHub but it is not guaranteed to work.

@ZWael
Copy link
Author

ZWael commented Jul 17, 2023

@LiNk-NY, I will try a a work around or updating my R version.
Thank you for this nice package.

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