@rcsb/rcsb-saguaro-app 4.4.0-models.13 → 4.4.0-models.16

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.
@@ -24,6 +24,20 @@ export interface ChartConfigInterface {
24
24
  barClickCallback?: BarClickCallbackType;
25
25
  sort?: (b: ChartDataInterface, a: ChartDataInterface) => number;
26
26
  tooltipText?: (a: ChartDataInterface) => string;
27
+ chartDisplayConfig?: Partial<ChartDisplayConfigInterface>;
28
+ }
29
+ export interface ChartDisplayConfigInterface {
30
+ paddingLeft: number;
31
+ paddingTopLarge: number;
32
+ paddingTop: number;
33
+ paddingRight: number;
34
+ constWidth: number;
35
+ constHeight: number;
36
+ xIncrement: number;
37
+ xDomainPadding: number;
38
+ barWidth: number;
39
+ fontFamily: string;
40
+ fontSize: number;
27
41
  }
28
42
  export declare enum ChartType {
29
43
  pie = "pie",
@@ -1,17 +1,18 @@
1
- import { ChartObjectInterface } from "../RcsbChartComponent/ChartConfigInterface";
1
+ import { ChartDisplayConfigInterface, ChartObjectInterface } from "../RcsbChartComponent/ChartConfigInterface";
2
2
  import { ChartDataInterface } from "../RcsbChartDataProvider/ChartDataProviderInterface";
3
3
  export declare class ChartTools {
4
- static readonly paddingLeft: number;
5
- static readonly paddingTopLarge: number;
6
- static readonly paddingTop: number;
7
- static readonly paddingRight: number;
8
- static readonly constWidth: number;
9
- static readonly constHeight: number;
10
- static readonly xIncrement: number;
11
- static readonly xDomainPadding: number;
12
- static readonly barWidth: number;
13
- static readonly fontFamily: string;
14
- static readonly fontSize: number;
4
+ private static readonly paddingLeft;
5
+ private static readonly paddingTopLarge;
6
+ private static readonly paddingTop;
7
+ private static readonly paddingRight;
8
+ private static readonly constWidth;
9
+ private static readonly constHeight;
10
+ private static readonly xIncrement;
11
+ private static readonly xDomainPadding;
12
+ private static readonly barWidth;
13
+ private static readonly fontFamily;
14
+ private static readonly fontSize;
15
+ static getConfig<T>(key: keyof ChartDisplayConfigInterface, chartDisplayConfig: Partial<ChartDisplayConfigInterface>): T;
15
16
  static mergeGroupSize(data: ChartObjectInterface[], size: number, mergeName?: string): ChartDataInterface[];
16
17
  static mostPopulatedGroups(data: ChartObjectInterface[], maxGroups: number, mergeName?: string): ChartDataInterface[];
17
18
  static mergeDomainMaxValue(data: ChartObjectInterface[], maxValue: number): ChartDataInterface[];
@@ -1,6 +1,6 @@
1
1
  import { AlignmentCollectConfig } from "../../../../RcsbCollectTools/AlignmentCollector/AlignmentCollectorInterface";
2
2
  import { RcsbFvLink, RcsbFvRowConfigInterface, RcsbFvTrackDataElementInterface } from "@rcsb/rcsb-saguaro";
3
- import { PolymerEntityInstanceTranslate, AlignmentContextInterface } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
3
+ import { AlignmentContextInterface, PolymerEntityInstanceTranslate } from "../../../../RcsbUtils/Translators/PolymerEntityInstanceTranslate";
4
4
  import { TrackFactoryInterface } from "../TrackFactoryInterface";
5
5
  import { AlignmentRequestContextType } from "./AlignmentTrackFactory";
6
6
  interface BuildSequenceDataInterface extends AlignmentContextInterface {
@@ -1,5 +1,4 @@
1
1
  import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
2
- import { SearchQueryType } from "../RcsbSeacrh/SearchRequestProperty";
3
2
  import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums";
4
3
  import { ReturnType } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
5
4
  import { GroupChartAdditionalProperties } from "./RcsbGroupView/RcsbGroupChart/GroupChartAdditionalProperties";
@@ -7,11 +6,12 @@ import { SearchQueryContextManagerSubjectInterface } from "./RcsbGroupView/RcsbG
7
6
  import { Subscription } from "rxjs";
8
7
  import { RcsbGroupContentTextInterface } from "./RcsbGroupView/RcsbGroupContent/RcsbGroupContentComponent";
9
8
  import { ResidueChartInterface } from "./RcsbGroupView/RcsbResidueChart/ResidueChartTools/ResidueChartTools";
10
- export declare function buildSearchRequest(elementId: string, searchQuery: SearchQueryType, returnType: ReturnType): Promise<void>;
9
+ import { ChartDisplayConfigInterface } from "../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
10
+ export declare function buildSearchRequest(elementId: string, searchQuery: SearchQuery, returnType: ReturnType): Promise<void>;
11
11
  export declare function buildGroup(elementId: string, groupProvenance: GroupProvenanceId, groupId: string, query?: SearchQuery, facetLayoutGrid?: string[], additionalProperties?: GroupChartAdditionalProperties): Promise<void>;
12
12
  export declare function buildGroupMembers(elementId: string, groupProvenance: GroupProvenanceId, groupId: string, nRows: number, nColumns: number, query?: SearchQuery): void;
13
13
  export declare function buildGroupContent(elementId: string, groupProvenance: GroupProvenanceId, groupId: string, query?: SearchQuery, textConfig?: RcsbGroupContentTextInterface): void;
14
- export declare function buildResidueDistribution(elementId: string, granularity: ResidueChartInterface["granularity"], rcsbId: string, facetLayoutGrid?: string[]): void;
14
+ export declare function buildResidueDistribution(elementId: string, granularity: ResidueChartInterface["granularity"], rcsbId: string, facetLayoutGrid?: string[], chartDisplayConfig?: Partial<ChartDisplayConfigInterface>): void;
15
15
  export declare const searchQueryContextManager: {
16
16
  subscribe(f: (o: SearchQueryContextManagerSubjectInterface) => void): Subscription;
17
17
  };
@@ -1,11 +1,11 @@
1
1
  import * as React from "react";
2
2
  import { FacetStoreInterface } from "../../../RcsbSeacrh/FacetStore/FacetStoreInterface";
3
- import { SearchQueryType } from "../../../RcsbSeacrh/SearchRequestProperty";
4
3
  import { BucketFacet } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchResultInterface";
5
4
  import { ReturnType } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
5
+ import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
6
6
  interface RcsbStatsChartInterface {
7
7
  facetStore: FacetStoreInterface;
8
- searchQuery: SearchQueryType;
8
+ searchQuery: SearchQuery;
9
9
  returnType: ReturnType;
10
10
  }
11
11
  interface RcsbStatsChartState {
@@ -1,15 +1,15 @@
1
1
  import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
2
2
  import { FacetStoreInterface } from "../../RcsbSeacrh/FacetStore/FacetStoreInterface";
3
- import { SearchQueryType } from "../../RcsbSeacrh/SearchRequestProperty";
4
3
  import { ReturnType } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
5
4
  import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums";
6
5
  import { GroupChartAdditionalProperties } from "./RcsbGroupChart/GroupChartAdditionalProperties";
7
6
  import { RcsbGroupContentTextInterface } from "./RcsbGroupContent/RcsbGroupContentComponent";
8
7
  import { ResidueChartInterface } from "./RcsbResidueChart/ResidueChartTools/ResidueChartTools";
8
+ import { ChartDisplayConfigInterface } from "../../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
9
9
  export declare class RcsbGroupDisplay {
10
- static displayRcsbSearchStats(elementId: string, facetStore: FacetStoreInterface, searchQuery: SearchQueryType, returnType: ReturnType): Promise<void>;
10
+ static displayRcsbSearchStats(elementId: string, facetStore: FacetStoreInterface, searchQuery: SearchQuery, returnType: ReturnType): Promise<void>;
11
11
  static displaySearchAttributes(elementId: string, groupProvenanceId: GroupProvenanceId, groupId: string, searchQuery?: SearchQuery, facetLayoutGrid?: string[], additionalProperties?: GroupChartAdditionalProperties): Promise<void>;
12
12
  static displayGroupMembers(elementId: string, groupProvenanceId: GroupProvenanceId, groupId: string, nRows: number, nColumns: number, query?: SearchQuery): void;
13
13
  static displayGroupContent(elementId: string, groupProvenanceId: GroupProvenanceId, groupId: string, query?: SearchQuery, textConfig?: RcsbGroupContentTextInterface): void;
14
- static displayResidueDistribution(elementId: string, granularity: ResidueChartInterface["granularity"], rcsbId: string, facetLayoutGrid?: string[]): void;
14
+ static displayResidueDistribution(elementId: string, granularity: ResidueChartInterface["granularity"], rcsbId: string, facetLayoutGrid?: string[], chartDisplayConfig?: Partial<ChartDisplayConfigInterface>): void;
15
15
  }
@@ -1,12 +1,14 @@
1
1
  import * as React from "react";
2
2
  import { ChartMapType } from "../RcsbGroupChart/GroupChartLayout";
3
3
  import { ResidueChartInterface } from "./ResidueChartTools/ResidueChartTools";
4
+ import { ChartDisplayConfigInterface } from "../../../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
4
5
  interface RcsbResidueChartState {
5
6
  layout: string[];
6
7
  chartMap: ChartMapType;
7
8
  }
8
9
  export declare class RcsbResidueChartComponent extends React.Component<ResidueChartInterface & {
9
10
  facetLayoutGrid?: string[];
11
+ chartDisplayConfig?: Partial<ChartDisplayConfigInterface>;
10
12
  }, RcsbResidueChartState> {
11
13
  render(): JSX.Element;
12
14
  componentDidMount(): Promise<void>;
@@ -10,7 +10,7 @@ import { EntryPropertyIntreface } from "../RcsbCollectTools/DataCollectors/Multi
10
10
  import { SearchQueryType } from "../RcsbSeacrh/SearchRequestProperty";
11
11
  import { FacetType } from "../RcsbSeacrh/FacetStore/FacetMemberInterface";
12
12
  import { ReturnType } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
13
- import { SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
13
+ import { ResultsContentType, SearchQuery } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
14
14
  import { RequestInit as GraphqlRequestInit } from "graphql-request/src/types.dom";
15
15
  declare class RcsbRequestContextManager {
16
16
  private readonly polymerEntityToInstanceMap;
@@ -36,7 +36,7 @@ declare class RcsbRequestContextManager {
36
36
  getEntityToChromosome(entityIds: Array<string>): Promise<PolymerEntityChromosomeTranslate>;
37
37
  getGroupMemberProperties(groupQuery: QueryPolymer_Entity_GroupArgs): Promise<GroupPropertiesProvider>;
38
38
  getSearchQuery(searchQuery: SearchQuery): Promise<QueryResult | null>;
39
- getSearchQueryFacets(query: SearchQueryType, facets: FacetType[], returnType: ReturnType): Promise<QueryResult | null>;
39
+ getSearchQueryFacets(query: SearchQueryType, facets: FacetType[], returnType: ReturnType, resultsContentType: ResultsContentType): Promise<QueryResult | null>;
40
40
  getInterfaceToInstance(interfaceId: string): Promise<InterfaceInstanceTranslate>;
41
41
  private getAssemblyInterfaces;
42
42
  initializeBorregoClient(config: {
@@ -1,6 +1,7 @@
1
1
  import { FacetMemberInterface } from "./FacetMemberInterface";
2
2
  export declare const EXPERIMENTAL_METHOD_FACET: FacetMemberInterface;
3
3
  export declare const RESOLUTION_FACET: FacetMemberInterface;
4
+ export declare const METHODOLOGY_FACET: FacetMemberInterface;
4
5
  export declare const RELEASE_DATE_FACET: FacetMemberInterface;
5
6
  export declare const SCOP_FACET: FacetMemberInterface;
6
7
  export declare const CATH_FACET: FacetMemberInterface;
@@ -34,4 +35,5 @@ export declare const SearchFacets: {
34
35
  GO_PROCESS_FACET: FacetMemberInterface;
35
36
  GO_COMPONENT_FACET: FacetMemberInterface;
36
37
  LIGAND_OF_INTEREST_FACET: FacetMemberInterface;
38
+ METHODOLOGY_FACET: FacetMemberInterface;
37
39
  };
@@ -1,5 +1,5 @@
1
1
  import { BucketFacet } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchResultInterface";
2
- import { ChartConfigInterface, ChartObjectInterface, ChartType } from "../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
2
+ import { ChartConfigInterface, ChartDisplayConfigInterface, ChartObjectInterface, ChartType } from "../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface";
3
3
  import { FacetMemberInterface } from "./FacetStore/FacetMemberInterface";
4
4
  import { AttributeTextQueryParameters } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
5
5
  import { Operator, Service } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
@@ -24,6 +24,33 @@ export declare class FacetTools {
24
24
  static getResultDrilldowns(facetMembers: FacetMemberInterface[], searchResultFacets: Array<BucketFacet>, labelList?: string[], recursiveOut?: Array<RcsbChartInterface>): Array<RcsbChartInterface>;
25
25
  static subtractDrilldowns(partial: Array<RcsbChartInterface>, full: Array<RcsbChartInterface>): Array<RcsbChartInterface>;
26
26
  static getFacetFromName(facetMembers: FacetMemberInterface[], name: string): FacetMemberInterface;
27
+ static addChartDisplayConfig(chart: RcsbChartInterface, chartDisplayConfig: Partial<ChartDisplayConfigInterface>): {
28
+ chartConfig: {
29
+ chartDisplayConfig: Partial<ChartDisplayConfigInterface>;
30
+ mergeGroupSize?: number;
31
+ mergeDomainMaxValue?: number;
32
+ mostPopulatedGroups?: number;
33
+ mergeName?: string;
34
+ domainMinValue?: number;
35
+ histogramBinIncrement?: number;
36
+ tickIncrement?: {
37
+ origin: number;
38
+ increment: number;
39
+ };
40
+ axisLabel?: string;
41
+ barClickCallback?: import("../RcsbChartWeb/RcsbChartComponent/ChartConfigInterface").BarClickCallbackType;
42
+ sort?: (b: import("../RcsbChartWeb/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataInterface, a: import("../RcsbChartWeb/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataInterface) => number;
43
+ tooltipText?: (a: import("../RcsbChartWeb/RcsbChartDataProvider/ChartDataProviderInterface").ChartDataInterface) => string;
44
+ };
45
+ chartType: ChartType;
46
+ labelList?: string[];
47
+ attribute: string;
48
+ attributeName: string;
49
+ title: string;
50
+ data: ChartObjectInterface[];
51
+ filters?: SearchFilter[];
52
+ contentType: "string" | "number" | "date";
53
+ };
27
54
  private static includeMissingFacets;
28
55
  private static getFacetChartTypeFromAttribute;
29
56
  private static getFacetFiltersFromName;
@@ -1,16 +1,17 @@
1
1
  import { SearchQueryType } from "./SearchRequestProperty";
2
2
  import { LogicalOperator, Operator, ReturnType, Service } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
3
- import { SearchQuery, AttributeTextQueryParameters } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
3
+ import { SearchQuery, AttributeTextQueryParameters, ResultsContentType } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
4
4
  import { FacetStoreInterface } from "./FacetStore/FacetStoreInterface";
5
5
  import { GroupProvenanceId } from "@rcsb/rcsb-api-tools/build/RcsbDw/Types/DwEnums";
6
6
  export declare namespace SearchQueryTools {
7
7
  function searchGroupQuery(groupProvenance: GroupProvenanceId, groupId: string, service?: Service): SearchQueryType;
8
8
  function addGroupNodeToSearchQuery(groupProvenanceId: GroupProvenanceId, groupId: string, searchQuery: SearchQueryType, service?: Service): SearchQueryType;
9
9
  function buildAttributeSearchQuery(attribute: string, value: AttributeTextQueryParameters['value'], operator: Operator, searchQuery: SearchQueryType, returnType: ReturnType, service: Service.Text | Service.TextChem, negation?: boolean): SearchQuery;
10
- function buildNodeSearchQuery(node: SearchQueryType, searchQuery: SearchQueryType, returnType: ReturnType, logicalOperator?: LogicalOperator): SearchQuery;
10
+ function buildNodeSearchQuery(node: SearchQueryType, searchQuery: SearchQueryType, returnType: ReturnType, resultsContentType: ResultsContentType, logicalOperator?: LogicalOperator): SearchQuery;
11
11
  function buildSearchQuery(searchQuery: SearchQueryType, returnType: ReturnType, logicalOperator?: LogicalOperator): SearchQuery;
12
12
  function addNewNodeToAttributeSearchQuery(attribute: string, value: AttributeTextQueryParameters['value'], operator: Operator, searchQuery: SearchQueryType, service: Service.Text | Service.TextChem, negation?: boolean): SearchQueryType;
13
13
  function searchAttributeQuery(attribute: string, value: AttributeTextQueryParameters['value'], operator: Operator, service: Service.Text | Service.TextChem, negation?: boolean): SearchQueryType;
14
14
  function addNodeToSearchQuery(node: SearchQueryType, searchQuery: SearchQueryType, logicalOperator?: LogicalOperator): SearchQueryType;
15
15
  function getFacetStoreFromGroupProvenance(groupProvenanceId: GroupProvenanceId): FacetStoreInterface;
16
+ function searchContentType(searchQuery?: SearchQuery): ResultsContentType;
16
17
  }
@@ -1,14 +1,14 @@
1
1
  import { SearchRequest } from "@rcsb/rcsb-api-tools/build/RcsbSearch/SearchRequest";
2
2
  import { QueryResult } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchResultInterface";
3
3
  import { ReturnType } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchEnums";
4
- import { GroupNode, SearchQuery, TerminalNode } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
4
+ import { GroupNode, ResultsContentType, SearchQuery, TerminalNode } from "@rcsb/rcsb-api-tools/build/RcsbSearch/Types/SearchQueryInterface";
5
5
  import { FacetType } from "./FacetStore/FacetMemberInterface";
6
6
  export declare type SearchQueryType = GroupNode | TerminalNode;
7
7
  declare class SearchRequestProperty {
8
8
  private readonly getClient;
9
9
  constructor(getClient: () => SearchRequest);
10
10
  private _requestFacets;
11
- requestFacets(query: SearchQueryType, facets: FacetType[], returnType: ReturnType): Promise<QueryResult | null>;
11
+ requestFacets(query: SearchQueryType, facets: FacetType[], returnType: ReturnType, resultsContentType: ResultsContentType): Promise<QueryResult | null>;
12
12
  requestMembers(query: SearchQuery): Promise<Array<string>>;
13
13
  requestCount(query: SearchQuery): Promise<number>;
14
14
  request(query: SearchQuery): Promise<QueryResult | null>;
@@ -5,6 +5,7 @@ export declare class TagDelimiter {
5
5
  static readonly alignmentTitle: string;
6
6
  static readonly operatorComposition: string;
7
7
  static readonly assembly: string;
8
+ private static rcsbEntryRegExp;
8
9
  private static rcsbEntityRegExp;
9
10
  private static rcsbInstanceRegExp;
10
11
  static parseEntity(rcsbId: string): {
@@ -16,4 +17,5 @@ export declare class TagDelimiter {
16
17
  entryId: string;
17
18
  };
18
19
  static isEntityOrInstanceId(rcsb: string): boolean;
20
+ static isRcsbId(rcsb: string): boolean;
19
21
  }