Running a single prediction using API


Users can submit an API (Application Programming Interface) job using 'curl' commands or PYTHON scripts as below.

1. 'curl' commands
# Submitting a job using PDB FILE
curl http://biosig.unimelb.edu.au/csm_ab/api/prediction_single -X POST -i -F pdb_file=3l5x.pdb
curl http://biosig.unimelb.edu.au/csm_ab/api/prediction_pose -X POST -i -F receptor_file=receptor.pdb -F pose_file=poses.pdb

# Submitting a job using PDB ID
curl http://biosig.unimelb.edu.au/csm_ab/api/prediction_single -X POST -i -F pdb_accession=3L5X

# Retrieving a result with JOB ID
curl http://biosig.unimelb.edu.au/csm_ab/api/prediction_single -X GET -F job_id={JOB_ID}
                

2. running PYTHON scripts
# Submitting a single/pose prediction job using PDB FILE
python post.py single --pdb_file 3l5x.pdb
python post.py pose --receptor_file receptor.pdb --pose_file poses.pdb

# Submitting a single prediction job using PDB ID
python post.py single --pdb_accession 3L5X

# Retrieving a result with JOB ID
python get.py single {JOB_ID}
python get.py pose {JOB_ID}