Bioconductor / GenomicDataCommons

Provide R access to the NCI Genomic Data Commons portal.
http://bioconductor.github.io/GenomicDataCommons/
83 stars 23 forks source link

slicing fails on multiple regions #51

Closed tischfis closed 1 year ago

tischfis commented 6 years ago

When submitting a character list to slice() (works given a single region but not multiple) Error: Tried to unbox a vector of length 2

follow error to code unbox(regions)

LiNk-NY commented 6 years ago

Hi @tischfis,

Thanks for reporting this. Can you provide a reproducible example?

Regards, Marcel

tischfis commented 6 years ago

Hi,

Using the function slicing()

slicing(uuid = "06bf038e-5a44-4a82-b44b-04a94b4a63cd", regions = c("chr1:41553924-42890396","chr2:8067262-9367429"),token = token, legacy = FALSE,destination ="~home/temp/temp.bam",overwrite = F) Error: Tried to unbox a vector of length 2

When I created a local instance of slicing() replacing else body <- list(regions = unbox(regions)) with: else body <- list(regions=(regions))

The method no longer throws an error, however I haven’t tried this using a single region.

Sam

LiNk-NY commented 1 year ago

I get an error when using the code you mention above:

> body <- list(regions = unbox(regions))
Error: Tried to unbox a vector of length 2