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.
**peptide** (bool): Whether the residue is :attr:`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
:attr:`part of a connected protein <ResidueHandle.is_protein>`.
......
......@@ -50,6 +50,7 @@ struct Properties : public boost::spirit::symbols<Prop> {
("abfac", Prop(Prop::ABFAC, Prop::FLOAT, Prop::ATOM))
("rbfac", Prop(Prop::RBFAC, Prop::FLOAT, 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))
("protein", Prop(Prop::PROTEIN, Prop::INT, Prop::RESIDUE))
("ligand", Prop(Prop::LIGAND, Prop::INT, Prop::RESIDUE))
......@@ -111,7 +112,9 @@ String Prop::GetName() const
case ABFAC:
return "abfac";
case PEPTIDE:
return "peptide";
return "peptide";
case NUCLEOTIDE:
return "nucleotide";
case ACHARGE:
return "acharge";
case RINDEX:
......
......@@ -39,9 +39,9 @@ public:
/// the GenericProp 'propname' at the atom, residue and chain level
/// respectively.
typedef enum {
RNAME, ANAME, CNAME, ELE, RNUM, ANUM, AX, AY, AZ, OCC, AINDEX, RTYPE, ISHETATM,
RBFAC, ABFAC, PEPTIDE, ACHARGE, RINDEX, PROTEIN, LIGAND, WATER, WITHIN,
UNDEF, CUSTOM
RNAME, ANAME, CNAME, ELE, RNUM, ANUM, AX, AY, AZ, OCC, AINDEX, RTYPE,
ISHETATM, RBFAC, ABFAC, PEPTIDE, NUCLEOTIDE, ACHARGE, RINDEX, PROTEIN,
LIGAND, WATER, WITHIN, UNDEF, CUSTOM
} ID;
typedef enum {
......
......@@ -204,6 +204,10 @@ boost::logic::tribool QueryState::EvalResidue(const ResidueImplPtr& r) {
case Prop::PEPTIDE:
int_value=r->GetChemClass().IsPeptideLinking();
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;
case Prop::RBFAC:
// 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.
Finish editing this message first!
Please register or to comment