Package org.moltools.apps.probemaker.design

Examples of org.moltools.apps.probemaker.design.ProbeGroup


    return ACCEPT;
  }

  public byte accept(Candidate c) {
    Probe p = (Probe) c;
    ProbeGroup group = (ProbeGroup) DesignUtils.getGroupWithType(c,ProbeGroup.GROUP_TYPE);
    Collection<Probe> probes = group.getMembers();
    for (Iterator<Probe> i = probes.iterator();i.hasNext();) {
      Probe pr = i.next();
      if (pr.tagsAllocated() && ProbeMakerPropertyUtils.getRank(p) == ProbeMakerConstants.GOOD_QUALITY) {
        return REJECT;
      }
View Full Code Here


        //Nothing
      }
      else {
        //We also have to set the selected probe's group to be the correct one.
        //Find the group
        ProbeGroup pg = (ProbeGroup) DesignUtils.getGroupWithType(p, ProbeGroup.GROUP_TYPE);       
        //Remove the current probe from the group
        if (pg != null) {
          pg.removeMember(p);                     
        }       
        //Copy the selected probe
        p.copy(selected);

        //Add the copied probe to the group
        if (pg != null) {
          pg.addMember(p);
        }
        //Print the selected probe to the log       
        String s = "Selected: "; //$NON-NLS-1$
        for (int i = 1; i <= p.getSequenceCount(); i++) {
          if (i > 1) {
View Full Code Here

      if (selected == null) {
        //Nothing
      }
      else {
        //We also have to set the selected probe's group to be the correct one.
        ProbeGroup pg = (ProbeGroup) DesignUtils.getGroupWithType(p, ProbeGroup.GROUP_TYPE);
        if (pg != null) {
          pg.removeMember(p);
        }
       
        //Copy the selected probe
        p.copy(selected);

        if (pg != null) {
          pg.addMember(p);
        }
        //Print the selected probe to the log       
        String s = "Selected: "; //$NON-NLS-1$
        for (int i = 1; i <= p.getSequenceCount(); i++) {
          if (i > 1) {
View Full Code Here

TOP

Related Classes of org.moltools.apps.probemaker.design.ProbeGroup

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.