npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/ideaconsult_enanomapper

v3.0.0

Published

DataFire integration for eNanoMapper database

Downloads

3

Readme

@datafire/ideaconsult_enanomapper

Client library for eNanoMapper database

Installation and Usage

npm install --save @datafire/ideaconsult_enanomapper
let ideaconsult_enanomapper = require('@datafire/ideaconsult_enanomapper').create();

.then(data => {
  console.log(data);
});

Description

AMBIT REST web services [eNanoMapper profile] with free text & faceted search

Actions

getInvestigationResults

Multiple studies in tabular form

ideaconsult_enanomapper.getInvestigationResults({
  "db": "",
  "type": "",
  "search": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • type required string (values: byinvestigation, byassay, bysubstance, byprovider, bycitation, bystudytype, bystructure_inchikey, bystructure_smiles, bystructure_name, bysubstance_name, bysubstance_type): query type
    • search required string: Search parameter, UUID of the investigation or a substance
    • inchikey string: Search parameter, InChI key(s) of the substance component(s), comma delimited
    • id string: Search parameter, chemical structure or substance identifier(s), comma delimited
    • page integer: Starting page
    • pagesize integer: Page size

Output

searchByIdentifier

Returns compounds found

ideaconsult_enanomapper.searchByIdentifier({
  "db": "",
  "term": "",
  "representation": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • term required string (values: search, url, inchikey): search term type
    • representation required string (values: all, smiles, reach, stdinchi, stdinchikey, names, iupac_name, synonym, cas, einecs)
    • search string: Compound identifier (SMILES, InChI, name, registry identifiers)
    • b64search string: Base64 encoded mol file; if included, will be used instead of the 'search' parameter
    • casesens boolean: Case sensitive search if yes
    • bundle_uri string: Bundle URI
    • sameas string: Ontology URI to define groups of columns
    • page integer: Starting page
    • pagesize integer: Page size

Output

searchBySimilarity

Returns similar compounds

ideaconsult_enanomapper.searchBySimilarity({
  "db": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • search string: Compound identifier (SMILES, InChI, name, registry identifiers)
    • b64search string: Base64 encoded mol file; if included, will be used instead of the 'search' parameter
    • type string (values: smiles, mol, url): Defines the expected content of the search parameter
    • threshold number: Similarity threshold
    • dataset_uri string: Restrict the search within the AMBIT dataset specified with the URI
    • filterBySubstance boolean: Restrict the search within the set of structures with assigned substances
    • bundle_uri string: If the structure is used in the specified bundle URI, the selection tag will be returned
    • sameas string: Ontology URI to define groups of columns
    • mol boolean: Only for application/json; to include mol as JSON field
    • page integer: Starting page
    • pagesize integer: Page size

Output

searchBySmarts

Returns compounds with the specified substructure

ideaconsult_enanomapper.searchBySmarts({
  "db": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • search string: Compound identifier (SMILES, InChI, name, registry identifiers)
    • b64search string: Base64 encoded mol file; if included, will be used instead of the 'search' parameter
    • type string (values: smiles, mol, url): Defines the expected content of the search parameter
    • dataset_uri string: Restrict the search within the AMBIT dataset specified with the URI
    • filterBySubstance boolean: Restrict the search within the set of structures with assigned substances
    • bundle_uri string: If the structure is used in the specified bundle URI, the selection tag will be returned
    • sameas string: Ontology URI to define groups of columns
    • mol boolean: Only for application/json; to include mol as JSON field
    • page integer: Starting page
    • pagesize integer: Page size

Output

getEndpointSummary

Returns endpoint summary

ideaconsult_enanomapper.getEndpointSummary({
  "db": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • top string (values: P-CHEM, ECOTOX, ENV FATE, TOX, EXPOSURE): Top endpoint category
    • category string: Endpoint category (The value in the protocol.category.code field)

Output

getSubstances

Returns a list of substances, according to the search criteria

ideaconsult_enanomapper.getSubstances({
  "db": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • search string: Search parameter
    • type string (values: substancetype, name, like, regexp, uuif, CompTox, DOI, reliability, purposeFlag, studyResultType, isRobustStudy, citation, citationowner, topcategory, endpointcategory, params, owner_name, owner_uuid, related, reference, facet)
    • compound_uri string: If type=related finds all substances containing this compound; if typ =reference - finds all substances with this compound as reference structure
    • bundle_uri string: Retrieves if selected in this bundle
    • addDummySubstance boolean: Adds a compound record as substance in JSON; only if type=related
    • studysummary boolean: If true retrieves study summary for each substance
    • page integer: Starting page
    • pagesize integer: Page size

Output

getSubstanceByUUID

Returns substance representation

ideaconsult_enanomapper.getSubstanceByUUID({
  "db": "",
  "uuid": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • uuid required string: Substance UUID
    • property_uris[] string: Property URIs
    • page integer: Starting page
    • pagesize integer: Page size

Output

getSubstanceComposition

Returns substance composition

ideaconsult_enanomapper.getSubstanceComposition({
  "db": "",
  "uuid": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • uuid required string: Substance UUID
    • all boolean: true (Show all compositions) false (do not show hidden compositions)
    • page integer: Starting page
    • pagesize integer: Page size

Output

getSubstanceStructures

Returns substance composition

ideaconsult_enanomapper.getSubstanceStructures({
  "db": "",
  "uuid": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • uuid required string: Substance UUID
    • page integer: Starting page
    • pagesize integer: Page size

Output

getSubstanceStudy

Returns substance study representation

ideaconsult_enanomapper.getSubstanceStudy({
  "db": "",
  "uuid": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • uuid required string: Substance UUID
    • top string (values: P-CHEM, ECOTOX, ENV FATE, TOX, EXPOSURE): Top endpoint category
    • category string: Endpoint category (The value in the protocol.category.code field)
    • property_uri string: Property URI https://data.enanomapper.net/property/{UUID} , see Property service
    • property string: Property UUID
    • investigation_uuid string: Investigation UUID, a code to link different studies
    • page integer: Starting page
    • pagesize integer: Page size

Output

getSubstanceStudySummary

Study summary

ideaconsult_enanomapper.getSubstanceStudySummary({
  "db": "",
  "uuid": ""
}, context)

Input

  • input object
    • db required string (values: calibrate, enanomapper, enpra, marina, nanogenotox, nanoinformatix, nanoreg1, nanoreg2, nanotest): Database ID
    • uuid required string: Substance UUID
    • top string (values: P-CHEM, ECOTOX, ENV FATE, TOX, EXPOSURE): Top endpoint category
    • category string: Endpoint category (The value in the protocol.category.code field)
    • property_uri string: Property URI https://data.enanomapper.net/property/{UUID} , see Property service
    • property string: Property UUID, see Property service
    • result boolean: If true will group by topcategory,endpointcategory,interpretation result
    • page integer: Starting page
    • pagesize integer: Page size

Output

solrquery_get

GET is simpler to use, but imposes restrictions on the complexity and the lenght of the parameters.

ideaconsult_enanomapper.solrquery_get({}, context)

Input

  • input object
    • q string: The query
    • fq string: Filter query
    • fl string: Field list
    • start integer: Starting page
    • rows integer: Page size
    • wt string (values: json, xml, csv): Response format

Output

solrquery_post

POST is more complex to use, but also allows for much for complex and lengthy queries.

ideaconsult_enanomapper.solrquery_post({}, context)

Input

  • input object
    • wt string (values: json, xml): Response format
    • body object
      • facet object
      • params object
        • fl array
          • items string
        • rows integer

Output

Definitions

Dataset

  • Dataset object
    • dataEntry object
    • feature object
    • model_uri string
    • query object

Facet

  • Facet object
    • facet object

Investigation

  • Investigation object
    • childDocuments object
    • assay string
    • document_uuid string
    • effectendpoint string
    • endpoint string
    • endpointcategory string
    • err number
    • errQualifier string
    • guidance string
    • investigation string
    • loQualifier string
    • loValue number
    • name string
    • owner_name string
    • publicname string
    • reference string
    • reference_owner string
    • reference_year string
    • resulttype string
    • s_uuid string
    • studyResultType string
    • substanceType string
    • textValue string
    • topcategory string
    • type_s string
    • unit string
    • upQualifier string
    • upValue number
    • updated string

SolrQuery

  • SolrQuery object
    • facet string
    • filter string
    • query string
    • rows integer
    • sort boolean
    • start integer

SolrResponse

  • SolrResponse object
    • response object
      • docs array
        • items object
      • maxScore number
      • numFound integer
      • start integer
    • responseHeader object
      • QTime integer
      • params object
      • status integer
      • zkConnected boolean

Substance

  • Substance object
    • substance object

SubstanceComposition

  • SubstanceComposition object
    • composition object
    • feature object

SubstanceStudy

  • SubstanceStudy object
    • study object

SubstanceStudySummary

  • SubstanceStudySummary object
    • facet object