I have encontered an error using GDCprepare with gene expression data from BEATAML1.0-COHORT, while trying to add clinical information to samples:
Error in dplyr::bind_cols():
! Can't recycle ..1 (size 0) to match ..2 (size 2).
The error appears with the last TCGAbiolinks versions (2.32.0 and 2.31.4), but not with older versions like 2.28.4.
The error can be found running the following code (including rlang::last_trace() output):
> library(TCGAbiolinks)
> query_BEATAML1.0COHORT <- GDCquery(project = "BEATAML1.0-COHORT",
+ data.category = "Transcriptome Profiling",
+ data.type = "Gene Expression Quantification",
+ data.format = "tsv")
--------------------------------------
o GDCquery: Searching in GDC database
--------------------------------------
Genome of reference: hg38
--------------------------------------------
oo Accessing GDC. This might take a while...
--------------------------------------------
ooo Project: BEATAML1.0-COHORT
--------------------
oo Filtering results
--------------------
ooo By data.format
ooo By data.type
----------------
oo Checking data
----------------
ooo Checking if there are duplicated cases
ooo Checking if there are results for the query
-------------------
o Preparing output
-------------------
>
> GDCdownload(query_BEATAML1.0COHORT)
Downloading data for project BEATAML1.0-COHORT
Of the 735 files for download 735 already exist.
All samples have been already downloaded
>
> data_BEATAML1.0COHORT <- GDCprepare(query_BEATAML1.0COHORT)
|==================================================================================================================================================|100% Completed after 6 s
Starting to add information to samples
=> Add clinical information to samples
Error in `dplyr::bind_cols()`:
! Can't recycle `..1` (size 0) to match `..2` (size 2).
Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/vctrs_error_incompatible_size>
Error in `dplyr::bind_cols()`:
! Can't recycle `..1` (size 0) to match `..2` (size 2).
---
Backtrace:
▆
1. └─TCGAbiolinks::GDCprepare(query_BEATAML1.0COHORT)
2. └─TCGAbiolinks:::readTranscriptomeProfiling(...)
3. └─TCGAbiolinks:::makeSEfromTranscriptomeProfilingSTAR(...)
4. └─TCGAbiolinks::colDataPrepare(cases)
5. └─TCGAbiolinks:::splitAPICall(...)
6. └─base::tryCatch(...)
7. └─base (local) tryCatchList(expr, classes, parentenv, handlers)
8. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
9. └─value[[3L]](cond)
10. └─TCGAbiolinks (local) FUN(items[start:end])
11. └─dplyr::bind_cols(df %>% as.data.frame, diagnoses %>% as.data.frame)
Run rlang::last_trace(drop = FALSE) to see 5 hidden frames.
Hello,
I have encontered an error using GDCprepare with gene expression data from BEATAML1.0-COHORT, while trying to add clinical information to samples:
Error in
dplyr::bind_cols()
: ! Can't recycle..1
(size 0) to match..2
(size 2).The error appears with the last TCGAbiolinks versions (2.32.0 and 2.31.4), but not with older versions like 2.28.4. The error can be found running the following code (including rlang::last_trace() output):
And my R session info:
Thank you