You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wiki/BioJava:Cookbook:Alphabets:CrossProduct.mediawiki
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
== How do I make a CrossProductAlphabet such as a codon Alphabet ==
2
2
3
-
CrossProductAlphabets result from the multiplication of other [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Alphabet.html Alphabets]. CrossProductAlphabets are used to wrap up 2 or more [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html Symbols]into a single "cross product" [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html Symbol]. For example using a 3 way cross of the [[wp:DNA|DNA]] alphabet you could wrap a [[wp:codon|codon]] as a [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html Symbol]. You could then count those [[wp:codon|codon]] [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Symbol.html Symbols] in a [http://www.biojava.org/docs/api14/org/biojava/bio/dist/Count.html Count] or you could used them in a [http://www.biojava.org/docs/api14/org/biojava/bio/dist/Distribution.html Distribution].
3
+
CrossProductAlphabets result from the multiplication of other [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Alphabet.html Alphabets]. CrossProductAlphabets are used to wrap up 2 or more [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Symbol.html Symbols]into a single "cross product" [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Symbol.html Symbol]. For example using a 3 way cross of the [[wp:DNA|DNA]] alphabet you could wrap a [[wp:codon|codon]] as a [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Symbol.html Symbol]. You could then count those [[wp:codon|codon]] [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Symbol.html Symbols] in a [http://www.biojava.org/docs/api1.8/org/biojava/bio/dist/Count.html Count] or you could used them in a [http://www.biojava.org/docs/api1.8/org/biojava/bio/dist/Distribution.html Distribution].
4
4
5
-
CrossProductAlphabets can be created by name (if the component [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Alphabet.html Alphabets] are registered in the [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/AlphabetManager.html AlphabetManager]) or by making a list of the desired [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Alphabet.html Alphabets] and creating the [http://www.biojava.org/docs/api14/org/biojava/bio/symbol/Alphabet.html Alphabet] from the [http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html List]. Both approaches are shown in the example below.
5
+
CrossProductAlphabets can be created by name (if the component [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Alphabet.html Alphabets] are registered in the [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/AlphabetManager.html AlphabetManager]) or by making a list of the desired [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Alphabet.html Alphabets] and creating the [http://www.biojava.org/docs/api1.8/org/biojava/bio/symbol/Alphabet.html Alphabet] from the [http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html List]. Both approaches are shown in the example below.
0 commit comments