Logo Search packages:      
Sourcecode: massxpert version File versions

massXpert::CleaveMotif Class Reference

#include <cleaveMotif.hpp>

Inheritance diagram for massXpert::CleaveMotif:


List of all members.

Detailed Description

The CleaveMotif class provides cleavage motifs.

When a polymer sequence cleavage occurs, using for example the specification "Lys/;Arg/;-Lys/Pro", a number of actions need be performed prior to listing the oligomers obtained following cleavage.

The "Lys/;Arg/;-Lys/Pro" specification gets crunched in a number of steps and motifs are generated for it. In this specific case we'll have three motifs with the following data:

Thanks to this deconstruction(from "Lys/;Arg/;-Lys/Pro" to the 3 motifs above) is the polymer sequence cleaved according to the specification.

Definition at line 88 of file cleaveMotif.hpp.

Public Member Functions

 CleaveMotif (const CleaveMotif &)
 Constructs a copy of other.
 CleaveMotif (const PolChemDef *, QString, const QString &=QString(), int=0, bool=false)
 Constructs a cleavage motif.
virtual PolChemDefEntityclone () const
 Creates a new polymer chemistry definition entity.
virtual void clone (PolChemDefEntity *) const
 Modifies other to be identical to this.
void clone (CleaveMotif *) const
 Modifies other to be identical to this.
const QStringList & codeList () const
 Returns the string list of codes in the motif.
bool isForCleave ()
 Returns if motif is for cleavage.
virtual void mold (const PolChemDefEntity &)
 Modifies this to be identical to other.
void mold (const CleaveMotif &)
 Modifies this to be identical to other.
const QString & motif ()
 Returns the motif.
QString name () const
 Returns the name.
int offset ()
 Returns the offset.
virtual bool operator!= (const PolChemDefEntity &) const
 Tests inequality.
CleaveMotifoperator= (const CleaveMotif &)
 Assigns other to this cleavage motif.
virtual bool operator== (const PolChemDefEntity &) const
 Tests equality.
int parse (const QString &)
 Parses a cleavage site.
const PolChemDefpolChemDef () const
 Returns the polymer chemistry definition.
void setForCleave (bool)
 Sets if motif is for cleavage.
void setMotif (const QString &)
 Sets the motif.
void setName (const QString &)
 Sets the name.
void setOffset (int)
 Sets the offset.
void setPolChemDef (PolChemDef *)
virtual bool validate () const
bool validate ()
 ~CleaveMotif ()
 Destroys the cleavage motif.

Protected Attributes

QString m_name
const PolChemDefmp_polChemDef
 Pointer to the reference polymer chemistry definition.

Private Attributes

QStringList m_codeList
 List of codes in motif.
bool m_isForCleave
 Tells if motif is for cleavage.
QString m_motif
int m_offset
 Offset of the cleavage.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index