|
31 | 31 | import org.slf4j.Logger; |
32 | 32 | import org.slf4j.LoggerFactory; |
33 | 33 |
|
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 |
35 | 36 | * |
36 | 37 | * <ul> |
37 | 38 | * <li> {@link #setParseCAOnly(boolean)} - parse only the Atom records for C-alpha atoms</li> |
|
41 | 42 | * and ATOM records of a PDB file be aligned? (default:yes)</li> |
42 | 43 | * <li> {@link #setHeaderOnly(boolean)} - parse only the PDB/mmCIF file header, ignoring coordinates |
43 | 44 | * </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 |
45 | 46 | * </li? |
46 | 47 | * </ul> |
47 | 48 | * |
@@ -79,8 +80,8 @@ public class FileParsingParameters implements Serializable |
79 | 80 | */ |
80 | 81 | private boolean parseCAOnly; |
81 | 82 |
|
82 | | - /** Flag to parse header only |
83 | | - * |
| 83 | + /** |
| 84 | + * Flag to parse header only |
84 | 85 | */ |
85 | 86 | private boolean headerOnly; |
86 | 87 |
|
@@ -114,8 +115,9 @@ public class FileParsingParameters implements Serializable |
114 | 115 | * Should we create charges on atoms when parsing a file? |
115 | 116 | */ |
116 | 117 | private boolean createAtomCharges; |
| 118 | + |
117 | 119 | /** |
118 | | - * Should we use internal or public facign chain ids? |
| 120 | + * Should we use internal (asym_id) or public facing (author) chain ids |
119 | 121 | */ |
120 | 122 | private boolean useInternalChainId; |
121 | 123 | /** |
@@ -409,10 +411,25 @@ public void setCreateAtomCharges(boolean createAtomCharges) { |
409 | 411 | this.createAtomCharges = createAtomCharges; |
410 | 412 | } |
411 | 413 |
|
| 414 | + /** |
| 415 | + * Should we use internal (asym_id) or public facing (author) chain ids |
| 416 | + * @return |
| 417 | + * @since 4.2 |
| 418 | + */ |
412 | 419 | public boolean isUseInternalChainId() { |
413 | 420 | return useInternalChainId; |
414 | 421 | } |
415 | 422 |
|
| 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 | + */ |
416 | 433 | public void setUseInternalChainId(boolean useInternalChainId) { |
417 | 434 | this.useInternalChainId = useInternalChainId; |
418 | 435 | } |
|
0 commit comments