Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • chemical_checker chemical_checker
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Packages
  • chemical_checkerchemical_checker
  • Wiki
  • access to data

Last edited by Miquel Duran-Frigola Nov 09, 2018
Page history

access to data

Access to data

The CC resource provides a very simple API to query the data within the resource. In brief, the API facilitates the following:

  • Given one or more inchikeys:
  • It lists the corresponding datasets.
  • It returns the InChI structure(s).
  • If a dataset is specified, it returns the signatures (sign*) or vectorial data (neig*, clus*, etc.) of choice.
  • Given one or more datasets:
  • It lists the corresponding inchikeys.
  • It returns the signatures (sign*) or vectorial data (neig*, clus*, etc.) of choice.
  • It deletes the dataset from the resource (might be convenient when we are testing datasets).
  • Given one or more levels or coordinates:
  • It lists the corresponding datasets.
  • It indicates the exemplar dataset(s).

Eventually, this package should be able to perform predict() methods, but this will not happen in the near future.

Installation

To install the chemicalchecker package, simply do:

pip install --index http://devpi.sbnb.org:3141/root/prod/ chemicalchecker

Usage

⚠ I haven't thought about this part too much, yet. So this is a very preliminary proposal. It is just to get an idea.

Focusing on one molecule

Let's get started by simply fetching 2D chemical information for a molecule of interest.

import chemicalchecker as cc

ik = "RZVAJINKPMORJF-UHFFFAOYSA-N"

cc.fetch(inchikey = ik, dataset = "A1.001", type = "sign1")

To directly extract the exemplary signature, we may simply do:

cc.fetch(inchikey = ik, dataset = "A1", type = "sign1")

Focusing on one dataset

Now let's focus on a certain dataset of interest. Say, for instance, that we want signatures of type 2.

ds = "B1.001"

cc.fetch(dataset = ds, type = "sign2")
Clone repository
  • access to data
  • data
  • database
  • dataset correlation
  • datasets
  • Home
  • libraries
  • package
  • pipeline
  • production phase
  • publications
  • signaturization code
  • signaturization
  • similarity and connectivity
  • supervised
View All Pages