public class FileConvert extends Object
| Modifier and Type | Field and Description | 
|---|---|
static DecimalFormat | 
d2  | 
static DecimalFormat | 
d3  | 
| Constructor and Description | 
|---|
FileConvert(Structure struc)
Constructs a FileConvert object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
doPrintConnections()
Returns if the Connections should be added
 default is true; 
 | 
static String | 
getAtomSiteHeader()  | 
void | 
setPrintConnections(boolean printConnections)
enable/disable printing of connections
 connections are sometimes buggy in PDB files
 so there are some cases where one might turn this off. 
 | 
void | 
toDASStructure(XMLWriter xw)
Convert a protein Structure to a DAS Structure XML response . 
 | 
String | 
toMMCIF()  | 
static String | 
toMMCIF(Chain chain,
       boolean writeHeader)  | 
static String | 
toMMCIF(Chain chain,
       String authId,
       String asymId,
       boolean writeHeader)  | 
String | 
toPDB()
Convert a structure into a PDB file. 
 | 
static String | 
toPDB(Atom a)
Prints the content of an Atom object as a PDB formatted line. 
 | 
static String | 
toPDB(Atom a,
     String chainId)  | 
static void | 
toPDB(Atom a,
     StringBuffer str)  | 
static void | 
toPDB(Atom a,
     StringBuffer str,
     String chainID)
Print ATOM record in the following syntax
 
 ATOM      1  N   ASP A  15     110.964  24.941  59.191  1.00 83.44           N
 COLUMNS        DATA TYPE       FIELD         DEFINITION
 ---------------------------------------------------------------------------------
 1 -  6        Record name     "ATOM  "
 7 - 11        Integer         serial        Atom serial number.
 13 - 16        Atom            name          Atom name.
 17             Character       altLoc        Alternate location indicator.
 18 - 20        Residue name    resName       Residue name.
 22             Character       chainID       Chain identifier.
 23 - 26        Integer         resSeq        Residue sequence number.
 27             AChar           iCode         Code for insertion of residues.
 31 - 38        Real(8.3)       x             Orthogonal coordinates for X in
 Angstroms.
 39 - 46        Real(8.3)       y             Orthogonal coordinates for Y in
 Angstroms.
 47 - 54        Real(8.3)       z             Orthogonal coordinates for Z in
 Angstroms.
 55 - 60        Real(6.2)       occupancy     Occupancy.
 61 - 66        Real(6.2)       tempFactor    Temperature factor.
 73 - 76        LString(4)      segID         Segment identifier, left-justified.
 77 - 78        LString(2)      element       Element symbol, right-justified.
 79 - 80        LString(2)      charge        Charge on the atom. 
 | 
static String | 
toPDB(Chain chain)
Convert a Chain object to PDB representation 
 | 
static String | 
toPDB(Group g)
Convert a Group object to PDB representation 
 | 
public static DecimalFormat d3
public static DecimalFormat d2
public FileConvert(Structure struc)
struc - a Structure objectpublic boolean doPrintConnections()
public void setPrintConnections(boolean printConnections)
printConnections - public String toPDB()
public static String toPDB(Atom a)
a - public static String toPDB(Chain chain)
chain - public static String toPDB(Group g)
g - public static void toPDB(Atom a, StringBuffer str, String chainID)
ATOM 1 N ASP A 15 110.964 24.941 59.191 1.00 83.44 N COLUMNS DATA TYPE FIELD DEFINITION --------------------------------------------------------------------------------- 1 - 6 Record name "ATOM " 7 - 11 Integer serial Atom serial number. 13 - 16 Atom name Atom name. 17 Character altLoc Alternate location indicator. 18 - 20 Residue name resName Residue name. 22 Character chainID Chain identifier. 23 - 26 Integer resSeq Residue sequence number. 27 AChar iCode Code for insertion of residues. 31 - 38 Real(8.3) x Orthogonal coordinates for X in Angstroms. 39 - 46 Real(8.3) y Orthogonal coordinates for Y in Angstroms. 47 - 54 Real(8.3) z Orthogonal coordinates for Z in Angstroms. 55 - 60 Real(6.2) occupancy Occupancy. 61 - 66 Real(6.2) tempFactor Temperature factor. 73 - 76 LString(4) segID Segment identifier, left-justified. 77 - 78 LString(2) element Element symbol, right-justified. 79 - 80 LString(2) charge Charge on the atom.
a - str - chainID - the chain ID that the Atom will have in the output stringpublic static void toPDB(Atom a, StringBuffer str)
public void toDASStructure(XMLWriter xw) throws IOException
xw - a XMLWriter objectIOException - ...public static String toMMCIF(Chain chain, String authId, String asymId, boolean writeHeader)
public static String getAtomSiteHeader()
Copyright © 2000–2018 BioJava. All rights reserved.