Bioconductor / GenomicDataCommons

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

token not recognized for slicing #107

Closed ajggit closed 1 year ago

ajggit commented 1 year ago

I have a valid GDC token for download that I can use at the command line or in the package e.g.

token = gdc_token() transfer("5ad51ec1-3bcf-445b-8a21-2908c818bdbe",token=token) Rows: 1 Columns: 5
── Column specification ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Delimiter: "\t" chr (4): id, filename, md5, state dbl (1): size

ℹ Use spec() to retrieve the full column specification for this data. ℹ Specify the column types or set show_col_types = FALSE to quiet this message. 100% [############################################] Time: 0:02:42 36.1 MiB/s 100% [############################################] Time: 0:00:02 1.7 MiB/s Successfully downloaded: 1

But if I try requesting a sliced region:

slicing("5ad51ec1-3bcf-445b-8a21-2908c818bdbe",regions="chr17:75000000-76000000",token=token) Error in slicing("5ad51ec1-3bcf-445b-8a21-2908c818bdbe", regions = "chr17:75000000-76000000", : missing(token) is not TRUE

So the token doesn't seem to work with the slicing function. Am I missing something obvious?

LiNk-NY commented 1 year ago

Hi @ajggit

Please make sure you are using version 1.19.3 or higher. For details see here: https://github.com/Bioconductor/GenomicDataCommons/issues/90

Best, Marcel