sequence.js 629 B

12345678910111213141516171819202122232425
  1. import { entityKind, is } from "../entity.js";
  2. class GelSequence {
  3. constructor(seqName, seqOptions, schema) {
  4. this.seqName = seqName;
  5. this.seqOptions = seqOptions;
  6. this.schema = schema;
  7. }
  8. static [entityKind] = "GelSequence";
  9. }
  10. function gelSequence(name, options) {
  11. return gelSequenceWithSchema(name, options, void 0);
  12. }
  13. function gelSequenceWithSchema(name, options, schema) {
  14. return new GelSequence(name, options, schema);
  15. }
  16. function isGelSequence(obj) {
  17. return is(obj, GelSequence);
  18. }
  19. export {
  20. GelSequence,
  21. gelSequence,
  22. gelSequenceWithSchema,
  23. isGelSequence
  24. };
  25. //# sourceMappingURL=sequence.js.map