| pasdPot |
index |
FIX: add contents
int
PASDPot::computeRawPAScores( CDSMap<String,float_type>& paScore,
StringListStringMap& peakToPAname,
StringIntPairMap& paToSApairIndex,
const String& initScoresFrom,
const AtomSel& bbSel,
const CDSList<String>& fromSAnames,
const CDSList<String>& toSAnames,
const CDSMap<String,int>& nameToSAindex,
const CDSList<StringPair>& knownContacts,
const bool preferIntra,
const float_type& maxFailed)
initScoresFrom: string with possible values:
"previous", "degen", "uniform". Value "contacts" needs to be
re-implemented.
//
// constructor/destructor
//
PASDPot(const String& instanceName,
Simulation* defaultSimulation)
PASD_DistPot distPot()
PASD_InvPot invPot()
float_type distEnergy;
float_type invEnergy;
bool staleGradient;
//
// accessors
//
CDSList<ShiftAssignmentPtr> shiftAssignments();
CDSList<ShiftAssignmentPtr> fromShiftAssignments();
CDSList<ShiftAssignmentPtr> toShiftAssignments();
int numShiftAssignments() const;
int numFromShiftAssignments() const;
int numToShiftAssignments() const;
void addShiftAssignment(ShiftAssignmentPtr newVal);
void removeShiftAssignmentNamed(const String &targetName);
ShiftAssignmentPtr shiftAssignmentNamed(const String &targetName) const;
int hasShiftAssignmentNamed(const String &targetName) const;
Simulation* simulation() { return sim; }
CDSList< PeakPtr > peaks();
int numPeaks() const;
void addPeak(Peak* newVal);
void removePeakNamed(const String& targetName);
PeakPtr peakNamed(const String& targetName) const;
int hasPeakNamed(const String& targetName) const;
void removePeakAssignmentsInvolving(const String& targetName);
void clearMissingLinksToPeakAssignments();
CDSList< PeakPtr > peaksWithShiftAssignmentNamed(const String& targetName);
CDSList< PeakPtr > peaksWithShiftAssignmentsNamed(const String& targetName1,
const String& targetName2);
CDSList< ShiftAssignmentPtr > shiftAssignmentsWithPeakNamed(const String &targetName);
void addException(const String& targetName1,
const String& targetName2);
bool hasException(const String& targetName1,
const String& targetName2) const;
void removeAllExceptions();
void removeExceptionsInvolving(const String& targetName);
CDSList< String > exceptions();
void resetLinkedPeakAssignmentNames();
void resetLinkedPeakAssignments();
void updateLinkedPeakAssignments();
void updatePrimarySeqDists();
ACCESSOR(longRangePrimarySeqCutoff,LongRangePrimarySeqCutoff,int);
void allowShiftAssignmentInactivation();
void disallowShiftAssignmentInactivation();
int allowsShiftAssignmentInactivation();
void setSwitchViolation(float_type newVal);
float_type switchViolation() const;
float_type inverseBound() const;
void setInverseBound(float_type newVal);
float_type inverseMethylCorrection() const;
void setInverseMethylCorrection(float_type newVal);
ACCESSOR(previousLikelihoodWeight,PreviousLikelihoodWeight,float_type);
ACCESSOR(distanceViolationWeight,DistanceViolationWeight,float_type );
ACCESSOR(noeCompletenessWeight,NoeCompletenessWeight,float_type);
ACCESSOR(scatterWeight,ScatterWeight,float_type);
ACCESSOR(violationCutoff,ViolationCutoff,float_type);
ACCESSOR(characteristicDistanceViol,CharacteristicDistanceViol, float_type );
ACCESSOR(characteristicNoeCompleteness,CharacteristicNoeCompleteness,float_type);
ACCESSOR(characteristicScatter,CharacteristicScatter, float_type );
void setInverseNoeNeighborhoodSize(float_type newVal);
float_type inverseNoeNeighborhoodSize() const;
// false: useSingleAssignment
ACCESSOR(useSingleAssignment,UseSingleAssignment,bool);
ACCESSOR(maxMonteCarloAttempts,MaxMonteCarloAttempts,int);
ACCESSOR(characteristicDeltaDV,CharacteristicDeltaDV,float_type);
ACCESSOR(characteristicDeltaPL,CharacteristicDeltaPL,float_type);
ACCESSOR(characteristicDeltaNoeCompleteness,
CharacteristicDeltaNoeCompleteness,float_type);
ACCESSOR(characteristicDeltaScatter,CharacteristicDeltaScatter,float_type);
ACCESSOR(useQuadraticPot,UseQuadraticPot,bool);
ACCESSOR(useOriginalViolationScore,UseOriginalViolationScore,bool);
void saveCurrentState();
void resetSavedState();
void revertToSavedState();
CDSList< float_type > updateActivation();
void activateAllAssigns();
void inactivateAllAssigns();
void setAllShiftAssignmentsInRightNeighborhood();
int numInactivePeaks() const;
int numActivePeaks() const;
int numShiftAssignmentsInWrongNeighborhood() const;
float_type fracPeakAssignsInactive() const;
float_type previousLikelihoodScore() const;
float_type noeCompletenessScore() const;
int numCloseShiftAssignmentPairs() const;
int numCloseAccountedShiftAssignmentPairs() const;
int numClosePAAccountedShiftAssignmentPairs() const;
float_type scatterScore() const;
float_type violationScore();
float_type peakCoverageScore() const;
float_type goodScore1() const;
float_type goodScore2() const;
//
// likelihood calculation for shiftAssignments
//
void recordActivePeakAssignments();
void updateNoeCompleteness();
void updatePeakPositionScatter();
//
// NOE completeness-related reporting
//
CDSList< ShiftAssignmentPtr >expectedNeighbors(ShiftAssignmentPtr target);
CDSList< ShiftAssignmentPtr >accountedNeighbors(ShiftAssignmentPtr target);
CDSList< ShiftAssignmentPtr >unaccountedNeighbors(ShiftAssignmentPtr target);
//
// calculate energy without calculating derivs
//
float_type calcEnergy();
EnergyReport calcNormalEnergy() { return calcNormalEnergyAndDerivs(0); }
EnergyReport calcInverseEnergy() { return calcInverseEnergyAndDerivs(0); }
//
// calculate energy & derivatives w/respect to atom positions.
// Records these derivs in the passed-in DerivList.
//
float_type calcEnergyAndDerivs(DerivList* aDerivList);
//
// These are pure virtual functions defined by Pot.
// They don't return anything useful yet
//
float_type rms() { return deviation; }
float_type violations() { return -1; }
int numRestraints() const { return -1; }
//
// neighbor list support for inverse energy calc
//
void cacheNeighbors();
int neighborsNeedUpdate();
calcNormalEnergyAndDerivs(DerivList* derivsp) - OpenMP parallelized
calcInverseEnergyAndDerivs(DerivList* derivs) - OpenMP parallelized
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
| Classes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | ||
| ||