@@ -18,7 +18,6 @@ m1wrapper = MoleculeOneWrapper(api_token, 'https://app.molecule.one')
1818 server, but you will need to provide custom value if you're using a dedicated solution.
1919
2020### Running batch scoring request:
21-
2221``` py
2322search = m1wrapper.run_batch_search(
2423 targets = [' cc' , ' O=C(Nc1cc(Nc2nc(-c3cnccc3)ccn2)c(cc1)C)c3ccc(cc3)CN3CCN(CC3)C' ],
@@ -28,7 +27,28 @@ search = m1wrapper.run_batch_search(
2827- * targets* : list of target compounds in SMILES format
2928- * parameters* (optional): additional configuration for your batch
3029 scoring request. See [ Batch Scoring API] ( https://github.com/molecule-one/api/blob/master/batch-scoring.md ) for more information.
30+ - * priority* (optional): priority of the batch request.
3131- * starting_materials* (optional): list of available compounds in SMILES format
32+
33+ ### Batch scoring priorities:
34+ Priorities are defined as integers in a range of 1 to 10. Requests with higher priority will be processed before those with lower priority.
35+ For convenience, we also define a ` Priority ` enum with the following variants:
36+ - ` Priority.LOWEST ` (1)
37+ - ` Priority.LOW ` (3)
38+ - ` Priority.NORMAL ` (5, default)
39+ - ` Priority.HIGH ` (8)
40+ - ` Priority.HIGHEST ` (10)
41+
42+ #### Example:
43+ ``` py
44+ from m1wrapper import MoleculeOneWrapper, Priority
45+ m1wrapper = MoleculeOneWrapper(api_token, ' https://app.molecule.one' )
46+ search = m1wrapper.run_batch_search(
47+ targets = [' cc' , ' O=C(Nc1cc(Nc2nc(-c3cnccc3)ccn2)c(cc1)C)c3ccc(cc3)CN3CCN(CC3)C' ],
48+ parameters = {' exploratory_search' : False , ' detail_level' : ' score' },
49+ priority = Priority.HIGH )
50+ ```
51+
3252### Getting exisiting scoring request by id:
3353``` py
3454search = m1wrapper.get_batch_search(id )
0 commit comments