API:
This service allows you download structures programatically on your terminal.
Template URL for single accession as input:
https://project.iith.ac.in/sharmaglab/alphafoldextractor/api/<id-type>/<id>
Template URL for multiple accessions as input:
https://project.iith.ac.in/sharmaglab/alphafoldextractor/api/<id-type>
<id-type>: oldlocustag / locustag / uniprot / alphafold / refseq / taxonomy
For multiple accessions, only ids and optionally format are accepted in request body.
format deafaults to 'pdb'.
ids : Comma seperated values. Spaces and '_' are tolerated. Unsupported symbols are converted to '_'.
format : [pdb] / cif / bcif / pae / all
Examples:
Single accession as input:
curl -JL https://project.iith.ac.in/sharmaglab/alphafoldextractor/api/oldlocustag/MXAN_1028 > structures.zip
wget --output-document=structures.zip https://project.iith.ac.in/sharmaglab/alphafoldextractor/api/oldlocustag/MXAN_1028
Multiple accessions as input:
IDS=$(cat input.txt | xargs | sed 's/ /,/g')
curl -OJL -d "ids=$IDS" https://project.iith.ac.in/sharmaglab/alphafoldextractor/api/oldlocustag
curl -JL -d "ids=$IDS&&format=bcif" https://project.iith.ac.in/sharmaglab/alphafoldextractor/api/oldlocustag > sample.zip
curl -JL -d "ids=$IDS" -d "format=bcif" https://project.iith.ac.in/sharmaglab/alphafoldextractor/api/oldlocustag > sample.zip
wget --post-data="ids=$IDS" --content-disposition --trust-server-names https://project.iith.ac.in/sharmaglab/alphafoldextractor/api/oldlocustag
wget --post-data="ids=$IDS&format=bcif" --output-document=sample.zip https://project.iith.ac.in/sharmaglab/alphafoldextractor/api/oldlocustag