List<SimpleChangeableNucleotideSequence> tags = new ArrayList<SimpleChangeableNucleotideSequence>();
StringTokenizer st = new StringTokenizer(seqstr, "|"); //$NON-NLS-1$
while (st.hasMoreTokens()) {
l.add(st.nextToken());
}
PropertyAcceptorNucleotideSequence tss5 = ProbeMakerSequenceFactory.createTSS(new SimpleChangeableNucleotideSequence("5' TSS", l.get(0),NucleotideSequence.DNA, "5' TSS"),null); //$NON-NLS-1$
for (int i = 1; i < l.size() - 1; i++) {
tags.add(new SimpleChangeableNucleotideSequence(id+"|Tag " + i, //$NON-NLS-1$
l.get(i), NucleotideSequence.DNA, "Tag " + i)); //$NON-NLS-1$
}
PropertyAcceptorNucleotideSequence tss3 = ProbeMakerSequenceFactory.createTSS(new SimpleChangeableNucleotideSequence("3' TSS", l.get(l.size() - 1), NucleotideSequence.DNA,"3' TSS"),null); //$NON-NLS-1$
Probe p = new DefaultProbe(ProbeMakerSequenceFactory.createTSSPair(tss5, tss3, null),0,0,NucleotideSequence.DNA);
for (int i = 0;i<tags.size();i++) {
p.addTagAt(tags.get(i),i);
}