Skip to content

Commit 1480a69

Browse files
committed
use java syntax highlighting
1 parent cb1002e commit 1480a69

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

structure/seqres.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The **Atom** records provide coordinates where it was possible to observe them.
2424

2525
The *mmCIF/PDBx* file format contains the information how the Seqres and atom records are mapped onto each other. However the *PDB format* does not clearly specify how to resolve this mapping. BioJava contains a utility class that maps the Seqres to the Atom records when parsing PDB files. This class performs an alignment using dynamic programming, which can slow down the parsing process. If you do not require the precise Seqres to Atom mapping, you can turn it off like this:
2626

27-
<pre>
27+
```java
2828
AtomCache cache = new AtomCache();
2929

3030
FileParsingParameters params = cache.getFileParsingParams();
@@ -33,7 +33,7 @@ The *mmCIF/PDBx* file format contains the information how the Seqres and atom re
3333

3434
Structure structure = StructureIO.getStructure(...);
3535

36-
</pre>
36+
```
3737

3838
## Mapping from Uniprot to Atom records
3939

@@ -43,7 +43,7 @@ BioJava contains a parser for the SIFTs XML files. The [SiftsMappingProvider](ht
4343

4444
Here, how to request the mapping for one particular PDB ID.
4545

46-
<pre>
46+
```java
4747
List<SiftsEntity> entities = SiftsMappingProvider.getSiftsMapping("1gc1");
4848

4949
for (SiftsEntity e : entities){
@@ -58,7 +58,7 @@ Here, how to request the mapping for one particular PDB ID.
5858
}
5959

6060
}
61-
</pre>
61+
```
6262

6363
This gives the following output:
6464

0 commit comments

Comments
 (0)