Source code for molpher.examples.bidirectional
import os
import sys
from molpher.algorithms.bidirectional.run import run
from molpher.algorithms.settings import Settings
[docs]def main(args):
cocaine = 'CN1C2CCC1C(C(=O)OC)C(OC(=O)c1ccccc1)C2'
procaine = 'O=C(OCCN(CC)CC)c1ccc(N)cc1'
storage_dir = None
if len(args) == 2:
storage_dir = os.path.abspath(args[1])
else:
storage_dir = 'bidirectional_data'
settings = Settings(
cocaine
, procaine
, storage_dir
, max_threads=4
)
run(settings)
if __name__ == "__main__":
exit(main(sys.argv))