public class FragmentJoiner extends Object
Constructor and Description |
---|
FragmentJoiner() |
Modifier and Type | Method and Description |
---|---|
boolean |
angleCheckOk(FragmentPair a,
FragmentPair b,
float distcutoff) |
JointFragments[] |
approach_ap3(Atom[] ca1,
Atom[] ca2,
FragmentPair[] fraglst,
StrucAligParameters params) |
void |
extendFragments(Atom[] ca1,
Atom[] ca2,
JointFragments[] fragments,
StrucAligParameters params) |
void |
extendFragments(Atom[] ca1,
Atom[] ca2,
JointFragments fragments,
StrucAligParameters params) |
JointFragments[] |
frag_pairwise_compat(FragmentPair[] fraglst,
int angleDiff,
float fragCompatDist,
int maxRefine)
Calculate the pairwise compatibility of fpairs.
|
static double |
getRMS(Atom[] ca1,
Atom[] ca2,
JointFragments frag)
get the RMS of the JointFragments pair frag
|
static boolean |
reduceFragments(List<FragmentPair> fragments,
FragmentPair f,
Matrix rmsmat)
In helices often many similar fragments can be found.
|
static Object |
resizeArray(Object oldArray,
int newSize)
Reallocates an array with a new size, and copies the contents
of the old array to the new array.
|
public FragmentJoiner()
public static Object resizeArray(Object oldArray, int newSize)
oldArray
- the old array, to be reallocated.newSize
- the new array size.public static boolean reduceFragments(List<FragmentPair> fragments, FragmentPair f, Matrix rmsmat)
fragments
- f
- rmsmat
- public JointFragments[] approach_ap3(Atom[] ca1, Atom[] ca2, FragmentPair[] fraglst, StrucAligParameters params) throws StructureException
StructureException
public static double getRMS(Atom[] ca1, Atom[] ca2, JointFragments frag) throws StructureException
ca1
- the array of all atoms of structure1ca2
- the array of all atoms of structure1frag
- the JointFragments object that contains the list of identical positionsStructureException
public boolean angleCheckOk(FragmentPair a, FragmentPair b, float distcutoff)
public JointFragments[] frag_pairwise_compat(FragmentPair[] fraglst, int angleDiff, float fragCompatDist, int maxRefine)
fraglst
- FragmentPair[] arrayangleDiff
- angle cutofffragCompatDist
- distance cutoffmaxRefine
- max number of solutions to keeppublic void extendFragments(Atom[] ca1, Atom[] ca2, JointFragments[] fragments, StrucAligParameters params) throws StructureException
StructureException
public void extendFragments(Atom[] ca1, Atom[] ca2, JointFragments fragments, StrucAligParameters params) throws StructureException
StructureException
Copyright © 2000–2018 BioJava. All rights reserved.