@rcsb/rcsb-saguaro-app
    TypeScript icon, indicating that this package has built-in type declarations

    4.3.6 • Public • Published

    rcsb-saguaro-app

    RCSB Saguaro Web Application is an open-source library built on the top of the RCSB Saguaro 1D Feature Viewer and designed to display protein features at the RCSB Web Site. The package collects protein annotations from the 1D Coordinate Server and the main RCSB Data API and generates preconfigures Protein Feature Summaries. The package allows access to RCSB Saguaro methods to add or change displayed data.

    Node Module Instalation

    npm install @rcsb/rcsb-saguaro-app

    CDN JavaScript

    <script src="https://cdn.jsdelivr.net/npm/@rcsb/rcsb-saguaro-app/build/dist/app.js" type="text/javascript"></script>

    JavaScript Examples

    The full collection of examples can be edit and modified at CODEPEN

    Library Documentation

    TypeScript classes documentation can be found here.

    Main Class and Methods

    RcsbFvWebApp calss provides a collection of methods to display preconfigured features over PDB and UniProt sequences as displayed at RCSB PDB web site. Additionally, it allows to configure board size and set up feature click events.

    • RcsbFvWebApp.buildUniprotFv(elementId: string, upAcc: string)

    • RcsbFvWebApp.buildEntityFv(elementId: string, entityId: string)

    • RcsbFvWebApp.buildInstanceFv(elementId: string, instanceId: string)

    • RcsbFvWebApp.buildUniprotEntityFv(elementId: string, upAcc: string, entityId: string)

    • RcsbFvWebApp.buildUniprotEntityInstanceFv(elementId: string, upAcc: string, entityId: string, instanceId: string)

    • RcsbFvWebApp.setBoardConfig(boardConfigData: RcsbFvBoardConfigInterface)

    • RcsbFvWebApp.getRcsbFv(elementId: string)

    GraphQL configuration

    Building TypeScript interfaces
    • Files ["src/RcsbServerConfig/codegen.borrego.json", "src/RcsbServerConfig/codegen.yosemite.json"]
    • Borrego Interfaces: graphql-codegen --config src/RcsbServerConfig/codegen.borrego.json
    • Yosemite Interfaces: graphql-codegen --config src/RcsbServerConfig/codegen.yosemite.json
    • Generated Sources: "src/RcsbGraphQL/Types"
    IntelliJ schemas
    • Config Files: ["src/RcsbGraphQL/Queries/Borrego/.graphqlconfig", "src/RcsbGraphQL/Queries/Yosemite/.graphqlconfig"]
    • Generated Schemas: ["src/RcsbGraphQL/Queries/Borrego/schema.graphql", "src/RcsbGraphQL/Queries/Yosemite/schema.graphql"]

    New RCSB data-api request method

    • A new graphql query defined in src/RcsbGraphQL/Queries/Yosemite (e.g. QueryAssemblyInterfaces.graphql)
    • A new request class using rcsb-api-tools defined in src/RcsbGraphQL (e.g. RcsbQueryAssemblyInterfaces.ts)
    • A new method in the RcsbClient class defined in src/RcsbGraphQL/RcsbClient.ts (e.g. requestAssemblyInterfaces)
      • This method must used the request class defined above
    • A new collector class based on the request class in src/RcsbCollectTools/Translators (e.g. AssemblyInterfacesCollector)
      • This class must call the method defined above
      • This class may transform the RCSB data-api schema into a more convenient interface
    • A new translator class defined in src/RcsbUtils (e.g. AssemblyInterfacesTranslate)
      • The constructor gets the data collected by the above class
      • The class exposes the methods needs to provide the relationships between RCSB objects of different granularity
    • A new method in the RcsbRequestContextManager defined in src/RcsbFvWeb/RcsbFvBuilder
      • This method must avoid duplicate requests

    Contributing

    All contributions are welcome. Please, make a pull request or open an issue.

    License

    The MIT License

    Copyright (c) 2019 - now, RCSB PDB and contributors
    

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Install

    npm i @rcsb/rcsb-saguaro-app

    DownloadsWeekly Downloads

    948

    Version

    4.3.6

    License

    MIT

    Unpacked Size

    22.7 MB

    Total Files

    167

    Last publish

    Collaborators

    • chunxiao.bi
    • ingvord
    • robert.lowe
    • bioinsilico
    • yana.rose
    • sebastian.bittrich