Skip to content

sequenceModel instantiation should validate stickyEnds (and sequence) if present #247

@AJamesPhillips

Description

@AJamesPhillips

If a new sequence is made:

var attributes = {
  sequence: 'AT',
  stickyEnds: {
    start: {
      sequence: 'GG',
      offset: 1,
      size: 1,
    }
  }
};
new SequenceModel(attributes);

... then the attributes are invalid, and the sequenceModel should fail to instantiate. Either the sequence should be GGAT given the stickyEnd start sequence of GG, or the stickyEnd sequence should be AT.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions