Difference between revisions of "SEGUID library"

From irefindex
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
import java.util.Arrays;
 
import java.util.Arrays;
 
import sha.etc.no.uio.biotek.SHA_Main;
 
import sha.etc.no.uio.biotek.SHA_Main;
public class Main {  
+
 
 +
public class Main{
 +
 
     public static void main(String[] args) {
 
     public static void main(String[] args) {
      SHA_Main main = new SHA_Main();
+
        SHA_Main main = new SHA_Main();
 
         String primary_amino_acid_sequence = "mdnmsitntp tsndaclsiv hslmchrqgg esetfakrai";
 
         String primary_amino_acid_sequence = "mdnmsitntp tsndaclsiv hslmchrqgg esetfakrai";
 
         int taxid =9606;
 
         int taxid =9606;
Line 15: Line 17:
 
         System.out.println("ROGID = "+seguid+taxid);
 
         System.out.println("ROGID = "+seguid+taxid);
 
     }
 
     }
 +
 
}
 
}
 
 
 
  
 
== Creating RIGID ==
 
== Creating RIGID ==
Line 24: Line 24:
 
import java.util.Arrays;
 
import java.util.Arrays;
 
import sha.etc.no.uio.biotek.SHA_Main;
 
import sha.etc.no.uio.biotek.SHA_Main;
 +
 
public class Main {     
 
public class Main {     
 
     public static void main(String[] args) {
 
     public static void main(String[] args) {
Line 32: Line 33:
 
         System.out.println("RIGID= " + main.getSeguForWithNum(concat));
 
         System.out.println("RIGID= " + main.getSeguForWithNum(concat));
 
     }
 
     }
 +
 
}
 
}

Latest revision as of 15:15, 4 February 2009

Help file for iRefIndex SEGUID library


Creating SEGUID and ROGID

import java.util.Arrays; import sha.etc.no.uio.biotek.SHA_Main;

public class Main{

   public static void main(String[] args) {
       SHA_Main main = new SHA_Main();
       String primary_amino_acid_sequence = "mdnmsitntp tsndaclsiv hslmchrqgg esetfakrai";
       int taxid =9606;
       String seguid = main.getSegu(primary_amino_acid_sequence);
       System.out.println("SEGUID = "+seguid);
       System.out.println("ROGID = "+seguid+taxid);
   }

}

Creating RIGID

import java.util.Arrays; import sha.etc.no.uio.biotek.SHA_Main;

public class Main {

   public static void main(String[] args) {
       SHA_Main main = new SHA_Main();
       String[] segulist_2 = {"waTMnn0uXSbf7bracJUScX9ckEc9606", "A9Ga60ipENjSsgt59TfNchYqXtw9606"};
       Arrays.sort(segulist_2);
       String concat = segulist_2[0] + segulist_2[1];
       System.out.println("RIGID= " + main.getSeguForWithNum(concat));
   }

}