|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectio.TrajectoryWriter
io.xplor.OutXPlor
For a definition of the X-PLOR file format, see e.g. the X-PLOR 98 manual, as currently available at http://www.scripps.edu/rc/softwaredocs/msi/xplor981/formats.html
A quick repetition of the X-PLOR crystallographic map format (which we will refer to as the xplor format from now on): these files consist of a header, the density array and a footer.
The header consists of:
The density array consists of
The footer consists of
| Field Summary | |
(package private) static PrintfFormat |
xPlorDoubleFormat
|
(package private) static PrintfFormat |
xPlorIntFormat
|
| Fields inherited from class io.TrajectoryWriter |
outFile |
| Constructor Summary | |
OutXPlor(java.lang.String title)
|
|
OutXPlor(java.lang.String fileName,
java.lang.String title)
|
|
| Method Summary | |
static java.lang.String |
makeCellSpecs(double[] cellSpecs)
|
static java.lang.String |
makeFooter(double[][][] grid)
|
static java.lang.String |
makeGridSpecs(int[] gridSpecs)
|
static java.lang.String |
makeHeader(int[] gridSpecs,
double[] cellSpecs)
|
static java.lang.String |
makeTitle(java.lang.String title)
|
void |
writeDensityArray(double[][][] grid)
|
void |
writeFrame(double time,
int step,
double[][] positions,
double[] box,
java.lang.String[] atomNames,
java.lang.String[] residueNames,
int[] residueNumbers)
Format-agnostic trajectory writer. |
void |
writeMap(int[] gridSpecs,
double[] cellSpecs,
double[][][] grid)
write an X-PLOR crystallographic map |
void |
writeTitle(java.lang.String title)
write more or less proper header information (author, title...) |
| Methods inherited from class io.TrajectoryWriter |
getWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final PrintfFormat xPlorIntFormat
static final PrintfFormat xPlorDoubleFormat
| Constructor Detail |
public OutXPlor(java.lang.String title)
throws java.io.IOException
public OutXPlor(java.lang.String fileName,
java.lang.String title)
throws java.io.IOException
| Method Detail |
public static java.lang.String makeTitle(java.lang.String title)
public static java.lang.String makeGridSpecs(int[] gridSpecs)
public static java.lang.String makeCellSpecs(double[] cellSpecs)
public static java.lang.String makeHeader(int[] gridSpecs,
double[] cellSpecs)
public void writeDensityArray(double[][][] grid)
throws java.lang.IllegalArgumentException,
java.io.IOException
java.lang.IllegalArgumentException
java.io.IOExceptionpublic static java.lang.String makeFooter(double[][][] grid)
public void writeMap(int[] gridSpecs,
double[] cellSpecs,
double[][][] grid)
throws java.io.IOException
gridSpecs - the grid layout (see class definition for details)cellSpecs - the cell layout (see class definition for details)grid - the grid values
java.io.IOException
public void writeFrame(double time,
int step,
double[][] positions,
double[] box,
java.lang.String[] atomNames,
java.lang.String[] residueNames,
int[] residueNumbers)
throws java.io.IOException
TrajectoryWriter
writeFrame in class TrajectoryWritertime - the time of the framestep - corresponds to a given time step (g96, vmd) or model serial (pdb)positions - the 3N coordinatesbox - the 3 box dimensions (ignored by pdb)atomNames - the N atom namesresidueNames - the N residue names of the atomsresidueNumbers - the N residue numbers of the atoms
java.io.IOException
public void writeTitle(java.lang.String title)
throws java.io.IOException
TrajectoryWriter
writeTitle in class TrajectoryWritertitle - the title block
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||