File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
biojava3-alignment/src/main/java/demo Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ package demo ;
2+
3+ import org .biojava3 .alignment .SubstitutionMatrixHelper ;
4+ import org .biojava3 .alignment .template .SubstitutionMatrix ;
5+ import org .biojava3 .core .sequence .compound .AminoAcidCompound ;
6+
7+ public class DemoLoadSubstMax {
8+
9+ public static void main (String [] args ){
10+
11+
12+ // that's the PAM250 matrix (named a bit unclear in AAindex...)
13+ String max2 ="DAYM780301" ;
14+ SubstitutionMatrix <AminoAcidCompound > substMax2 = SubstitutionMatrixHelper .getMatrixFromAAINDEX (max2 );
15+ System .out .println (substMax2 );
16+
17+ // and here BLOSUM62...
18+ String max3 ="HENS920102" ;
19+ SubstitutionMatrix <AminoAcidCompound > substMax3 = SubstitutionMatrixHelper .getMatrixFromAAINDEX (max3 );
20+ System .out .println (substMax3 );
21+
22+ // This one I developed a while ago to be optimised for the alignment of distantly related sequences
23+ String matrixName4 = "PRLA000101" ;
24+ SubstitutionMatrix <AminoAcidCompound > substMax4 = SubstitutionMatrixHelper .getMatrixFromAAINDEX (matrixName4 );
25+ System .out .println (substMax4 );
26+
27+ }
28+ }
You can’t perform that action at this time.
0 commit comments