Skip to content
Prev Previous commit
Next Next commit
fix typos in structure data model
  • Loading branch information
lafita committed Aug 5, 2015
commit 24584ea870e2ddd1c27a6e9a48e0a880d2bfc4f8
4 changes: 2 additions & 2 deletions structure/alignment-data-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@ ensemble constructor. An example on how to do it programatically is below:
Atom[] chain2;
boolean flexible = false;
MultipleAlignmentEnsemble ensemble = new MultipleAlignmentEnsemble(afpChain, chain1, chain2, false);
MultipleAlignment converted = ensemble.getMultipleAlignments().get(0);
MultipleAlignment converted = ensemble.getMultipleAlignment(0);
```

There is no method to convert from a `MultipleAlignment` to an `AFPChain`, because
the first representation supports any number of structures, while the second is
only supporting pairwise alignments. However, the conversion can be done with some
lines of code if needed (instantiate a new `AFPChain` and copy one by one the
properties that can be represented from the `MultipleAlignment`.
properties that can be represented from the `MultipleAlignment`).

===

Expand Down