Examples of SimpleNucleotideSequence


Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

    catch (ClusterException e) {
      temp = null;
    }
    if (temp != null)
      return ProbeMakerSequenceFactory.createTSS(temp,target.getID());
    return ProbeMakerSequenceFactory.createTSS(new SimpleNucleotideSequence("TSS3|"+target.getID(),"",type),target.getID()); //$NON-NLS-1$ //$NON-NLS-2$
  }
View Full Code Here

Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

    catch (ClusterException e) {
      temp = null;
    }
    if (temp != null)
      return ProbeMakerSequenceFactory.createTSS(temp,target.getID());
    return ProbeMakerSequenceFactory.createTSS(new SimpleNucleotideSequence("TSS5|"+target.getID(),"",type),target.getID()); //$NON-NLS-1$ //$NON-NLS-2$
  }
View Full Code Here

Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

  public static String getLongDescription() {
    return "This constructor generates empty target-specific sequences"; //$NON-NLS-1$
  }

  public PropertyAcceptorNucleotideSequence get3PrimeTSS(ProbeMakerTarget target, byte type) {
    NucleotideSequence seq = new SimpleNucleotideSequence("3'","",type); //$NON-NLS-1$ //$NON-NLS-2$
    return ProbeMakerSequenceFactory.createTSS(seq,target.getID());
  }
View Full Code Here

Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

    NucleotideSequence seq = new SimpleNucleotideSequence("3'","",type); //$NON-NLS-1$ //$NON-NLS-2$
    return ProbeMakerSequenceFactory.createTSS(seq,target.getID());
  }

  public PropertyAcceptorNucleotideSequence get5PrimeTSS(ProbeMakerTarget target, byte type) {
    NucleotideSequence seq = new SimpleNucleotideSequence("5'","",type); //$NON-NLS-1$ //$NON-NLS-2$
    return ProbeMakerSequenceFactory.createTSS(seq,target.getID());
  }
View Full Code Here

Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

            String temp = ""; //$NON-NLS-1$
            //Add a new nucleotide until the correct length is achieved
            for (int i = 0; i < spacerLength; i++) {
              temp += spacerString.charAt(i % spacerString.length());
            }
            spacer = new SimpleNucleotideSequence("Spacer " + temp, temp, p.getType()); //$NON-NLS-1$
          }
          else {
            //Create a new spacer lib for the spacer position and get the first tag
            taglibraries[spacerPosition] = new SpacerLibrary(spacerLength,
                p.getType());
View Full Code Here

Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

      //Get all sequences to match the primer to
      String[] sequences = NucleotideSequenceHandler.getPossibleSequences(sequence.substring(index,Math.min(index + primer.length(),sequence.length()-1)),target.getType());
     
      float maxTm = -Float.MAX_VALUE;
      NAHybridStructure top = null;
      NucleotideSequence s1 = new SimpleNucleotideSequence(primer.getID(),primer.seqString(),primer.getType());
      //int tops = -1;
      for (int s = 0;s<sequences.length;s++) {
             
        NucleotideSequence s2 = new SimpleNucleotideSequence("S2",sequences[s],target.getType());              //$NON-NLS-1$

        log.debug(s + ":  " + s1.seqString()); //$NON-NLS-1$
        log.debug("    " + SequenceHandler.getRev(s2)); //$NON-NLS-1$
       
        NAHybridStructure hs = fmpc.calculateHybridStructure(s1,s2);       
View Full Code Here

Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

  /**This method may be called when validating combinations, and spacers are valid with all other tags,
   * so just return a blank tag */
  @Override
  public NucleotideSequence getSequenceAt(int tagno) {
    return new SimpleNucleotideSequence("Spacer tag placeholder","",NucleotideSequence.DNA); //$NON-NLS-1$ //$NON-NLS-2$
  }
View Full Code Here

Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

    for (int i = 0; i < nextIndices.length; i++) {
      seq += baseSymbols[nextIndices[i]];
    }
    //also set indices to its next value
    updateIndices();
    return new SimpleNucleotideSequence("Spacer " + seq, seq, type); //$NON-NLS-1$
  }
View Full Code Here

Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

      NucleotideSequence tss5 = p.getTSSPair().getSequence(TSSPair.KEY_FIVE_PRIME);
      NucleotideSequence tss3 = p.getTSSPair().getSequence(TSSPair.KEY_THREE_PRIME);
     
//    The sequence of the probe arms (full arms)
      String tssSeq = tss3.seqString() + tss5.seqString();
      NucleotideSequence fullTSS = new SimpleNucleotideSequence("TSS",tssSeq,p.getType()); //$NON-NLS-1$

     
      //Get the sequence to search for in other probes  
      String threeseq = p.subsequence(p.length() - min3Length + 1, p.length());
      String fiveseq = p.subsequence(1, min5Length);
      String query = NucleotideSequenceHandler.getRevComp(threeseq + fiveseq, p.getType(),s.getType());
     
      //Length of 5' TSS
      int TSSlen5 = tss5.length();
      //Length of 3' TSS
      int TSSlen3 = tss3.length();

      //Get the string to search in, extend it if it is to be interpreted as circular,
      //and change any Us to Ts to allow correct interpretation       
      String sequence = s.seqString().replace('U', 'T');
     
      if (circular) {
        sequence += sequence.substring(0, min3Length + min5Length - 1);
      }
     
      //To store the results in
      Stack<Integer> results = new Stack<Integer>();
        
      //Search for occurrences of the query in the sequence
      int index = -1;
      while ((index = sequence.indexOf(query, index + 1)) > -1) {    
             
        //If stipulated, check Tm to be above limit
        if (doTm) {               
          float maxTm = -Float.MAX_VALUE;     
                 
          //Extract a template to check the whole TSS pair against
          int start = Math.max(0,index+min5Length-TSSlen5);
          int end = Math.min(index+min5Length+TSSlen3,sequence.length());

          //Get the template to compare to
          String template = sequence.substring(start,end);
          //Get all possible sequences to match the probe to
          String[] sequences = NucleotideSequenceHandler.getPossibleSequences(template,s.getType());
         
          for (int sc = 0;sc<sequences.length;sc++) {
                 
            NucleotideSequence s2 = new SimpleNucleotideSequence("S2",sequences[sc],s.getType());                       //$NON-NLS-1$
            NAHybridStructure hs = ((FractionalMeltingPointCalculator) fmpc).calculateHybridStructure(fullTSS,s2);       
           
            if (hs != null) {
              float Tm;
              try {
View Full Code Here

Examples of org.moltools.lib.seq.impl.SimpleNucleotideSequence

          }
        }
        else {
          //Tags not allocated, test arms only (connected in ligation point)
          try {
            if (isLigationTemplate(new SimpleNucleotideSequence(other.getTSSPair().
                getSequence(TSSPair.KEY_THREE_PRIME).seqString() +
                other.getTSSPair().getSequence(TSSPair.KEY_FIVE_PRIME).seqString(),
                "Arms of " + other.getName(), //$NON-NLS-1$
                other.getType()), p, false, false) != null) {
              ProbeMakerPropertyUtils.addMessage(p.getTSSPair(),new Message("May be templated by " + //$NON-NLS-1$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.