Skip to content

Commit 824d2e3

Browse files
Gwaldonandreasprlic
authored andcommitted
minor edit
1 parent 5f84cee commit 824d2e3

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

wiki/BioJava:Cookbook:Sequence.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ title: BioJava:Cookbook:Sequence
55
How do I make a Sequence from a String or make a Sequence Object back into a String?
66
------------------------------------------------------------------------------------
77

8-
A lot of the time we see sequence represented as a String of characters
9-
eg "atgccgtggcatcgaggcatatagc". It's a convenient method for viewing and
10-
succinctly representing a more complex biological polymer. BioJava makes
11-
use of SymbolLists and Sequences to represent these biological polymers
12-
as Objects. Sequences extend SymbolLists and provide extra methods to
13-
store things like the name of the sequence and any features it might
14-
have but you can think of a Sequence as a SymbolList.
8+
A lot of the time we see a sequence represented as a String of
9+
characters e.g. "atgccgtggcatcgaggcatatagc". It's a convenient method
10+
for viewing and succinctly representing a more complex biological
11+
polymer. BioJava makes use of SymbolLists and Sequences to represent
12+
these biological polymers as Objects. Sequences extend SymbolLists and
13+
provide extra methods to store things like the name of the sequence and
14+
any features it might have but you can think of a Sequence as a
15+
SymbolList.
1516

1617
Within Sequence and SymbolList the polymer is not stored as a String.
1718
BioJava differentiates different polymer residues using Symbol objects

wiki/BioJava:Cookbook:Sequence.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
== How do I make a Sequence from a String or make a Sequence Object back into a String? ==
22

3-
A lot of the time we see sequence represented as a String of characters eg "atgccgtggcatcgaggcatatagc". It's a convenient method for viewing and succinctly representing a more complex biological polymer. BioJava makes use of SymbolLists and Sequences to represent these biological polymers as Objects. Sequences extend SymbolLists and provide extra methods to store things like the name of the sequence and any features it might have but you can think of a Sequence as a SymbolList.
3+
A lot of the time we see a sequence represented as a String of characters e.g. "atgccgtggcatcgaggcatatagc". It's a convenient method for viewing and succinctly representing a more complex biological polymer. BioJava makes use of SymbolLists and Sequences to represent these biological polymers as Objects. Sequences extend SymbolLists and provide extra methods to store things like the name of the sequence and any features it might have but you can think of a Sequence as a SymbolList.
44

55
Within Sequence and SymbolList the polymer is not stored as a String. BioJava differentiates different polymer residues using Symbol objects that come from different Alphabets. In this way it is easy to tell if a sequence is DNA or RNA or something else and the 'A' symbol from DNA is not equal to the 'A' symbol from RNA. The details of Symbols, SymbolLists and Alphabets are covered here. The crucial part is there needs to be a way for a programmer to convert between the easily readable String and the BioJava Object and the reverse. To do this BioJava has Tokenizers that can read a String of text and parse it into a BioJava Sequence or SymbolList object. In the case of DNA, RNA and Protein you can do this with a single method call. The call is made to a static method from either DNATools, RNATools or ProteinTools.
66

0 commit comments

Comments
 (0)