public class AlignUtils extends Object
Constructor and Description |
---|
AlignUtils() |
Modifier and Type | Method and Description |
---|---|
static Atom |
getCenter(Atom[] ca,
int pos,
int fragmentLength)
Get the centroid for the set of atoms starting from position pos, length fragmentLenght
|
static double[] |
getDiagonalAtK(Atom[] atoms,
int k)
Get distances along diagonal k from coordinate array coords.
|
static Matrix |
getDistanceMatrix(Atom[] ca1,
Atom[] ca2)
Matrix of all distances between two sets of Atoms.
|
static Atom[] |
getFragment(Atom[] caall,
int pos,
int fragmentLength)
Get a continue subset of Atoms based by the starting position and the length
|
static Atom[] |
getFragmentFromIdxList(Atom[] caall,
int[] idx)
Get a subset of Atoms based by their positions
|
static Atom[] |
getFragmentNoClone(Atom[] caall,
int pos,
int fragmentLength)
Get a continue subset of Atoms based by the starting position and the length
does not clone the original atoms.
|
static double |
rms_dk_diag(double[] dk1,
double[] dk2,
int i,
int j,
int l,
int k)
Given distance matrix diagonals dk1, dk2, get the rmsd of a fpair.
|
public AlignUtils()
public static Atom[] getFragmentFromIdxList(Atom[] caall, int[] idx)
caall
- idx
- an array where each element is a position of all the Atoms to returnpublic static Atom[] getFragment(Atom[] caall, int pos, int fragmentLength)
caall
- pos
- the start positionfragmentLength
- the length of the subset to extract.public static Atom[] getFragmentNoClone(Atom[] caall, int pos, int fragmentLength)
caall
- pos
- the start positionfragmentLength
- the length of the subset to extract.public static Atom getCenter(Atom[] ca, int pos, int fragmentLength)
ca
- pos
- fragmentLength
- public static double[] getDiagonalAtK(Atom[] atoms, int k)
atoms
- set of atoms to be usedk
- number of diagonal to be usedpublic static double rms_dk_diag(double[] dk1, double[] dk2, int i, int j, int l, int k)
dk1
- distances of structure 1dk2
- distance of structure 2i
- position in structure 1j
- position in structure 2l
- length of the fragmentsk
- diagonal usedpublic static Matrix getDistanceMatrix(Atom[] ca1, Atom[] ca2)
ca1
- ca2
- Copyright © 2000–2018 BioJava. All rights reserved.