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

UCSCXenaTools: Retrieve Gene Expression and Clinical Information from UCSC Xena for Survival Analysis #40

Closed
gbregni opened this issue Jun 25, 2024 · 2 comments

Comments

@gbregni
Copy link

gbregni commented Jun 25, 2024

Hi,
I tried to use the markdown published on https://ropensci.org/blog/2019/09/06/ucscxenatools-surv/

This is what happens:

merged_data = tibble(sampleID = names(KRAS),
KRAS_expression = as.numeric(KRAS)) %>%
left_join(cli, by = "sampleID") %>%
filter(sample_type == "Primary Tumor") %>% # Keep only 'Primary Tumor'
select(sampleID, KRAS_expression, OS.time, OS) %>%
rename(time = OS.time,
status = OS)

Error in auto_copy():
! x and y must share the same src.
x is a <tbl_df/tbl/data.frame> object.
y is a list.
ℹ Set copy = TRUE if y can be copied to the same source as x (may be slow).
Run rlang::last_trace() to see where the error occurred.

#I think this is due to the fact that cli is not a 6 x 157 nibble as in your markdown, but rather a list of 2 tibbles ($LUAD_clinicalMatrix # and $LUAD_survival.txt), each containing part of the needed info. Any suggestions? Thanks!

Copy link

Thanks for reporting, Shixiang will reply as soon as possible:)

@ShixiangWang
Copy link
Member

Sorry for the delay. The data source has been changed.

cli = XenaPrepare(cli_query)

cli$LUAD_clinicalMatrix
cli$LUAD_survival.txt

You have to merged the two dataframe as a dataframe.

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