These subroutines that work with the structural elements of a coordinate (%xyz) hash. The routines can be subdivided by whether they "measure" some quantity concerning the structure or whether they "manipulate" some parameter of the structure.
The measurement routines will always return some measured quantity (for example: &calcRij returns a 2D array containing the distances between the atoms of interest). The manipulate routines will always return a 1D structure array containing the "new" structure post-manipulation (for example: &.... )
Usage:
Description:
@U is (optionally) returned, and is the eigenvectors of the Inertia
Tensor
Example:
Usage:
Description:
Example:
Usage:
Description:
Example:
Returns distances between all atoms found in the coordinate hash %xyz.
Optionally, if $min and $max are supplied, only rij distances between
$min and $max will be returned.
Usage:
Description:
Example:
Usage:
Description:
Example:
Usage:
Description:
Example:
Usage:
Description:
Example:
Description:
Example:
Usage:
Description:
calcDiffPAS
Summary:
Calculates the principal axis of diffusion of a structure
( $Ax, $Ay, $Az ) = &calcDiffPAS( \%xyz );
or
( $Ax, $Ay, $Az, @U ) = &calcDiffPAS( \%xyz );
Calculates the principal axis of diffusion of a structure
by calculating the inertia tensor.
calcInertiaTensor
Summary:
Calculates the inertia tensor of a structure
@inertia_tensor = &calcInertiaTensor( \%xyz );
calcCenterMass
Summary:
Calculates the centetr of mass of a structure
( $ComX, $ComY, $ComZ ) = &CenterMass( \%xyz );
Calculate the center of mass of %xyz.
calcRij
Usage:
%rij = &calcRij( \%xyz );
or
%rij = &calcRij( \%xyz, $min, $max );
calcAngles
Summary:
Calculate the angle between an arbitrary vector and the internuclear vectors
%beta = &calcAngles( \%xyz, $Ax, $Ay, $Az );
or
%beta = &calcAngles( \%xyz, $Ax, $Ay, $Az, $min, $max );
or
%beta = &calcAngles( \%xyz, $Ax, $Ay, $Az, $min, $max, \%restriction_2d );
Builds the beta angle hash (associative array). The beta angle is
the angle a vector in %xyz makes with respect to the vector $Ax $Ay $Az.
%restriction_2d is used as a reference 2D hash and determines which pairs
to return (often his is a %rij hash). $min and $max determine the minimum
and maximum angle to return, they are optional, if left off, $min=0 and $max=90
symmMolecule
Summary:
"Symmeterizes" a structure 2D input hash.
%vol = &symmMolecule( "Segid1", "Segid2", \%vol );
&removeElement
Summary:
%xyz = &removeElement( \%xyz, $element );
$element is one of C,H,N,O,P,S (or any other element).
&getAtomType
Usage:
%xyz = &Get_Atom_Type( \%xyz, \%ref_hash );
addChainIds
Summary:
%vol = &addChainIds( "Segid1", "Segid2", $num1, $num2, \%vol );
replaceMethyl
Summary:
Usage:
%xyz = &replaceMethyl( \%xyz );
or
%xyz = &replaceMethyl( \%xyz, $atom1, $atom2, $atom3, $new_name );
$atom1, $atom2, $atom3 = atom name 1, 2 and 3 of the methyl
$new_name = New name of pseudo_methyl
fixRij
Summary:
%rij = &fixRij( \%rij, \%rij_fix );