Constructor and Description |
---|
MmtfUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addSeqRes(Chain modelChain,
String sequence)
Add the missing groups to the SeqResGroups.
|
static void |
calculateDsspSecondaryStructure(Structure bioJavaStruct)
Generate the secondary structure for a Biojava structure object.
|
static double[] |
convertToDoubleArray(javax.vecmath.Matrix4d transformationMatrix)
Convert a four-d matrix to a double array.
|
static String |
dateToIsoString(Date inputDate)
Covert a Date object to ISO time format.
|
static void |
fixMicroheterogenity(Structure bioJavaStruct)
This sets all microheterogeneous groups
(previously alternate location groups) as separate groups.
|
static List<Atom> |
getAtomsForGroup(Group inputGroup)
Get a list of atoms for a group.
|
static double[][] |
getNcsAsArray(javax.vecmath.Matrix4d[] ncsOperators)
Get a list of length N*16 of a list of Matrix4d*N.
|
static javax.vecmath.Matrix4d[] |
getNcsAsMatrix4d(double[][] ncsOperMatrixList)
Get a list of N 4*4 matrices from a single list of doubles of length 16*N.
|
static int |
getNumBondsInGroup(List<Atom> atomsInGroup)
Find the number of bonds in a group
|
static int |
getNumGroups(Structure structure)
Count the total number of groups in the structure
|
static int |
getSecStructType(Group group)
Get the secondary structure as defined by DSSP.
|
static SecStrucType |
getSecStructTypeFromDsspIndex(int dsspIndex)
Set the DSSP type based on a numerical index.
|
static String |
getSpaceGroupAsString(SpaceGroup spaceGroup)
Get the string representation of a space group.
|
static MmtfSummaryDataBean |
getStructureInfo(Structure structure)
Get summary information for the structure.
|
static Map<double[],int[]> |
getTransformMap(BioAssemblyInfo bioassemblyInfo,
Map<String,Integer> chainIdToIndexMap)
Convert a bioassembly information into a map of transform, chainindices it relates to.
|
static float[] |
getUnitCellAsArray(PDBCrystallographicInfo xtalInfo)
Get the length six array of the unit cell information.
|
static void |
insertSeqResGroup(Chain chain,
Group group,
int sequenceIndexId)
Insert the group in the given position in the sequence.
|
static void |
setSecStructType(Group group,
int dsspIndex)
Get the secondary structure as defined by DSSP.
|
static AtomCache |
setUpBioJava()
Set up the configuration parameters for BioJava.
|
static AtomCache |
setUpBioJava(String extraUrl)
Set up the configuration parameters for BioJava.
|
static String[] |
techniquesToStringArray(Set<ExperimentalTechnique> experimentalTechniques)
Converts the set of experimental techniques to an array of strings.
|
public MmtfUtils()
public static AtomCache setUpBioJava()
public static AtomCache setUpBioJava(String extraUrl)
extraUrl
- the string describing the URL (or file path) from which
to get missing CCD entries.public static void fixMicroheterogenity(Structure bioJavaStruct)
bioJavaStruct
- public static void calculateDsspSecondaryStructure(Structure bioJavaStruct)
bioJavaStruct
- the Biojava structure for which it is to be calculate.public static String getSpaceGroupAsString(SpaceGroup spaceGroup)
spaceGroup
- the input SpaceGroup objectpublic static float[] getUnitCellAsArray(PDBCrystallographicInfo xtalInfo)
xtalInfo
- the input PDBCrystallographicInfo objectpublic static String[] techniquesToStringArray(Set<ExperimentalTechnique> experimentalTechniques)
experimentalTechniques
- the input set of experimental techniquespublic static String dateToIsoString(Date inputDate)
inputDate
- The input date objectpublic static Map<double[],int[]> getTransformMap(BioAssemblyInfo bioassemblyInfo, Map<String,Integer> chainIdToIndexMap)
bioassemblyInfo
- the bioassembly info object for this structurechainIdToIndexMap
- the map of chain ids to the index that chain corresponds to.public static double[] convertToDoubleArray(javax.vecmath.Matrix4d transformationMatrix)
transformationMatrix
- the input matrix4d objectpublic static int getNumGroups(Structure structure)
structure
- the input structurepublic static List<Atom> getAtomsForGroup(Group inputGroup)
inputGroup
- the Biojava Group to considerpublic static int getNumBondsInGroup(List<Atom> atomsInGroup)
atomsInGroup
- the list of atoms in the grouppublic static int getSecStructType(Group group)
group
- the input group to be calculatedpublic static void setSecStructType(Group group, int dsspIndex)
group
- the input group to be calculateddsspIndex
- integer index of the group type.public static SecStrucType getSecStructTypeFromDsspIndex(int dsspIndex)
dsspIndex
- the integer index of the type to setpublic static MmtfSummaryDataBean getStructureInfo(Structure structure)
structure
- the structure for which to get the information.public static javax.vecmath.Matrix4d[] getNcsAsMatrix4d(double[][] ncsOperMatrixList)
ncsOperMatrixList
- the input list of doublespublic static double[][] getNcsAsArray(javax.vecmath.Matrix4d[] ncsOperators)
ncsOperators
- the Matrix4d
listpublic static void insertSeqResGroup(Chain chain, Group group, int sequenceIndexId)
chain
- the chain to add the seq res group togroup
- the group to addsequenceIndexId
- the index to add it inCopyright © 2000–2019 BioJava. All rights reserved.