final MutableString id = new MutableString(sequence);
int referenceIndex = targetIdentifiers.getIndex(id);
if (referenceIndex == -1) {
// try again removing a chr prefix:
referenceIndex = targetIdentifiers.getIndex(id.replace("chr", ""));
}
try {
if (referenceIndex == -1) {
// the reference could not be found in the Goby alignment, probably a wrong reference choice. Not sure how
// to inform the end user, but we send no results here: