Skip to content

Commit 9680441

Browse files
committed
Better docs for new FileParsingParam
1 parent d6bbe1a commit 9680441

1 file changed

Lines changed: 22 additions & 5 deletions

File tree

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

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
import org.slf4j.Logger;
3232
import org.slf4j.LoggerFactory;
3333

34-
/** A class that configures parameters that can be sent to the PDB file parsers
34+
/**
35+
* A class that configures parameters that can be sent to the PDB file parsers
3536
*
3637
* <ul>
3738
* <li> {@link #setParseCAOnly(boolean)} - parse only the Atom records for C-alpha atoms</li>
@@ -41,7 +42,7 @@
4142
* and ATOM records of a PDB file be aligned? (default:yes)</li>
4243
* <li> {@link #setHeaderOnly(boolean)} - parse only the PDB/mmCIF file header, ignoring coordinates
4344
* </li>
44-
* <li> {@link #setCreateAtomBonds(boolean)} - create atom bonds from parsed bonds in PDB/mmCIF files and chemical component files
45+
* <li> {@link #setCreateAtomBonds(boolean)} - create atom bonds from parsed bonds in PDB/mmCIF files and chemical component cif files
4546
* </li?
4647
* </ul>
4748
*
@@ -79,8 +80,8 @@ public class FileParsingParameters implements Serializable
7980
*/
8081
private boolean parseCAOnly;
8182

82-
/** Flag to parse header only
83-
*
83+
/**
84+
* Flag to parse header only
8485
*/
8586
private boolean headerOnly;
8687

@@ -114,8 +115,9 @@ public class FileParsingParameters implements Serializable
114115
* Should we create charges on atoms when parsing a file?
115116
*/
116117
private boolean createAtomCharges;
118+
117119
/**
118-
* Should we use internal or public facign chain ids?
120+
* Should we use internal (asym_id) or public facing (author) chain ids
119121
*/
120122
private boolean useInternalChainId;
121123
/**
@@ -409,10 +411,25 @@ public void setCreateAtomCharges(boolean createAtomCharges) {
409411
this.createAtomCharges = createAtomCharges;
410412
}
411413

414+
/**
415+
* Should we use internal (asym_id) or public facing (author) chain ids
416+
* @return
417+
* @since 4.2
418+
*/
412419
public boolean isUseInternalChainId() {
413420
return useInternalChainId;
414421
}
415422

423+
/**
424+
* Set the useInternalChainId parsing mode. This is an experimental
425+
* parsing mode that applies only to the mmCIF parser. It will create chains
426+
* following the model specified in the mmCIF dictionary where both polymer and
427+
* non-polymer entities are assigned separate chains. The chain identifiers
428+
* used are the asym_ids specified in mmCIF file. Some BioJava features might not
429+
* work properly in this parsing mode.
430+
* @param useInternalChainId
431+
* @since 4.2
432+
*/
416433
public void setUseInternalChainId(boolean useInternalChainId) {
417434
this.useInternalChainId = useInternalChainId;
418435
}

0 commit comments

Comments
 (0)