Package org.moltools.apps.probemaker.seq

Examples of org.moltools.apps.probemaker.seq.ProbeMakerTarget


   
    //Put groupname - group of each target group in a map
    Map<String, TargetGroup> targetGroups = new LinkedHashMap<String, TargetGroup>();
    //Create target groups and add targets to them
    for (S seq : targets.getSequenceCollection()) {
      ProbeMakerTarget t = (ProbeMakerTarget) seq;
      //Create group names on first word (before " ") of target name
      String groupName = t.getID().split(" ")[0]; //$NON-NLS-1$
             
      if (targetGroups.containsKey(groupName)) {
        TargetGroup tg = targetGroups.get(groupName);
        tg.addMember(t);
      }
      else {
        TargetGroup tg = new TargetGroup(t.getID());
        tg.addMember(t);
        targetGroups.put(groupName,tg);
      }
    }
   
View Full Code Here


   
    //Put groupname - group of each target group in a map
    Map<String, TargetGroup> targetGroups = new HashMap<String, TargetGroup>();
    //Create target groups and add targets to them
    for (int i = 0;i<targets.size();i++) {
      ProbeMakerTarget t = (ProbeMakerTarget) targets.getSequenceAt(i);
      //Create group names on first word (before " ") of target name
      String groupName = t.getID().split(" ")[0]; //$NON-NLS-1$
             
      if (targetGroups.containsKey(groupName)) {
        TargetGroup tg = targetGroups.get(groupName);
        tg.addMember(t);
      }
      else {
        TargetGroup tg = new TargetGroup(t.getID());
        tg.addMember(t);
        targetGroups.put(groupName,tg);
      }
    }
   
View Full Code Here

      h4.addContent(CoreMessages.getString("ProbeMakerHTMLRenderer.TEXT_GROUPED_WITH")); //$NON-NLS-1$
     
      Element list = new Element(HTMLWriter.UL.getTag());
     
      for (Iterator<? extends Target> i = targetGroup.getMembers().iterator(); i.hasNext(); ) {
        ProbeMakerTarget other = (ProbeMakerTarget) i.next();
        if (t != other) {
          Element li = new Element(HTMLWriter.LI.getTag());
          li.addContent(other.getID());
          list.addContent(li);
        }
      }     
      root.addContent(h4);
      root.addContent(list);
View Full Code Here

   * padlock probes and gap-fill probes*/
  public boolean checkTemplatingByTarget(Probe p) {
    boolean found = false;
    //Check that target is template in correct position only
    //Can't check ligation on target if no target!
    ProbeMakerTarget t = (ProbeMakerTarget) p.getTarget();   
    if (t != null) {
      boolean correct = false;
      int[] results = isLigationTemplate(t, p, false, true);
      if (results != null) {
        for (int i = 0; i < results.length; i++) {         
View Full Code Here

TOP

Related Classes of org.moltools.apps.probemaker.seq.ProbeMakerTarget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.