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

Get study ID corresponding to a sample ID #39

Open
karissawhiting opened this issue Jun 13, 2022 · 0 comments
Open

Get study ID corresponding to a sample ID #39

karissawhiting opened this issue Jun 13, 2022 · 0 comments

Comments

@karissawhiting
Copy link
Owner

Currently you can't query by sample ID without also providing the study ID. Sometimes you may not know the study ID that a sample belongs to. We can potentially add a function to show which studies a certain ID belongs to with the API keyword search functionality:

set_cbioportal_db("public")
r <- httr::GET("https://www.cbioportal.org/api/samples?direction=ASC&keyword=%s_C_03LNU8_P001_d")
z <- jsonlite::fromJSON(httr::content(r, "text", encoding = "UTF-8"), simplifyVector = FALSE)
@karissawhiting karissawhiting added this to the v1.1.0 milestone Jun 14, 2022
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

1 participant