Entering edit mode
4.0 years ago
j.lunger18
▴
30
I'm interested in downloading TCGA controlled access data and have the permissions to do so. I have a list of file IDs for .vcf files for download, but would like to slice them before download because I do not need annotations from the entire genome. Does anyone know how to do this?
For reference, I was able to do this for controlled access bam files with the following command after exporting the authorization token:
for id in $(cat file_ids.txt)
do
curl --header "X-Auth-Token:$token" "https://api.gdc.cancer.gov/slicing/view/${id}?gencode=my_gene" \
--output desitination/${id}.bam
done