This is a test version of Biostars. For the public version, visit https://www.biostars.org.
GDC portal data download

Hello

I'm trying to download some TCGA WXS data from GDC portal using gdc-client, but it's not working.

It just shows the error message like below even though I use new token.

ERROR: Unable to download 9bb44eab-cf7f-4335-ba58-1fe8e815f4a8: 403 Client Error: FORBIDDEN:     { "message": "Your token is invalid or expired. Please get a new token from GDC Data Portal." }
SUMMARY: Failed to download: 1
ERROR: 9bb44eab-cf7f-4335-ba58-1fe8e815f4a8: 403 Client Error: FORBIDDEN: {   "message": "Your token is invalid or expired. Please get a new token from GDC Data Portal." }

and my bash file for running the gdc-client is like this.

$path_gdc-client  download -t $token 9bb44eab-cf7f-4335-ba58-1fe8e815f4a8

What is the problem and how can I fix it?

gdc gdcportal tcga

Do you have approved access for the TCGA controlled-access data?; Why not just try to directly specify the token instead of via a variable?; if you already have approved access, then you should be aware that the token expires relatively quickly, so, you have to download new ones after a month or so.

I have approved access and download a new token just before running the command but it still not working.

At the risk of sounding completely condescending, this same command worked previously? - I never previously had to specify the -s parameter. How did you obtain the ID (9bb44eab-cf7f-4335-ba58-1fe8e815f4a8) for download? - I usually obtain a file manifest.

1 answer

I put the -s parameter since the GDC url was changed and it worked. And as your comment, I reobtain the ID from a file manifest and It's working! I seem to have made a mistake while getting the ID. I do not know why the error message says the token is a problem, though. Thank you so much for your help=3

Okay - cool! Glad that it now works.

Log in to answer this question.