Closed SisiChen16 closed 2 years ago
Hi @SisiChen16
Please make sure that the path to the token is correct.
Within the R session, you can check if the environment variable is specified using
Sys.getenv("GDC_TOKEN")
.
You can add the contents of the token within the ~/.Renviron
file as GDC_TOKEN="token_text"
and then check using the code above. (as long as you don't start R with the --no-environ
flag in the command line)
I don't see an issue with the code.
Best regards, Marcel
Hi Marcel,
The problem has been solved, thank you so much!
Best wishes, Sisi
Hi Marcel,
I encountered another problem when I'm trying to use Bam slicing, the code I used and output are as below:
It says "Error in slicing(file_ids[1], regions = "chrX:84058346-84188199", token = gdc_token()) : missing(token) is not TRUE". As I managed to run the token = gdc_token() in the previous step, I assume the token authentication is approved, but why does it still show missing(token) here?
Best wishes, Sisi
@SisiChen16, I think the last piece was a bug. See #91. Should be fixed in 1.19.3 now on github if you want to try it.
I was trying to get token authentication, I managed to download a token as "txt" file, and tried the three ways of gdc_token as below, but none of them worked. The error message keeps popping up, as "Error in gdc_token(): file.exists(token_file) is not TRUE", I don't know what to do.