cheminee 0.1.24 → 0.1.27
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +5 -4
- data/docs/DefaultApi.md +75 -0
- data/lib/cheminee/api/default_api.rb +80 -0
- data/lib/cheminee/version.rb +1 -1
- data/pkg/cheminee-0.1.27.gem +0 -0
- metadata +3 -3
- data/pkg/cheminee-0.1.24.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1854813d5d5cc1a12273452bcb85bd764aaba1e207b0f01ff6711760170c7a7
|
4
|
+
data.tar.gz: c7d934503260b73a59cdb3fa8674abc9fc9d000325b7700a96f170ad74b41a6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '086f9ad4eb1f0a0fc2d156e149eb7dfb05faac4385160bbba2c13dfd92bea2fe309626b23fee2e2371b47f56d1fe14f6fbc8c49b2c57b7c3d0f62a61ec56382b'
|
7
|
+
data.tar.gz: a5f079a0dea2c21e1cf9e8ff297df646658fd30af9b039ec039d12676ae66635c68bc65f9c1decc5beb80f856ff91e1b67f953cbe2cc854e6dcb99e22c28f960
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cheminee (0.1.
|
4
|
+
cheminee (0.1.27)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -16,8 +16,8 @@ GEM
|
|
16
16
|
ffi (1.17.0-x86_64-linux-gnu)
|
17
17
|
jaro_winkler (1.5.6)
|
18
18
|
method_source (1.1.0)
|
19
|
-
parallel (1.
|
20
|
-
parser (3.3.4.
|
19
|
+
parallel (1.26.2)
|
20
|
+
parser (3.3.4.2)
|
21
21
|
ast (~> 2.4.1)
|
22
22
|
racc
|
23
23
|
pry (0.14.2)
|
@@ -28,7 +28,7 @@ GEM
|
|
28
28
|
pry (>= 0.13, < 0.15)
|
29
29
|
psych (5.1.2)
|
30
30
|
stringio
|
31
|
-
racc (1.8.
|
31
|
+
racc (1.8.1)
|
32
32
|
rainbow (3.1.1)
|
33
33
|
rake (13.0.6)
|
34
34
|
rspec (3.13.0)
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Cheminée: The Chemical Structure Search Engine
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 1.0
|
10
|
-
- Package version: 0.1.
|
10
|
+
- Package version: 0.1.27
|
11
11
|
- Generator version: 7.8.0-SNAPSHOT
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
13
13
|
For more information, please visit [https://github.com/rdkit-rs/cheminee](https://github.com/rdkit-rs/cheminee)
|
@@ -25,16 +25,16 @@ gem build cheminee.gemspec
|
|
25
25
|
Then either install the gem locally:
|
26
26
|
|
27
27
|
```shell
|
28
|
-
gem install ./cheminee-0.1.
|
28
|
+
gem install ./cheminee-0.1.27.gem
|
29
29
|
```
|
30
30
|
|
31
|
-
(for development, run `gem install --dev ./cheminee-0.1.
|
31
|
+
(for development, run `gem install --dev ./cheminee-0.1.27.gem` to install the development dependencies)
|
32
32
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
34
34
|
|
35
35
|
Finally add this to the Gemfile:
|
36
36
|
|
37
|
-
gem 'cheminee', '~> 0.1.
|
37
|
+
gem 'cheminee', '~> 0.1.27'
|
38
38
|
|
39
39
|
### Install from Git
|
40
40
|
|
@@ -89,6 +89,7 @@ Class | Method | HTTP request | Description
|
|
89
89
|
*Cheminee::DefaultApi* | [**v1_indexes_index_search_basic_get**](docs/DefaultApi.md#v1_indexes_index_search_basic_get) | **GET** /v1/indexes/{index}/search/basic | Perform basic query search against index
|
90
90
|
*Cheminee::DefaultApi* | [**v1_indexes_index_search_identity_get**](docs/DefaultApi.md#v1_indexes_index_search_identity_get) | **GET** /v1/indexes/{index}/search/identity | Perform identity search (i.e. exact match) against index
|
91
91
|
*Cheminee::DefaultApi* | [**v1_indexes_index_search_substructure_get**](docs/DefaultApi.md#v1_indexes_index_search_substructure_get) | **GET** /v1/indexes/{index}/search/substructure | Perform substructure search against index
|
92
|
+
*Cheminee::DefaultApi* | [**v1_indexes_index_search_superstructure_get**](docs/DefaultApi.md#v1_indexes_index_search_superstructure_get) | **GET** /v1/indexes/{index}/search/superstructure | Perform superstructure search against index
|
92
93
|
*Cheminee::DefaultApi* | [**v1_schemas_get**](docs/DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas | List schemas available for creating indexes
|
93
94
|
*Cheminee::DefaultApi* | [**v1_standardize_post**](docs/DefaultApi.md#v1_standardize_post) | **POST** /v1/standardize | Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines
|
94
95
|
|
data/docs/DefaultApi.md
CHANGED
@@ -15,6 +15,7 @@ All URIs are relative to *http://localhost:4001/api*
|
|
15
15
|
| [**v1_indexes_index_search_basic_get**](DefaultApi.md#v1_indexes_index_search_basic_get) | **GET** /v1/indexes/{index}/search/basic | Perform basic query search against index |
|
16
16
|
| [**v1_indexes_index_search_identity_get**](DefaultApi.md#v1_indexes_index_search_identity_get) | **GET** /v1/indexes/{index}/search/identity | Perform identity search (i.e. exact match) against index |
|
17
17
|
| [**v1_indexes_index_search_substructure_get**](DefaultApi.md#v1_indexes_index_search_substructure_get) | **GET** /v1/indexes/{index}/search/substructure | Perform substructure search against index |
|
18
|
+
| [**v1_indexes_index_search_superstructure_get**](DefaultApi.md#v1_indexes_index_search_superstructure_get) | **GET** /v1/indexes/{index}/search/superstructure | Perform superstructure search against index |
|
18
19
|
| [**v1_schemas_get**](DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas | List schemas available for creating indexes |
|
19
20
|
| [**v1_standardize_post**](DefaultApi.md#v1_standardize_post) | **POST** /v1/standardize | Pass a list of SMILES through fragment_parent, uncharger, and canonicalization routines |
|
20
21
|
|
@@ -736,6 +737,80 @@ No authorization required
|
|
736
737
|
- **Accept**: application/json; charset=utf-8
|
737
738
|
|
738
739
|
|
740
|
+
## v1_indexes_index_search_superstructure_get
|
741
|
+
|
742
|
+
> <Array<StructureSearchHit>> v1_indexes_index_search_superstructure_get(index, smiles, opts)
|
743
|
+
|
744
|
+
Perform superstructure search against index
|
745
|
+
|
746
|
+
### Examples
|
747
|
+
|
748
|
+
```ruby
|
749
|
+
require 'time'
|
750
|
+
require 'cheminee'
|
751
|
+
|
752
|
+
api_instance = Cheminee::DefaultApi.new
|
753
|
+
index = 'index_example' # String |
|
754
|
+
smiles = 'smiles_example' # String |
|
755
|
+
opts = {
|
756
|
+
result_limit: 56, # Integer |
|
757
|
+
tautomer_limit: 56, # Integer |
|
758
|
+
extra_query: 'extra_query_example', # String |
|
759
|
+
use_scaffolds: 'use_scaffolds_example' # String |
|
760
|
+
}
|
761
|
+
|
762
|
+
begin
|
763
|
+
# Perform superstructure search against index
|
764
|
+
result = api_instance.v1_indexes_index_search_superstructure_get(index, smiles, opts)
|
765
|
+
p result
|
766
|
+
rescue Cheminee::ApiError => e
|
767
|
+
puts "Error when calling DefaultApi->v1_indexes_index_search_superstructure_get: #{e}"
|
768
|
+
end
|
769
|
+
```
|
770
|
+
|
771
|
+
#### Using the v1_indexes_index_search_superstructure_get_with_http_info variant
|
772
|
+
|
773
|
+
This returns an Array which contains the response data, status code and headers.
|
774
|
+
|
775
|
+
> <Array(<Array<StructureSearchHit>>, Integer, Hash)> v1_indexes_index_search_superstructure_get_with_http_info(index, smiles, opts)
|
776
|
+
|
777
|
+
```ruby
|
778
|
+
begin
|
779
|
+
# Perform superstructure search against index
|
780
|
+
data, status_code, headers = api_instance.v1_indexes_index_search_superstructure_get_with_http_info(index, smiles, opts)
|
781
|
+
p status_code # => 2xx
|
782
|
+
p headers # => { ... }
|
783
|
+
p data # => <Array<StructureSearchHit>>
|
784
|
+
rescue Cheminee::ApiError => e
|
785
|
+
puts "Error when calling DefaultApi->v1_indexes_index_search_superstructure_get_with_http_info: #{e}"
|
786
|
+
end
|
787
|
+
```
|
788
|
+
|
789
|
+
### Parameters
|
790
|
+
|
791
|
+
| Name | Type | Description | Notes |
|
792
|
+
| ---- | ---- | ----------- | ----- |
|
793
|
+
| **index** | **String** | | |
|
794
|
+
| **smiles** | **String** | | |
|
795
|
+
| **result_limit** | **Integer** | | [optional] |
|
796
|
+
| **tautomer_limit** | **Integer** | | [optional] |
|
797
|
+
| **extra_query** | **String** | | [optional] |
|
798
|
+
| **use_scaffolds** | **String** | | [optional] |
|
799
|
+
|
800
|
+
### Return type
|
801
|
+
|
802
|
+
[**Array<StructureSearchHit>**](StructureSearchHit.md)
|
803
|
+
|
804
|
+
### Authorization
|
805
|
+
|
806
|
+
No authorization required
|
807
|
+
|
808
|
+
### HTTP request headers
|
809
|
+
|
810
|
+
- **Content-Type**: Not defined
|
811
|
+
- **Accept**: application/json; charset=utf-8
|
812
|
+
|
813
|
+
|
739
814
|
## v1_schemas_get
|
740
815
|
|
741
816
|
> <Array<Schema>> v1_schemas_get
|
@@ -775,6 +775,86 @@ module Cheminee
|
|
775
775
|
return data, status_code, headers
|
776
776
|
end
|
777
777
|
|
778
|
+
# Perform superstructure search against index
|
779
|
+
# @param index [String]
|
780
|
+
# @param smiles [String]
|
781
|
+
# @param [Hash] opts the optional parameters
|
782
|
+
# @option opts [Integer] :result_limit
|
783
|
+
# @option opts [Integer] :tautomer_limit
|
784
|
+
# @option opts [String] :extra_query
|
785
|
+
# @option opts [String] :use_scaffolds
|
786
|
+
# @return [Array<StructureSearchHit>]
|
787
|
+
def v1_indexes_index_search_superstructure_get(index, smiles, opts = {})
|
788
|
+
data, _status_code, _headers = v1_indexes_index_search_superstructure_get_with_http_info(index, smiles, opts)
|
789
|
+
data
|
790
|
+
end
|
791
|
+
|
792
|
+
# Perform superstructure search against index
|
793
|
+
# @param index [String]
|
794
|
+
# @param smiles [String]
|
795
|
+
# @param [Hash] opts the optional parameters
|
796
|
+
# @option opts [Integer] :result_limit
|
797
|
+
# @option opts [Integer] :tautomer_limit
|
798
|
+
# @option opts [String] :extra_query
|
799
|
+
# @option opts [String] :use_scaffolds
|
800
|
+
# @return [Array<(Array<StructureSearchHit>, Integer, Hash)>] Array<StructureSearchHit> data, response status code and response headers
|
801
|
+
def v1_indexes_index_search_superstructure_get_with_http_info(index, smiles, opts = {})
|
802
|
+
if @api_client.config.debugging
|
803
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_indexes_index_search_superstructure_get ...'
|
804
|
+
end
|
805
|
+
# verify the required parameter 'index' is set
|
806
|
+
if @api_client.config.client_side_validation && index.nil?
|
807
|
+
fail ArgumentError, "Missing the required parameter 'index' when calling DefaultApi.v1_indexes_index_search_superstructure_get"
|
808
|
+
end
|
809
|
+
# verify the required parameter 'smiles' is set
|
810
|
+
if @api_client.config.client_side_validation && smiles.nil?
|
811
|
+
fail ArgumentError, "Missing the required parameter 'smiles' when calling DefaultApi.v1_indexes_index_search_superstructure_get"
|
812
|
+
end
|
813
|
+
# resource path
|
814
|
+
local_var_path = '/v1/indexes/{index}/search/superstructure'.sub('{' + 'index' + '}', CGI.escape(index.to_s))
|
815
|
+
|
816
|
+
# query parameters
|
817
|
+
query_params = opts[:query_params] || {}
|
818
|
+
query_params[:'smiles'] = smiles
|
819
|
+
query_params[:'result_limit'] = opts[:'result_limit'] if !opts[:'result_limit'].nil?
|
820
|
+
query_params[:'tautomer_limit'] = opts[:'tautomer_limit'] if !opts[:'tautomer_limit'].nil?
|
821
|
+
query_params[:'extra_query'] = opts[:'extra_query'] if !opts[:'extra_query'].nil?
|
822
|
+
query_params[:'use_scaffolds'] = opts[:'use_scaffolds'] if !opts[:'use_scaffolds'].nil?
|
823
|
+
|
824
|
+
# header parameters
|
825
|
+
header_params = opts[:header_params] || {}
|
826
|
+
# HTTP header 'Accept' (if needed)
|
827
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8']) unless header_params['Accept']
|
828
|
+
|
829
|
+
# form parameters
|
830
|
+
form_params = opts[:form_params] || {}
|
831
|
+
|
832
|
+
# http body (model)
|
833
|
+
post_body = opts[:debug_body]
|
834
|
+
|
835
|
+
# return_type
|
836
|
+
return_type = opts[:debug_return_type] || 'Array<StructureSearchHit>'
|
837
|
+
|
838
|
+
# auth_names
|
839
|
+
auth_names = opts[:debug_auth_names] || []
|
840
|
+
|
841
|
+
new_options = opts.merge(
|
842
|
+
:operation => :"DefaultApi.v1_indexes_index_search_superstructure_get",
|
843
|
+
:header_params => header_params,
|
844
|
+
:query_params => query_params,
|
845
|
+
:form_params => form_params,
|
846
|
+
:body => post_body,
|
847
|
+
:auth_names => auth_names,
|
848
|
+
:return_type => return_type
|
849
|
+
)
|
850
|
+
|
851
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
852
|
+
if @api_client.config.debugging
|
853
|
+
@api_client.config.logger.debug "API called: DefaultApi#v1_indexes_index_search_superstructure_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
854
|
+
end
|
855
|
+
return data, status_code, headers
|
856
|
+
end
|
857
|
+
|
778
858
|
# List schemas available for creating indexes
|
779
859
|
# @param [Hash] opts the optional parameters
|
780
860
|
# @return [Array<Schema>]
|
data/lib/cheminee/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheminee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xavier Lange
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -126,7 +126,7 @@ files:
|
|
126
126
|
- lib/cheminee/version.rb
|
127
127
|
- openapi-generator-config.json
|
128
128
|
- openapi.json
|
129
|
-
- pkg/cheminee-0.1.
|
129
|
+
- pkg/cheminee-0.1.27.gem
|
130
130
|
- spec/api/default_api_spec.rb
|
131
131
|
- spec/api_client_spec.rb
|
132
132
|
- spec/configuration_spec.rb
|
data/pkg/cheminee-0.1.24.gem
DELETED
Binary file
|