Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cheminee

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheminee

  • 0.1.47
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

cheminee

Cheminee - the Ruby gem for the Cheminée

Cheminée: The Chemical Structure Search Engine

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 0.1.47
  • Generator version: 7.11.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://github.com/rdkit-rs/cheminee

Installation

Build a gem

To build the Ruby code into a gem:

gem build cheminee.gemspec

Then either install the gem locally:

gem install ./cheminee-0.1.47.gem

(for development, run gem install --dev ./cheminee-0.1.47.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'cheminee', '~> 0.1.47'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'cheminee', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'cheminee'

api_instance = Cheminee::DefaultApi.new
sanitize = 'sanitize_example' # String | 
mol_block = [Cheminee::MolBlock.new({mol_block: 'mol_block_example'})] # Array<MolBlock> | 

begin
  #Convert a list of SMILES to molblocks
  result = api_instance.v1_convert_mol_block_to_smiles_post(sanitize, mol_block)
  p result
rescue Cheminee::ApiError => e
  puts "Exception when calling DefaultApi->v1_convert_mol_block_to_smiles_post: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://localhost:4001/api

ClassMethodHTTP requestDescription
Cheminee::DefaultApiv1_convert_mol_block_to_smiles_postPOST /v1/convert/mol_block_to_smilesConvert a list of SMILES to molblocks
Cheminee::DefaultApiv1_convert_smiles_to_mol_block_postPOST /v1/convert/smiles_to_mol_blockConvert a list of molblocks to SMILES
Cheminee::DefaultApiv1_indexes_getGET /v1/indexesList indexes
Cheminee::DefaultApiv1_indexes_index_bulk_delete_deleteDELETE /v1/indexes/{index}/bulk_deleteDelete a list of smiles (after standardization) from an index
Cheminee::DefaultApiv1_indexes_index_bulk_index_postPOST /v1/indexes/{index}/bulk_indexIndex a list of SMILES and associated, free-form JSON attributes which are indexed and searchable
Cheminee::DefaultApiv1_indexes_index_deleteDELETE /v1/indexes/{index}Delete an index
Cheminee::DefaultApiv1_indexes_index_getGET /v1/indexes/{index}Get extended information about an index
Cheminee::DefaultApiv1_indexes_index_merge_postPOST /v1/indexes/{index}/mergeMerge segments inside the index
Cheminee::DefaultApiv1_indexes_index_postPOST /v1/indexes/{index}Create an index
Cheminee::DefaultApiv1_indexes_index_search_basic_getGET /v1/indexes/{index}/search/basicPerform basic query search against index
Cheminee::DefaultApiv1_indexes_index_search_identity_getGET /v1/indexes/{index}/search/identityPerform identity search (i.e. exact match) against index
Cheminee::DefaultApiv1_indexes_index_search_similarity_getGET /v1/indexes/{index}/search/similarityPerform similarity search against index
Cheminee::DefaultApiv1_indexes_index_search_substructure_getGET /v1/indexes/{index}/search/substructurePerform substructure search against index
Cheminee::DefaultApiv1_indexes_index_search_superstructure_getGET /v1/indexes/{index}/search/superstructurePerform superstructure search against index
Cheminee::DefaultApiv1_schemas_getGET /v1/schemasList schemas available for creating indexes
Cheminee::DefaultApiv1_standardize_postPOST /v1/standardizePass a list of SMILES through fragment_parent, uncharger, and canonicalization routines

Documentation for Models

Documentation for Authorization

Endpoints do not require authorization.

FAQs

Package last updated on 10 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc