jbrowse-plugin-msaview 2.10.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ export declare function launchBlastIfNeeded(self: JBrowsePluginMsaViewModel): vo
14
14
  * Once an accession-bearing alignment is present (fresh from BLAST or restored
15
15
  * from cache), fetch NCBI CDD domains for those accessions and overlay them.
16
16
  * Runs once per view; the domainsRequested guard prevents refiring when NCBI
17
- * returns no domains (which leaves interProAnnotations undefined).
17
+ * returns no domains (which leaves the annotation list empty).
18
18
  */
19
19
  export declare function autoLoadProteinDomains(self: JBrowsePluginMsaViewModel): void;
20
20
  export declare function processInit(self: JBrowsePluginMsaViewModel): void;
@@ -121,14 +121,14 @@ export function launchBlastIfNeeded(self) {
121
121
  * Once an accession-bearing alignment is present (fresh from BLAST or restored
122
122
  * from cache), fetch NCBI CDD domains for those accessions and overlay them.
123
123
  * Runs once per view; the domainsRequested guard prevents refiring when NCBI
124
- * returns no domains (which leaves interProAnnotations undefined).
124
+ * returns no domains (which leaves the annotation list empty).
125
125
  */
126
126
  export function autoLoadProteinDomains(self) {
127
- const { rows, domainsRequested, interProAnnotations } = self;
127
+ const { rows, domainsRequested, annotations } = self;
128
128
  const hasAccessions = self.data.treeMetadata?.includes('"Accession"') ?? false;
129
129
  if (rows.length > 0 &&
130
130
  hasAccessions &&
131
- !interProAnnotations &&
131
+ annotations.length === 0 &&
132
132
  !domainsRequested) {
133
133
  self.setDomainsRequested(true);
134
134
  void (async () => {
@@ -552,7 +552,7 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
552
552
  conservationTrackHeight: number;
553
553
  marginLeft: number;
554
554
  error: unknown;
555
- interProAnnotations: undefined | Record<string, import("react-msaview").InterProScanResults>;
555
+ annotations: import("msa-parsers").Annotation[];
556
556
  } & {
557
557
  drawRelativeTo(id: string | undefined): void;
558
558
  setHideGaps(arg: boolean): void;
@@ -571,7 +571,6 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
571
571
  setMouseClickPos(col?: number, row?: number): void;
572
572
  setRowHeight(n: number): void;
573
573
  setColWidth(n: number): void;
574
- setScrollY(n: number): void;
575
574
  setCurrentAlignment(n: number): void;
576
575
  toggleCollapsed(node: string): void;
577
576
  setShowOnly(node?: string): void;
@@ -628,7 +627,6 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
628
627
  readonly msaAreaWidth: number;
629
628
  readonly treeAreaWidthMinusMargin: number;
630
629
  readonly blanks: number[];
631
- readonly blanksSet: Set<number>;
632
630
  readonly insertionPositions: Map<string, {
633
631
  pos: number;
634
632
  letters: string;
@@ -641,7 +639,6 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
641
639
  readonly columns2d: string[];
642
640
  readonly fontSize: number;
643
641
  readonly colStats: import("react-msaview").ColumnCounts;
644
- readonly colStatsSums: Uint32Array<ArrayBufferLike>;
645
642
  readonly sequenceType: "dna" | "rna" | "amino";
646
643
  readonly colConsensus: {
647
644
  letter: string;
@@ -684,7 +681,9 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
684
681
  zoomOut(): void;
685
682
  zoomToPos(scaleFactor: number, offsetX: number, offsetY: number): void;
686
683
  doScrollY(deltaY: number): void;
687
- setDomains(data?: Record<string, import("react-msaview").InterProScanResults>): void;
684
+ setScrollY(n: number): void;
685
+ setAnnotations(annotations: import("msa-parsers").Annotation[]): void;
686
+ setDomains(data?: Record<string, import("msa-parsers").InterProScanResults>): void;
688
687
  applyGFFText(gffText: string): void;
689
688
  doScrollX(deltaX: number): void;
690
689
  setScrollX(n: number): void;
@@ -712,70 +711,16 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
712
711
  } & {
713
712
  readonly msaAreaHeight: number;
714
713
  readonly totalTrackAreaHeight: number;
715
- readonly tidyInterProAnnotationTypes: Map<string, {
716
- id: string;
717
- name: string;
718
- accession: string;
719
- description: string;
720
- featureType: string | undefined;
721
- start: number;
722
- end: number;
723
- strand: number | undefined;
724
- }>;
725
- readonly tidyInterProAnnotations: {
726
- id: string;
727
- name: string;
728
- accession: string;
729
- description: string;
730
- featureType: string | undefined;
731
- start: number;
732
- end: number;
733
- strand: number | undefined;
734
- }[];
735
- readonly tidyFilteredInterProAnnotations: {
736
- id: string;
737
- name: string;
738
- accession: string;
739
- description: string;
740
- featureType: string | undefined;
741
- start: number;
742
- end: number;
743
- strand: number | undefined;
744
- }[];
745
- readonly tidyFilteredGatheredInterProAnnotations: Record<string, {
746
- id: string;
747
- name: string;
748
- accession: string;
749
- description: string;
750
- featureType: string | undefined;
751
- start: number;
752
- end: number;
753
- strand: number | undefined;
754
- }[]>;
714
+ readonly annotationTypes: Map<string, import("msa-parsers").Annotation>;
715
+ readonly filteredAnnotations: import("msa-parsers").Annotation[];
716
+ readonly annotationsByRow: Record<string, import("msa-parsers").Annotation[]>;
755
717
  } & {
756
718
  readonly showVerticalScrollbar: boolean;
757
719
  } & {
758
720
  readonly verticalScrollbarWidth: 0 | 20;
759
- readonly segmentDomainTypes: {
760
- id: string;
761
- name: string;
762
- accession: string;
763
- description: string;
764
- featureType: string | undefined;
765
- start: number;
766
- end: number;
767
- strand: number | undefined;
768
- }[];
769
- readonly categoricalDomainTypes: {
770
- id: string;
771
- name: string;
772
- accession: string;
773
- description: string;
774
- featureType: string | undefined;
775
- start: number;
776
- end: number;
777
- strand: number | undefined;
778
- }[];
721
+ readonly msaCanvasWidth: number;
722
+ readonly segmentDomainTypes: import("msa-parsers").Annotation[];
723
+ readonly categoricalDomainTypes: import("msa-parsers").Annotation[];
779
724
  readonly fillPalette: {
780
725
  [x: string]: string;
781
726
  };
@@ -783,19 +728,10 @@ export default function stateModelFactory(): import("@jbrowse/mobx-state-tree").
783
728
  [k: string]: string;
784
729
  };
785
730
  readonly segmentLabels: Map<string, string>;
786
- readonly visibleDomainTypes: {
787
- id: string;
788
- name: string;
789
- accession: string;
790
- description: string;
791
- featureType: string | undefined;
792
- start: number;
793
- end: number;
794
- strand: number | undefined;
795
- }[];
731
+ readonly visibleDomainTypes: import("msa-parsers").Annotation[];
796
732
  readonly domainBands: Map<string, import("react-msaview").DomainBand[]>;
797
733
  readonly domainBandsByStart: Map<string, import("react-msaview").DomainBand[]>;
798
- readonly mouseOverDomains: import("react-msaview").TidyDomainAnnotation[];
734
+ readonly mouseOverDomains: import("msa-parsers").Annotation[];
799
735
  readonly referenceRowIndex: number | undefined;
800
736
  readonly hoveredRowIndices: number[];
801
737
  readonly highlightedColumnRuns: {
@@ -85,7 +85,7 @@ export default function stateModelFactory() {
85
85
  /**
86
86
  * #volatile
87
87
  * guards the one-shot auto-fetch of protein domains so it doesn't refire
88
- * when NCBI returns no domains (leaving interProAnnotations undefined)
88
+ * when NCBI returns no domains (leaving the annotation list empty)
89
89
  */
90
90
  domainsRequested: false,
91
91
  }))