Skip to content

Commit 2579784

Browse files
markjschreiberandreasprlic
authored andcommitted
/* How do I make a custom Alphabet from custom Symbols? */
1 parent cacb9cd commit 2579784

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

_wikis/BioJava:Cookbook:Alphabets:Custom.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ How do I make a custom Alphabet from custom Symbols?
77

88
This example demonstrates the creation of a 'binary' alphabet that will
99
have two
10-
[Symbols](http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html),
10+
[Symbols](http://www.biojava.org/docs/api15/org/biojava/bio/symbol/Symbol.html),
1111
zero and one. The custom made
12-
[Symbols](http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html)
12+
[Symbols](http://www.biojava.org/docs/api15/org/biojava/bio/symbol/Symbol.html)
1313
and
14-
[Alphabet](http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Alphabet.html)
14+
[Alphabet](http://www.biojava.org/docs/api15/org/biojava/bio/symbol/Alphabet.html)
1515
can then be used to make
16-
[SymbolList](http://www.biojava.org/docs/api14/org/biojava/bio/symbol/SymbolList.html),
17-
[Sequences](http://www.biojava.org/docs/api14/org/biojava/bio/seq/Sequence.html),
18-
[Distributions](http://www.biojava.org/docs/api14/org/biojava/bio/dist/Distribution.html),
16+
[SymbolList](http://www.biojava.org/docs/api15/org/biojava/bio/symbol/SymbolList.html),
17+
[Sequences](http://www.biojava.org/docs/api15/org/biojava/bio/seq/Sequence.html),
18+
[Distributions](http://www.biojava.org/docs/api15/org/biojava/bio/dist/Distribution.html),
1919
etc.
2020

2121
<java> import org.biojava.bio.symbol.\*; import org.biojava.bio.\*;
@@ -46,7 +46,7 @@ public class Binary {
4646
`     System.out.println(sym.getName());`
4747
`   }`
4848

49-
`   //it is usual to register newly creates Alphabets with the AlphabetManager`
49+
`   //it is usual to register newly created Alphabets with the AlphabetManager`
5050
`   AlphabetManager.registerAlphabet(binary.getName(), binary);`
5151

5252
`   /*`

_wikis/BioJava:Cookbook:Alphabets:Custom.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
== How do I make a custom Alphabet from custom Symbols? ==
22

3-
This example demonstrates the creation of a 'binary' alphabet that will have two [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html Symbols], zero and one. The custom made [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html Symbols] and [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Alphabet.html Alphabet] can then be used to make [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/SymbolList.html SymbolList], [http://www.biojava.org/docs/api14/org/biojava/bio/seq/Sequence.html Sequences], [http://www.biojava.org/docs/api14/org/biojava/bio/dist/Distribution.html Distributions], etc.
3+
This example demonstrates the creation of a 'binary' alphabet that will have two [http://www.biojava.org/docs/api15/org/biojava/bio/symbol/Symbol.html Symbols], zero and one. The custom made [http://www.biojava.org/docs/api15/org/biojava/bio/symbol/Symbol.html Symbols] and [http://www.biojava.org/docs/api15/org/biojava/bio/symbol/Alphabet.html Alphabet] can then be used to make [http://www.biojava.org/docs/api15/org/biojava/bio/symbol/SymbolList.html SymbolList], [http://www.biojava.org/docs/api15/org/biojava/bio/seq/Sequence.html Sequences], [http://www.biojava.org/docs/api15/org/biojava/bio/dist/Distribution.html Distributions], etc.
44

55
<java>
66
import org.biojava.bio.symbol.*;
@@ -31,7 +31,7 @@ public class Binary {
3131
System.out.println(sym.getName());
3232
}
3333
34-
//it is usual to register newly creates Alphabets with the AlphabetManager
34+
//it is usual to register newly created Alphabets with the AlphabetManager
3535
AlphabetManager.registerAlphabet(binary.getName(), binary);
3636
3737
/*

0 commit comments

Comments
 (0)