PropertyAcceptorNucleotideSequence tss3 = ProbeMakerSequenceFactory.createTSS(new SimpleNucleotideSequence(
"3' TSS", substrings[14], type),pt == null ? "" : pt.getID()); //$NON-NLS-1$ //$NON-NLS-2$
ProbeMakerPropertyUtils.setHybridizationTemp(tss3,Float.parseFloat(substrings[15]));
Probe p = new DefaultProbe(ProbeMakerSequenceFactory.createTSSPair(tss5, tss3, pt),Integer.parseInt(substrings[3]),Integer.parseInt(substrings[4]),type);
p.setName(substrings[0]);
p.setID(substrings[1]);
if (gr_no >= 0)
DesignUtils.addGroup(p, p_groups.get(gr_no));
ProbeMakerPropertyUtils.setRank(p,Byte.parseByte(substrings[7]));
//Read tags from substring 16;
int t = 0;
for (int i = 16; i < substrings.length; i+=2, t++) {
String l_str = substrings[i];
String t_str = substrings[i+1];
if (l_str.startsWith("Spacer")) { //$NON-NLS-1$
NucleotideSequence tag = new SimpleNucleotideSequence("Spacer " + t_str, t_str, p.getType()); //$NON-NLS-1$
p.addTagAt(tag,t);
}
else {
int lib_no = Integer.parseInt(l_str);
int tag_no = Integer.parseInt(t_str);
NucleotideSequence tag = libraries[lib_no].getSequenceAt(tag_no);
p.addTagAt(tag, t);
proj.getTagAllocationTable().use(tag,p,t);
}
}
//UITexts for 5' TSS
for (int mess = 0;mess < messageCount5;mess++) {
String[] messageLine = tio.getInStrings(r.readLine());
if (messageLine.length != 4)
throw new UnsupportedOperationException("Error parsing message line: " + messageLine); //$NON-NLS-1$
MessageType mt = new MessageType(messageLine[0],messageLine[1]);
ProbeMakerPropertyUtils.addMessage(tss5,new Message(messageLine[2],mt,Byte.parseByte(messageLine[3])));
}
//UITexts for 3' TSS
for (int mess = 0;mess < messageCount3;mess++) {
String[] messageLine = tio.getInStrings(r.readLine());
if (messageLine.length != 4)
throw new UnsupportedOperationException("Error parsing message line: " + messageLine); //$NON-NLS-1$
MessageType mt = new MessageType(messageLine[0],messageLine[1]);
ProbeMakerPropertyUtils.addMessage(tss3,new Message(messageLine[2],mt,Byte.parseByte(messageLine[3])));
}
//UITexts for TSS Pair
for (int mess = 0;mess < messageCountTSS;mess++) {
String[] messageLine = tio.getInStrings(r.readLine());
if (messageLine.length != 4)
throw new UnsupportedOperationException("Error parsing message line: " + messageLine); //$NON-NLS-1$
MessageType mt = new MessageType(messageLine[0],messageLine[1]);
ProbeMakerPropertyUtils.addMessage(p.getTSSPair(),new Message(messageLine[2],mt,Byte.parseByte(messageLine[3])));
}
//UITexts for Probe
for (int mess = 0;mess < messageCountProbe;mess++) {
String[] messageLine = tio.getInStrings(r.readLine());