Skip to content

Commit 36db6a4

Browse files
committed
more docu
1 parent 9d7357a commit 36db6a4

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

structure/special.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
A chromophore is the part of a molecule responsible for its color. Several proteins, such as GFP contain a chromopohre that consists of three modified residues. BioJava represents this as a single group in terms of atoms, however as three amino acids when creating the amino acid sequences.
1010

1111
```java
12+
13+
1214
// make sure we download chemical component definitions
1315
// which is required for correctly representing the chromophore
1416
FileParsingParameters params = new FileParsingParameters();
@@ -25,7 +27,8 @@ A chromophore is the part of a molecule responsible for its color. Several prote
2527

2628
// and print out the internals
2729
System.out.println(s1.getPDBHeader().toPDB());
28-
30+
31+
// chromophore is at PDB residue number 66
2932
for ( Chain c : s1.getChains()) {
3033

3134
System.out.println("Chain " + c.getChainID() +
@@ -37,12 +40,9 @@ A chromophore is the part of a molecule responsible for its color. Several prote
3740

3841
int pos = 0 ;
3942
for (Group g: c.getAtomGroups()) {
40-
pos++;
41-
42-
System.out.println(pos + " " + g.getResidueNumber() + " " + g.getPDBName() + " " + g.getType() + " " + g.getChemComp().getOne_letter_code() + " " + g.getChemComp().getType() );
43-
44-
}
45-
43+
pos++;
44+
System.out.println(pos + " " + g.getResidueNumber() + " " + g.getPDBName() + " " + g.getType() + " " + g.getChemComp().getOne_letter_code() + " " + g.getChemComp().getType() );
45+
}
4646
}
4747
```
4848

0 commit comments

Comments
 (0)