I am attempting to use multiple projects from recount2 and can't figure out why I can only get 343 samples downloaded from SRP000941 yet according to all_metadata() and the recount2 website SRP000941 has 545 samples. The R code showing my issue is posted below. Thanks in advance for any help.
#download all metadata from recount, make into tibble called tblmetadata
metadata <- all_metadata()
tblmetadata <- as_tibble(metadata)
#do some metadata processing, decide SRP000941 is one of the studies I want to use
#according to processing (and recount website) SRP000941 has 345 samples
test <- tblmetadata %>% filter(project == "SRP000941")
dim(test)
#dim(test) outputs 345 21
#download and load rse_gene from SRP000941
download_study("SRP000941", type = "rse-gene")
load(file.path("SRP000941", "rse_gene.Rdata"))
#check dimensions of rse_gene just downloaded
dim(rse_gene)
#output is 58037 343
dim(assays(rse_gene)$counts)
#again output is 58037 343
Thank you! Really appreciate your help.
No problem =)