Running a single prediction using API


Users can submit an API (Application Programming Interface) job with 'curl' command and PYTHON script as below.

  • pdb file (pdb_file) or pdb code (pdb_accession): provide a PDB structure through a file or PDB accession code
  • mutation (mutation_list): provide one multiple mutation separating each point mutation with semi-colon(;).
    Each mutation should have a format of Chain+Wild+Position+Mutant (JS277A;KF148A)
  • type of nucleic acid (na_type): select correct nucleic acid type among ssDNA,dsDNA,ssRNA, and dsRNA
1. 'curl' commands
# Submitting a job using PDB FILE
curl http://biosig.unimelb.edu.au/mmcsm_na/api/prediction_single -X POST -i -F pdb_file=@/Users/ymyung/Desktop/1a02.pdb --form-string 'mutation_list=JS277A;FK148A' -F na_type=dsDNA

# Submitting a job using PDB ID
curl http://biosig.unimelb.edu.au/mmcsm_na/api/prediction_single -X POST -i -F pdb_accession=1A02 --form-string 'mutation_list=JS277A;FK148A' -F na_type=dsDNA

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

2. or running PYTHON scripts
# Submitting a job using PDB FILE
python mmcsm_na_single_prediction_post.py --pdb_file 1a02.pdb --mutation_list 'JS277A;FK148A' --na_type dsDNA

# Submitting a job using PDB ID
python mmcsm_na_single_prediction_post.py --pdb_accession 1A02 --mutation_list 'JS277A;FK148A' --na_type dsDNA

# Retrieving a result with JOB ID
python mmcsm_na_single_prediction_get.py --job_id 161201677094