GenomicDataCommons icon indicating copy to clipboard operation
GenomicDataCommons copied to clipboard

slicing fails on multiple regions

Open tischfis opened this issue 6 years ago • 2 comments

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)

tischfis avatar May 07 '18 20:05 tischfis

Hi @tischfis,

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

Regards, Marcel

LiNk-NY avatar May 08 '18 03:05 LiNk-NY

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

tischfis avatar May 08 '18 14:05 tischfis

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

LiNk-NY avatar Dec 08 '22 15:12 LiNk-NY