13#ifndef _RBTSETUPSASF_H_
14#define _RBTSETUPSASF_H_
16#include "rxdock/BaseInterSF.h"
27 AtomList theLigandList;
28 AtomList theReceptorList;
31 static const std::string _CT;
33 SetupSASF(
const std::string &strName =
"setup-sa");
37 virtual void SetupReceptor();
38 virtual void SetupLigand();
39 virtual void SetupScore();
40 virtual double RawScore()
const;
42 void SetupReceptorSATypes(
void);
43 void SetupLigandSATypes(
void);
46 friend void to_json(json &j,
const SetupSASF &sasf) {
48 for (
const auto &cIter : sasf.theLigandList) {
50 atomList.push_back(atom);
53 for (
const auto &cIter : sasf.theReceptorList) {
55 atomList2.push_back(atom);
58 j = json{{
"ligand-list", atomList}, {
"receptor-list", atomList2}};
61 friend void from_json(
const json &j,
SetupSASF &sasf) {
62 sasf.theLigandList.clear();
63 sasf.theLigandList.reserve(j.at(
"atoms").size());
64 for (
auto &atom : j.at(
"atoms")) {
66 sasf.theLigandList.push_back(spAtom);
69 sasf.theReceptorList.clear();
70 sasf.theReceptorList.reserve(j.at(
"atoms").size());
71 for (
auto &atom : j.at(
"atoms")) {
73 sasf.theReceptorList.push_back(spAtom);
Definition BaseInterSF.h:27
Definition SetupSASF.h:26
Definition SetupSASF.h:21