if (compPositions[pos] == i+1)
allowsComp = false;
}
//Get the tag from the probe
NucleotideSequence tag = p.getTagAt(i);
int block = p.getBlockNoOfTag(i);
int blockStart = p.getStartOfSequence(block);
//If the tag is of 0 length don't do anything
if (tag.length() > 0) {
//Search for the tag sequence in the probe
if (!allowsSeq) {
occurrences = tsc.getOccurrences(tag.seqString(), p.seqString(),
tag.getType(), p.getType(), true);
//Go through each of the occurrences
for (int occ = 0; occ < occurrences.length; occ++) {
int pos = occurrences[occ].intValue() + 1;
if (pos != blockStart) {
ProbeMakerPropertyUtils.addMessage(p,new Message(tag.getID() +
" found elsewhere in probe (position " + //$NON-NLS-1$
(pos) + ")", //$NON-NLS-1$
TAG_ELSEWHERE_INTERNAL,
Message.ERROR));
}
}
}
//search for the tag sequence complement in the probe
if (!allowsComp) {
occurrences = tsc.getOccurrences(NucleotideSequenceHandler.getRevComp(
tag, p.getType()), p.seqString(), tag.getType(),
p.getType(), true);
for (int occ = 0; occ < occurrences.length; occ++) {
int pos = occurrences[occ].intValue() + 1;
if (pos != blockStart) {
ProbeMakerPropertyUtils.addMessage(p,new Message("Complement of " + //$NON-NLS-1$
tag.getID() + " found (position " + //$NON-NLS-1$
(pos) + ")", //$NON-NLS-1$
TAG_COMPLEMENT_INTERNAL,
Message.ERROR));
}
}