Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
annotation.name +
" and set to 1"
); //setting it to 0 internally, but users will see it as 1
annotation.end = 0;
}
if (annotation.start > annotation.end && sequenceData.circular === false) {
response.messages.push(
"Invalid circular annotation detected for " +
annotation.name +
". end set to 1"
); //setting it to 0 internally, but users will see it as 1
annotation.end = 0;
}
if (annotationType === "features") {
annotation.color =
featureColors[annotation.type] || featureColors.misc_feature;
}
if (
annotation.forward === true ||
annotation.forward === "true" ||
annotation.strand === 1 ||
annotation.strand === "1" ||
annotation.strand === "+"
) {
annotation.forward = true;
} else {
annotation.forward = false;
}
if (!annotation.type || typeof annotation.type !== "string") {
response.messages.push(