Skip to content

Commit 16d483a

Browse files
committed
Better docs
1 parent f0b4b08 commit 16d483a

1 file changed

Lines changed: 22 additions & 17 deletions

File tree

biojava-structure/src/main/java/org/biojava/nbio/structure/io/FileParsingParameters.java

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939
* If true the assignment can be accessed through {@link AminoAcid}.getSecStruc(); </li>
4040
* <li> {@link #setAlignSeqRes(boolean)} - should the AminoAcid sequences from the SEQRES
4141
* and ATOM records of a PDB file be aligned? (default:yes)</li>
42-
* <li> {@link# setUpdateRemediatedFiles} - Shall local files be automatically be replaced with the
43-
* latest version of remediated PDB files? Default: no </li>
42+
* <li> {@link #setHeaderOnly(boolean)} - parse only the PDB/mmCIF file header, ignoring coordinates
43+
* </li>
44+
* <li> {@link #setCreateAtomBonds(boolean)} - create atom bonds from parsed bonds in PDB/mmCIF files and chemical component files
45+
* </li?
4446
* </ul>
4547
*
4648
* @author Andreas Prlic
@@ -60,33 +62,33 @@ public class FileParsingParameters implements Serializable
6062
* Flag to detect if the secondary structure info should be read
6163
*
6264
*/
63-
boolean parseSecStruc;
65+
private boolean parseSecStruc;
6466

65-
/** Flag to control if SEQRES and ATOM records should be aligned
66-
*
67+
/**
68+
* Flag to control if SEQRES and ATOM records should be aligned
6769
*/
68-
boolean alignSeqRes;
70+
private boolean alignSeqRes;
6971

70-
/** Flag to control if the chemical component info should be downloaded while parsing the files. (files will be cached).
71-
*
72+
/**
73+
* Flag to control if the chemical component info should be downloaded while parsing the files. (files will be cached).
7274
*/
73-
boolean loadChemCompInfo;
75+
private boolean loadChemCompInfo;
7476

75-
/** Set the flag to only read in Ca atoms - this is useful for parsing large structures like 1htq.
76-
*
77+
/**
78+
* Flag to control reading in only Calpha atoms - this is useful for parsing large structures like 1htq.
7779
*/
78-
boolean parseCAOnly;
80+
private boolean parseCAOnly;
7981

8082
/** Flag to parse header only
8183
*
8284
*/
83-
boolean headerOnly;
85+
private boolean headerOnly;
8486

8587

8688
/**
8789
* Update locally cached files to the latest version of remediated files
8890
*/
89-
boolean updateRemediatedFiles;
91+
private boolean updateRemediatedFiles;
9092

9193
/**
9294
* The maximum number of atoms that will be parsed before the parser switches to a CA-only
@@ -95,13 +97,13 @@ public class FileParsingParameters implements Serializable
9597
*/
9698
public static final int ATOM_CA_THRESHOLD = 500000;
9799

98-
int atomCaThreshold;
100+
private int atomCaThreshold;
99101

100102

101103
/**
102104
* Should we parse the biological assembly information from a file?
103105
*/
104-
boolean parseBioAssembly;
106+
private boolean parseBioAssembly;
105107

106108
/**
107109
* Should we create bonds between atoms when parsing a file?
@@ -376,10 +378,13 @@ public boolean shouldCreateAtomBonds() {
376378
}
377379

378380
/**
379-
* Should we create bonds between atoms when parsing a file?
381+
* Should we create bonds between atoms when parsing a file.
382+
* Will create intra-group bonds from information available in chemical component files and
383+
* some other bonds from struc_conn category in mmCIF file.
380384
*
381385
* @param createAtomBonds
382386
* true if we should create the bonds, false if not
387+
* @see BondMaker
383388
*/
384389
public void setCreateAtomBonds(boolean createAtomBonds) {
385390
this.createAtomBonds = createAtomBonds;

0 commit comments

Comments
 (0)