Using the SwissCellPrediction Webserver


1. Checking that the server is up and running

curl "https://swisscellprediction.ch:8443/hello"
Hello World! If the Web server is up and running, you will receive a "Hello World!" message. If not, please contact the SwissCellPrediction team.

2. Starting SwissCellPrediction to predict sensitive cell line targets of a query molecule

You can launch the SwissCellPrediction machinery using the startcellprediction command below: We will use the Artemisin molecule, with the following SMILES as an example:

C[C@@H]1CC[C@H]2[C@@H](C)C(=O)O[C@@H]3O[C@]4(C)CC[C@@H]1C32OO4
curl -s -G --data-urlencode "mySMILES=smiles" "https://swisscellprediction.ch:8443/startcellprediction"
Session number: 7281899
To check your session status, please run the following command:
curl "https://swisscellprediction.ch:8443/checksession?sessionNumber=7281899"
where:
  • smiles is the SMILES of the compound (Artemisin in our example)

3. Checking the status of your SwissCellPrediction job

You can check the status of the job by Session Number received upon submission. If the job is pending in the queue, you will be informed about how many jobs are waiting before yours. If the currently running, the running time will be reported. If the job is properly terminated, you will be informed that the job is finished.
curl "https://swisscellprediction.ch:8443/checksession?sessionNumber=65720367"
Your parameters:
  Query: smiles
  Input: C[C@@H]1CC[C@H]2[C@@H](C)C(=O)O[C@@H]3O[C@]4(C)CC[C@@H]1C32OO4
  Date: Thu 18 Dec 2025 01:07:13

Job is in the queue. Number of jobs before yours: 12
Your parameters:
  Query: smiles
  Input: C[C@@H]1CC[C@H]2[C@@H](C)C(=O)O[C@@H]3O[C@]4(C)CC[C@@H]1C32OO4
  Date: Thu 18 Dec 2025 01:07:13

Job currently running. Run time: 0:02
Your parameters:
  Query: smiles
  Input: C[C@@H]1CC[C@H]2[C@@H](C)C(=O)O[C@@H]3O[C@]4(C)CC[C@@H]1C32OO4
  Date: Thu 18 Dec 2025 01:07:13

Job is finished.
To retrieve the results, please run the following command:
curl "https://swisscellprediction.ch:8443/retrievesession?sessionNumber=65720367" -o results.tar.gz

4. Cancelling a SwissCellPrediction job

You can cancel the job that is currently running or pending in the queue. The following command will remove the calculation from the queue on the server:
curl "https://swisscellprediction.ch:8443/cancelsession?sessionNumber=65720367"
Job was cancelled.

5. Retrieving the results of a SwissCellPrediction job

Upon confirmation of finished job (see above), you can retrieve the results. Simply type the following command to get your results:
curl "https://swisscellprediction.ch:8443/retrievesession?sessionNumber=65720367" -o results.tar.gz
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                        Dload  Upload   Total   Spent    Left  Speed
        100    77    0    77    0     0     88      0 --:--:-- --:--:-- --:--:--    88
This will download a GZIP archive containing all results file on your machine.