References:
- https://support.basespace.illumina.com/knowledgebase/articles/403618-python-run-downloader
- https://developer.basespace.illumina.com/docs/content/documentation/rest-api/api-reference
Steps:
- Follow steps 1-5 in the first link above to acquire access_token. This will take a while, but you only need to do this once. Never share this token!!
- Find the file you want to download. Copy the link, which looks something like:
https://basespace.illumina.com/sample/9804795/files/tree/NA12878-L1_S1_L001_R1_001.fastq.gz?id=515013503
. The "id" is the unique file identifier. - Download the file with:
wget -O filename 'https://api.basespace.illumina.com/v1pre3/files/{id}/content?access_token={token}'
, where {token} is from step 1 and {id} from step 2.