My question is somwewaht related to Downloading count matrix for full recount3 dataset but I am not interested in a single study, but rather in analysing multiple datasets together. For example:
projects <- c("SRP009615", "SRP013565")
proj_info <- subset(
human_projects,
project %in% c(projects) & project_type == "data_sources"
)
proj_info
project organism file_source project_home project_type n_samples
33 SRP013565 human sra data_sources/sra data_sources 2212
1838 SRP009615 human sra data_sources/sra data_sources 12
## Create a RangedSummarizedExperiment (RSE) object at the gene level
rse_gene <- create_rse(proj_info, type = "gene")
sessionInfo( )
leads to an error:
Error in create_rse(proj_info, type = "gene") :
'project_info' should only have one row
I could do a loop
or apply
to get the counts tables and metadata for each project, and then merge it all in a new summarizedExperiment
object, but I wanted to ask if there is already a way of doing this with the recount3
API.
Cheers.