How to use the ve-sequence-utils.featureColors.misc_feature function in ve-sequence-utils

To help you get started, we’ve selected a few ve-sequence-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TeselaGen / openVectorEditor / src / utils / cleanSequenceData_DEPRECATED / index.js View on Github external
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(