Skip to content
Snippets Groups Projects
Commit c0a4dd1d authored by Studer Gabriel's avatar Studer Gabriel
Browse files

enable nucleotide as query prop => prot.Select("nucleotide=true")

parent 98b5cfd7
No related branches found
No related tags found
No related merge requests found
...@@ -219,6 +219,9 @@ This index is the same for views and handles. ...@@ -219,6 +219,9 @@ This index is the same for views and handles.
**peptide** (bool): Whether the residue is :attr:`peptide linking **peptide** (bool): Whether the residue is :attr:`peptide linking
<ResidueHandle.peptide_linking>`. <ResidueHandle.peptide_linking>`.
**nucleotide** (bool): Whether the residue is :attr:`nucleotide linking
<ResidueHandle.nucleotide_linking>`.
**protein** (bool): Whether the residue is considered to be **protein** (bool): Whether the residue is considered to be
:attr:`part of a connected protein <ResidueHandle.is_protein>`. :attr:`part of a connected protein <ResidueHandle.is_protein>`.
......
...@@ -50,6 +50,7 @@ struct Properties : public boost::spirit::symbols<Prop> { ...@@ -50,6 +50,7 @@ struct Properties : public boost::spirit::symbols<Prop> {
("abfac", Prop(Prop::ABFAC, Prop::FLOAT, Prop::ATOM)) ("abfac", Prop(Prop::ABFAC, Prop::FLOAT, Prop::ATOM))
("rbfac", Prop(Prop::RBFAC, Prop::FLOAT, Prop::RESIDUE)) ("rbfac", Prop(Prop::RBFAC, Prop::FLOAT, Prop::RESIDUE))
("peptide", Prop(Prop::PEPTIDE, Prop::INT, Prop::RESIDUE)) ("peptide", Prop(Prop::PEPTIDE, Prop::INT, Prop::RESIDUE))
("nucleotide", Prop(Prop::NUCLEOTIDE, Prop::INT, Prop::RESIDUE))
("rindex", Prop(Prop::RINDEX, Prop::INT, Prop::RESIDUE)) ("rindex", Prop(Prop::RINDEX, Prop::INT, Prop::RESIDUE))
("protein", Prop(Prop::PROTEIN, Prop::INT, Prop::RESIDUE)) ("protein", Prop(Prop::PROTEIN, Prop::INT, Prop::RESIDUE))
("ligand", Prop(Prop::LIGAND, Prop::INT, Prop::RESIDUE)) ("ligand", Prop(Prop::LIGAND, Prop::INT, Prop::RESIDUE))
...@@ -111,7 +112,9 @@ String Prop::GetName() const ...@@ -111,7 +112,9 @@ String Prop::GetName() const
case ABFAC: case ABFAC:
return "abfac"; return "abfac";
case PEPTIDE: case PEPTIDE:
return "peptide"; return "peptide";
case NUCLEOTIDE:
return "nucleotide";
case ACHARGE: case ACHARGE:
return "acharge"; return "acharge";
case RINDEX: case RINDEX:
......
...@@ -39,9 +39,9 @@ public: ...@@ -39,9 +39,9 @@ public:
/// the GenericProp 'propname' at the atom, residue and chain level /// the GenericProp 'propname' at the atom, residue and chain level
/// respectively. /// respectively.
typedef enum { typedef enum {
RNAME, ANAME, CNAME, ELE, RNUM, ANUM, AX, AY, AZ, OCC, AINDEX, RTYPE, ISHETATM, RNAME, ANAME, CNAME, ELE, RNUM, ANUM, AX, AY, AZ, OCC, AINDEX, RTYPE,
RBFAC, ABFAC, PEPTIDE, ACHARGE, RINDEX, PROTEIN, LIGAND, WATER, WITHIN, ISHETATM, RBFAC, ABFAC, PEPTIDE, NUCLEOTIDE, ACHARGE, RINDEX, PROTEIN,
UNDEF, CUSTOM LIGAND, WATER, WITHIN, UNDEF, CUSTOM
} ID; } ID;
typedef enum { typedef enum {
......
...@@ -204,6 +204,10 @@ boost::logic::tribool QueryState::EvalResidue(const ResidueImplPtr& r) { ...@@ -204,6 +204,10 @@ boost::logic::tribool QueryState::EvalResidue(const ResidueImplPtr& r) {
case Prop::PEPTIDE: case Prop::PEPTIDE:
int_value=r->GetChemClass().IsPeptideLinking(); int_value=r->GetChemClass().IsPeptideLinking();
s_[*i] = cmp_num<int>(ss.comp_op,int_value,boost::get<int>(ss.param)); s_[*i] = cmp_num<int>(ss.comp_op,int_value,boost::get<int>(ss.param));
break;
case Prop::NUCLEOTIDE:
int_value=r->GetChemClass().IsNucleotideLinking();
s_[*i] = cmp_num<int>(ss.comp_op,int_value,boost::get<int>(ss.param));
break; break;
case Prop::RBFAC: case Prop::RBFAC:
// This is ugly! Outcome is the same for a prefiltered view as it is for // This is ugly! Outcome is the same for a prefiltered view as it is for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment