Skip to content

Releases: Lattice-Automation/seqviz

3.8.0

06 May 19:35
Compare
Choose a tag to compare

What's Changed

Custom Rendering
This makes use of the children and refs props to allow custom rendering of the sequence viewers. For example, to render the linear viewer above the circular viewer:

import { useRef } from "react";
import { SeqViz, Linear, Circular } from "seqviz";

export default () => {
  const linearRef = useRef();
  const circularRef = useRef();

  return (
    <SeqViz
      name="J23100"
      seq="TTGACGGCTAGCTCAGTCCTAGGTACAGTGCTAGC"
      refs={{circular: circularRef, linear: linearRef}}
    >
      {({ circularProps, linearProps, ...props }) => (
        <div
          style={{ display: "flex", flexDirection: "column", width: "100%" }}
        >
          <div ref={linearRef} style={{ height: "25%", width: "100%" }}>
            <Linear {...linearProps} {...props} />
          </div>
          <div ref={circularRef} style={{ height: "75%", width: "100%" }}>
            <Circular {...circularProps} {...props} />
          </div>
        </div>
      )}
    </SeqViz>
  );
};

New Contributors

Full Changelog: 3.7.13...3.8.0

3.7.13

03 Apr 01:00
Compare
Choose a tag to compare

Full Changelog: 3.7.12...3.7.13

  • fix passing of compSeq to override default: #203

3.7.12

03 Apr 00:48
Compare
Choose a tag to compare

Full Changelog: 3.7.11...3.7.12

  • fix not rendering AA sequences: #202

3.7.11

20 Mar 00:14
Compare
Choose a tag to compare

What's Changed

  • Bump webpack from 5.74.0 to 5.76.0 by @dependabot in #200
  • Bump webpack from 5.74.0 to 5.76.0 in /demo by @dependabot in #199
  • Fixes annotation sort ordering inconsistency: #201

Full Changelog: 3.7.10...3.7.11

3.7.10

15 Mar 00:28
Compare
Choose a tag to compare

Full Changelog: 3.7.9...3.7.10

Fix InfiniteScroller ref checks: #197

3.7.9

11 Mar 21:02
Compare
Choose a tag to compare

What's Changed

  • Parse/render files synchronously by @jjtimmons in #196

Note: this may break SnapGene file rendering/parsing -- because it's async. Please @ me if that's an issue. You can fix by using seqparse externally to the library. But I can also add some special "is this a SnapGene file prop" behavior

Full Changelog: 3.7.8...3.7.9

3.7.8

11 Mar 16:49
Compare
Choose a tag to compare

Full Changelog: 3.7.7...3.7.8

Fixes sequence text height on Safari: #193

3.7.7

11 Mar 15:50
Compare
Choose a tag to compare

Full Changelog: 3.7.6...3.7.7

Fix removal of enzymes re: #195

3.7.6

08 Jan 23:57
Compare
Choose a tag to compare

Full Changelog: 3.7.5...3.7.6

  • Darken the highlighted region of enzyme cut sites (instead of changing its width)

Screen Shot 2023-01-08 at 6 58 08 PM

3.7.5

08 Jan 23:51
Compare
Choose a tag to compare

Full Changelog: 3.7.4...3.7.5

  • Fix a bug where shifted enzyme labels are then sorted/moved in the wrong order
  • Add darkening of the enzyme recognition site on hover on Linear Viewer

Before

Screen Shot 2023-01-08 at 6 17 02 PM

After

Screen Shot 2023-01-08 at 6 44 56 PM