TagLibrary spacerLib = new SpacerLibrary(0, NucleotideSequence.DNA);
//parse the spacer string and check that its valid
spacerSequence = ""; //$NON-NLS-1$
for (int i = 0; i < spacerString.length(); i++) {
Nucleotide nt = NucleotideSequenceHandler.getNucleotide(spacerString.
charAt(i),
NucleotideSequence.DNA);
if (nt == null) {
throw new UnsupportedOperationException("Invalid spacer sequence"); //$NON-NLS-1$
}
spacerSequence += nt.getChar();
}
//Increase the length of the libs by one to make room for spacer library
taglibraries = new TagLibrary[libs.length + 1];
tagorder = new int[libs.length + 1];