cheminee 0.1.39 → 0.1.42
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 +16 -14
- data/README.md +6 -5
- data/cheminee.gemspec +1 -1
- data/docs/DefaultApi.md +85 -8
- data/lib/cheminee/api/default_api.rb +92 -9
- data/lib/cheminee/api_client.rb +1 -1
- data/lib/cheminee/api_error.rb +1 -1
- data/lib/cheminee/configuration.rb +1 -1
- data/lib/cheminee/models/bulk_request.rb +1 -1
- data/lib/cheminee/models/bulk_request_doc.rb +1 -1
- data/lib/cheminee/models/converted_mol_block.rb +1 -1
- data/lib/cheminee/models/converted_smiles.rb +1 -1
- data/lib/cheminee/models/create_index_error.rb +1 -1
- data/lib/cheminee/models/delete_index_bulk_response_error.rb +1 -1
- data/lib/cheminee/models/delete_index_bulk_response_ok.rb +1 -1
- data/lib/cheminee/models/delete_index_bulk_response_ok_status.rb +1 -1
- data/lib/cheminee/models/delete_index_error.rb +1 -1
- data/lib/cheminee/models/get_indexes_response_error.rb +1 -1
- data/lib/cheminee/models/index_meta.rb +1 -1
- data/lib/cheminee/models/index_schema.rb +1 -1
- data/lib/cheminee/models/list_index_response_err.rb +1 -1
- data/lib/cheminee/models/mol_block.rb +1 -1
- data/lib/cheminee/models/post_index_bulk_response_error.rb +1 -1
- data/lib/cheminee/models/post_index_bulk_response_ok.rb +1 -1
- data/lib/cheminee/models/post_index_bulk_response_ok_status.rb +1 -1
- data/lib/cheminee/models/query_response_error.rb +1 -1
- data/lib/cheminee/models/query_search_hit.rb +1 -1
- data/lib/cheminee/models/schema.rb +1 -1
- data/lib/cheminee/models/smiles.rb +1 -1
- data/lib/cheminee/models/standardized_smiles.rb +1 -1
- data/lib/cheminee/models/structure_response_error.rb +1 -1
- data/lib/cheminee/models/structure_search_hit.rb +1 -1
- data/lib/cheminee/version.rb +2 -2
- data/lib/cheminee.rb +1 -1
- data/pkg/cheminee-0.1.42.gem +0 -0
- data/spec/spec_helper.rb +1 -1
- metadata +3 -3
- data/pkg/cheminee-0.1.39.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: 83435006cac3df9105f62675a82916dac23f845813fd867071fefa3a77c69de3
|
|
4
|
+
data.tar.gz: c99f1dbea31b1b333b1d116755ffded83c10f16b3d61af2735bf4e8749a55a5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c57ad813653acc2e1c35b82b8d7098597916a08da1bff22f40b737307504101f2b220a7128f04aac3d5d66d8acc532bd9080c4194f8e645816fe62a922758b98
|
|
7
|
+
data.tar.gz: 700c288dae20a1ba29b9a2c53d156d49616fd08d953ad933acda97a8b633a883b2204b5fdad4e59721c99825b4e4405a372fc21d7e2b757f54a5623cd7bdbffa
|
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.42)
|
|
5
5
|
faraday (>= 1.0.1, < 3.0)
|
|
6
6
|
faraday-multipart
|
|
7
7
|
marcel
|
|
@@ -12,25 +12,26 @@ GEM
|
|
|
12
12
|
ast (2.4.2)
|
|
13
13
|
byebug (11.1.3)
|
|
14
14
|
coderay (1.1.3)
|
|
15
|
+
date (3.4.1)
|
|
15
16
|
diff-lcs (1.5.1)
|
|
16
|
-
faraday (2.12.
|
|
17
|
-
faraday-net_http (>= 2.0, < 3.
|
|
17
|
+
faraday (2.12.1)
|
|
18
|
+
faraday-net_http (>= 2.0, < 3.5)
|
|
18
19
|
json
|
|
19
20
|
logger
|
|
20
21
|
faraday-multipart (1.0.4)
|
|
21
22
|
multipart-post (~> 2)
|
|
22
|
-
faraday-net_http (3.
|
|
23
|
-
net-http
|
|
23
|
+
faraday-net_http (3.4.0)
|
|
24
|
+
net-http (>= 0.5.0)
|
|
24
25
|
jaro_winkler (1.5.6)
|
|
25
|
-
json (2.
|
|
26
|
-
logger (1.6.
|
|
26
|
+
json (2.9.0)
|
|
27
|
+
logger (1.6.2)
|
|
27
28
|
marcel (1.0.4)
|
|
28
29
|
method_source (1.1.0)
|
|
29
30
|
multipart-post (2.4.1)
|
|
30
|
-
net-http (0.
|
|
31
|
+
net-http (0.6.0)
|
|
31
32
|
uri
|
|
32
33
|
parallel (1.26.3)
|
|
33
|
-
parser (3.3.
|
|
34
|
+
parser (3.3.6.0)
|
|
34
35
|
ast (~> 2.4.1)
|
|
35
36
|
racc
|
|
36
37
|
pry (0.14.2)
|
|
@@ -39,7 +40,8 @@ GEM
|
|
|
39
40
|
pry-byebug (3.10.1)
|
|
40
41
|
byebug (~> 11.0)
|
|
41
42
|
pry (>= 0.13, < 0.15)
|
|
42
|
-
psych (5.1
|
|
43
|
+
psych (5.2.1)
|
|
44
|
+
date
|
|
43
45
|
stringio
|
|
44
46
|
racc (1.8.1)
|
|
45
47
|
rainbow (3.1.1)
|
|
@@ -48,7 +50,7 @@ GEM
|
|
|
48
50
|
rspec-core (~> 3.13.0)
|
|
49
51
|
rspec-expectations (~> 3.13.0)
|
|
50
52
|
rspec-mocks (~> 3.13.0)
|
|
51
|
-
rspec-core (3.13.
|
|
53
|
+
rspec-core (3.13.2)
|
|
52
54
|
rspec-support (~> 3.13.0)
|
|
53
55
|
rspec-expectations (3.13.3)
|
|
54
56
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
@@ -56,7 +58,7 @@ GEM
|
|
|
56
58
|
rspec-mocks (3.13.2)
|
|
57
59
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
60
|
rspec-support (~> 3.13.0)
|
|
59
|
-
rspec-support (3.13.
|
|
61
|
+
rspec-support (3.13.2)
|
|
60
62
|
rubocop (0.66.0)
|
|
61
63
|
jaro_winkler (~> 1.5.1)
|
|
62
64
|
parallel (~> 1.10)
|
|
@@ -66,9 +68,9 @@ GEM
|
|
|
66
68
|
ruby-progressbar (~> 1.7)
|
|
67
69
|
unicode-display_width (>= 1.4.0, < 1.6)
|
|
68
70
|
ruby-progressbar (1.13.0)
|
|
69
|
-
stringio (3.1.
|
|
71
|
+
stringio (3.1.2)
|
|
70
72
|
unicode-display_width (1.5.0)
|
|
71
|
-
uri (0.
|
|
73
|
+
uri (1.0.2)
|
|
72
74
|
|
|
73
75
|
PLATFORMS
|
|
74
76
|
x86_64-linux
|
data/README.md
CHANGED
|
@@ -7,8 +7,8 @@ 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.
|
|
11
|
-
- Generator version: 7.
|
|
10
|
+
- Package version: 0.1.42
|
|
11
|
+
- Generator version: 7.11.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)
|
|
14
14
|
|
|
@@ -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.42.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.42.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.42'
|
|
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_post**](docs/DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | Create an index
|
|
90
90
|
*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
|
|
91
91
|
*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
|
|
92
|
+
*Cheminee::DefaultApi* | [**v1_indexes_index_search_similarity_get**](docs/DefaultApi.md#v1_indexes_index_search_similarity_get) | **GET** /v1/indexes/{index}/search/similarity | Perform similarity search against index
|
|
92
93
|
*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
|
|
93
94
|
*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
|
|
94
95
|
*Cheminee::DefaultApi* | [**v1_schemas_get**](docs/DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas | List schemas available for creating indexes
|
data/cheminee.gemspec
CHANGED
data/docs/DefaultApi.md
CHANGED
|
@@ -15,6 +15,7 @@ All URIs are relative to *http://localhost:4001/api*
|
|
|
15
15
|
| [**v1_indexes_index_post**](DefaultApi.md#v1_indexes_index_post) | **POST** /v1/indexes/{index} | Create an index |
|
|
16
16
|
| [**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 |
|
|
17
17
|
| [**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 |
|
|
18
|
+
| [**v1_indexes_index_search_similarity_get**](DefaultApi.md#v1_indexes_index_search_similarity_get) | **GET** /v1/indexes/{index}/search/similarity | Perform similarity search against index |
|
|
18
19
|
| [**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 |
|
|
19
20
|
| [**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 |
|
|
20
21
|
| [**v1_schemas_get**](DefaultApi.md#v1_schemas_get) | **GET** /v1/schemas | List schemas available for creating indexes |
|
|
@@ -668,9 +669,9 @@ api_instance = Cheminee::DefaultApi.new
|
|
|
668
669
|
index = 'index_example' # String |
|
|
669
670
|
smiles = 'smiles_example' # String |
|
|
670
671
|
opts = {
|
|
671
|
-
use_chirality:
|
|
672
|
+
use_chirality: true, # Boolean |
|
|
672
673
|
extra_query: 'extra_query_example', # String |
|
|
673
|
-
use_scaffolds:
|
|
674
|
+
use_scaffolds: true # Boolean |
|
|
674
675
|
}
|
|
675
676
|
|
|
676
677
|
begin
|
|
@@ -706,9 +707,85 @@ end
|
|
|
706
707
|
| ---- | ---- | ----------- | ----- |
|
|
707
708
|
| **index** | **String** | | |
|
|
708
709
|
| **smiles** | **String** | | |
|
|
709
|
-
| **use_chirality** | **
|
|
710
|
+
| **use_chirality** | **Boolean** | | [optional] |
|
|
711
|
+
| **extra_query** | **String** | | [optional] |
|
|
712
|
+
| **use_scaffolds** | **Boolean** | | [optional] |
|
|
713
|
+
|
|
714
|
+
### Return type
|
|
715
|
+
|
|
716
|
+
[**Array<StructureSearchHit>**](StructureSearchHit.md)
|
|
717
|
+
|
|
718
|
+
### Authorization
|
|
719
|
+
|
|
720
|
+
No authorization required
|
|
721
|
+
|
|
722
|
+
### HTTP request headers
|
|
723
|
+
|
|
724
|
+
- **Content-Type**: Not defined
|
|
725
|
+
- **Accept**: application/json
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
## v1_indexes_index_search_similarity_get
|
|
729
|
+
|
|
730
|
+
> <Array<StructureSearchHit>> v1_indexes_index_search_similarity_get(index, smiles, opts)
|
|
731
|
+
|
|
732
|
+
Perform similarity search against index
|
|
733
|
+
|
|
734
|
+
### Examples
|
|
735
|
+
|
|
736
|
+
```ruby
|
|
737
|
+
require 'time'
|
|
738
|
+
require 'cheminee'
|
|
739
|
+
|
|
740
|
+
api_instance = Cheminee::DefaultApi.new
|
|
741
|
+
index = 'index_example' # String |
|
|
742
|
+
smiles = 'smiles_example' # String |
|
|
743
|
+
opts = {
|
|
744
|
+
result_limit: 56, # Integer |
|
|
745
|
+
tautomer_limit: 56, # Integer |
|
|
746
|
+
search_percent_limit: 3.4, # Float |
|
|
747
|
+
tanimoto_minimum: 3.4, # Float |
|
|
748
|
+
extra_query: 'extra_query_example' # String |
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
begin
|
|
752
|
+
# Perform similarity search against index
|
|
753
|
+
result = api_instance.v1_indexes_index_search_similarity_get(index, smiles, opts)
|
|
754
|
+
p result
|
|
755
|
+
rescue Cheminee::ApiError => e
|
|
756
|
+
puts "Error when calling DefaultApi->v1_indexes_index_search_similarity_get: #{e}"
|
|
757
|
+
end
|
|
758
|
+
```
|
|
759
|
+
|
|
760
|
+
#### Using the v1_indexes_index_search_similarity_get_with_http_info variant
|
|
761
|
+
|
|
762
|
+
This returns an Array which contains the response data, status code and headers.
|
|
763
|
+
|
|
764
|
+
> <Array(<Array<StructureSearchHit>>, Integer, Hash)> v1_indexes_index_search_similarity_get_with_http_info(index, smiles, opts)
|
|
765
|
+
|
|
766
|
+
```ruby
|
|
767
|
+
begin
|
|
768
|
+
# Perform similarity search against index
|
|
769
|
+
data, status_code, headers = api_instance.v1_indexes_index_search_similarity_get_with_http_info(index, smiles, opts)
|
|
770
|
+
p status_code # => 2xx
|
|
771
|
+
p headers # => { ... }
|
|
772
|
+
p data # => <Array<StructureSearchHit>>
|
|
773
|
+
rescue Cheminee::ApiError => e
|
|
774
|
+
puts "Error when calling DefaultApi->v1_indexes_index_search_similarity_get_with_http_info: #{e}"
|
|
775
|
+
end
|
|
776
|
+
```
|
|
777
|
+
|
|
778
|
+
### Parameters
|
|
779
|
+
|
|
780
|
+
| Name | Type | Description | Notes |
|
|
781
|
+
| ---- | ---- | ----------- | ----- |
|
|
782
|
+
| **index** | **String** | | |
|
|
783
|
+
| **smiles** | **String** | | |
|
|
784
|
+
| **result_limit** | **Integer** | | [optional] |
|
|
785
|
+
| **tautomer_limit** | **Integer** | | [optional] |
|
|
786
|
+
| **search_percent_limit** | **Float** | | [optional] |
|
|
787
|
+
| **tanimoto_minimum** | **Float** | | [optional] |
|
|
710
788
|
| **extra_query** | **String** | | [optional] |
|
|
711
|
-
| **use_scaffolds** | **String** | | [optional] |
|
|
712
789
|
|
|
713
790
|
### Return type
|
|
714
791
|
|
|
@@ -816,11 +893,11 @@ api_instance = Cheminee::DefaultApi.new
|
|
|
816
893
|
index = 'index_example' # String |
|
|
817
894
|
smiles = 'smiles_example' # String |
|
|
818
895
|
opts = {
|
|
819
|
-
use_chirality:
|
|
896
|
+
use_chirality: true, # Boolean |
|
|
820
897
|
result_limit: 56, # Integer |
|
|
821
898
|
tautomer_limit: 56, # Integer |
|
|
822
899
|
extra_query: 'extra_query_example', # String |
|
|
823
|
-
use_scaffolds:
|
|
900
|
+
use_scaffolds: true # Boolean |
|
|
824
901
|
}
|
|
825
902
|
|
|
826
903
|
begin
|
|
@@ -856,11 +933,11 @@ end
|
|
|
856
933
|
| ---- | ---- | ----------- | ----- |
|
|
857
934
|
| **index** | **String** | | |
|
|
858
935
|
| **smiles** | **String** | | |
|
|
859
|
-
| **use_chirality** | **
|
|
936
|
+
| **use_chirality** | **Boolean** | | [optional] |
|
|
860
937
|
| **result_limit** | **Integer** | | [optional] |
|
|
861
938
|
| **tautomer_limit** | **Integer** | | [optional] |
|
|
862
939
|
| **extra_query** | **String** | | [optional] |
|
|
863
|
-
| **use_scaffolds** | **
|
|
940
|
+
| **use_scaffolds** | **Boolean** | | [optional] |
|
|
864
941
|
|
|
865
942
|
### Return type
|
|
866
943
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0-SNAPSHOT
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -683,9 +683,9 @@ module Cheminee
|
|
|
683
683
|
# @param index [String]
|
|
684
684
|
# @param smiles [String]
|
|
685
685
|
# @param [Hash] opts the optional parameters
|
|
686
|
-
# @option opts [
|
|
686
|
+
# @option opts [Boolean] :use_chirality
|
|
687
687
|
# @option opts [String] :extra_query
|
|
688
|
-
# @option opts [
|
|
688
|
+
# @option opts [Boolean] :use_scaffolds
|
|
689
689
|
# @return [Array<StructureSearchHit>]
|
|
690
690
|
def v1_indexes_index_search_identity_get(index, smiles, opts = {})
|
|
691
691
|
data, _status_code, _headers = v1_indexes_index_search_identity_get_with_http_info(index, smiles, opts)
|
|
@@ -696,9 +696,9 @@ module Cheminee
|
|
|
696
696
|
# @param index [String]
|
|
697
697
|
# @param smiles [String]
|
|
698
698
|
# @param [Hash] opts the optional parameters
|
|
699
|
-
# @option opts [
|
|
699
|
+
# @option opts [Boolean] :use_chirality
|
|
700
700
|
# @option opts [String] :extra_query
|
|
701
|
-
# @option opts [
|
|
701
|
+
# @option opts [Boolean] :use_scaffolds
|
|
702
702
|
# @return [Array<(Array<StructureSearchHit>, Integer, Hash)>] Array<StructureSearchHit> data, response status code and response headers
|
|
703
703
|
def v1_indexes_index_search_identity_get_with_http_info(index, smiles, opts = {})
|
|
704
704
|
if @api_client.config.debugging
|
|
@@ -756,6 +756,89 @@ module Cheminee
|
|
|
756
756
|
return data, status_code, headers
|
|
757
757
|
end
|
|
758
758
|
|
|
759
|
+
# Perform similarity search against index
|
|
760
|
+
# @param index [String]
|
|
761
|
+
# @param smiles [String]
|
|
762
|
+
# @param [Hash] opts the optional parameters
|
|
763
|
+
# @option opts [Integer] :result_limit
|
|
764
|
+
# @option opts [Integer] :tautomer_limit
|
|
765
|
+
# @option opts [Float] :search_percent_limit
|
|
766
|
+
# @option opts [Float] :tanimoto_minimum
|
|
767
|
+
# @option opts [String] :extra_query
|
|
768
|
+
# @return [Array<StructureSearchHit>]
|
|
769
|
+
def v1_indexes_index_search_similarity_get(index, smiles, opts = {})
|
|
770
|
+
data, _status_code, _headers = v1_indexes_index_search_similarity_get_with_http_info(index, smiles, opts)
|
|
771
|
+
data
|
|
772
|
+
end
|
|
773
|
+
|
|
774
|
+
# Perform similarity search against index
|
|
775
|
+
# @param index [String]
|
|
776
|
+
# @param smiles [String]
|
|
777
|
+
# @param [Hash] opts the optional parameters
|
|
778
|
+
# @option opts [Integer] :result_limit
|
|
779
|
+
# @option opts [Integer] :tautomer_limit
|
|
780
|
+
# @option opts [Float] :search_percent_limit
|
|
781
|
+
# @option opts [Float] :tanimoto_minimum
|
|
782
|
+
# @option opts [String] :extra_query
|
|
783
|
+
# @return [Array<(Array<StructureSearchHit>, Integer, Hash)>] Array<StructureSearchHit> data, response status code and response headers
|
|
784
|
+
def v1_indexes_index_search_similarity_get_with_http_info(index, smiles, opts = {})
|
|
785
|
+
if @api_client.config.debugging
|
|
786
|
+
@api_client.config.logger.debug 'Calling API: DefaultApi.v1_indexes_index_search_similarity_get ...'
|
|
787
|
+
end
|
|
788
|
+
# verify the required parameter 'index' is set
|
|
789
|
+
if @api_client.config.client_side_validation && index.nil?
|
|
790
|
+
fail ArgumentError, "Missing the required parameter 'index' when calling DefaultApi.v1_indexes_index_search_similarity_get"
|
|
791
|
+
end
|
|
792
|
+
# verify the required parameter 'smiles' is set
|
|
793
|
+
if @api_client.config.client_side_validation && smiles.nil?
|
|
794
|
+
fail ArgumentError, "Missing the required parameter 'smiles' when calling DefaultApi.v1_indexes_index_search_similarity_get"
|
|
795
|
+
end
|
|
796
|
+
# resource path
|
|
797
|
+
local_var_path = '/v1/indexes/{index}/search/similarity'.sub('{' + 'index' + '}', CGI.escape(index.to_s))
|
|
798
|
+
|
|
799
|
+
# query parameters
|
|
800
|
+
query_params = opts[:query_params] || {}
|
|
801
|
+
query_params[:'smiles'] = smiles
|
|
802
|
+
query_params[:'result_limit'] = opts[:'result_limit'] if !opts[:'result_limit'].nil?
|
|
803
|
+
query_params[:'tautomer_limit'] = opts[:'tautomer_limit'] if !opts[:'tautomer_limit'].nil?
|
|
804
|
+
query_params[:'search_percent_limit'] = opts[:'search_percent_limit'] if !opts[:'search_percent_limit'].nil?
|
|
805
|
+
query_params[:'tanimoto_minimum'] = opts[:'tanimoto_minimum'] if !opts[:'tanimoto_minimum'].nil?
|
|
806
|
+
query_params[:'extra_query'] = opts[:'extra_query'] if !opts[:'extra_query'].nil?
|
|
807
|
+
|
|
808
|
+
# header parameters
|
|
809
|
+
header_params = opts[:header_params] || {}
|
|
810
|
+
# HTTP header 'Accept' (if needed)
|
|
811
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
812
|
+
|
|
813
|
+
# form parameters
|
|
814
|
+
form_params = opts[:form_params] || {}
|
|
815
|
+
|
|
816
|
+
# http body (model)
|
|
817
|
+
post_body = opts[:debug_body]
|
|
818
|
+
|
|
819
|
+
# return_type
|
|
820
|
+
return_type = opts[:debug_return_type] || 'Array<StructureSearchHit>'
|
|
821
|
+
|
|
822
|
+
# auth_names
|
|
823
|
+
auth_names = opts[:debug_auth_names] || []
|
|
824
|
+
|
|
825
|
+
new_options = opts.merge(
|
|
826
|
+
:operation => :"DefaultApi.v1_indexes_index_search_similarity_get",
|
|
827
|
+
:header_params => header_params,
|
|
828
|
+
:query_params => query_params,
|
|
829
|
+
:form_params => form_params,
|
|
830
|
+
:body => post_body,
|
|
831
|
+
:auth_names => auth_names,
|
|
832
|
+
:return_type => return_type
|
|
833
|
+
)
|
|
834
|
+
|
|
835
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
836
|
+
if @api_client.config.debugging
|
|
837
|
+
@api_client.config.logger.debug "API called: DefaultApi#v1_indexes_index_search_similarity_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
838
|
+
end
|
|
839
|
+
return data, status_code, headers
|
|
840
|
+
end
|
|
841
|
+
|
|
759
842
|
# Perform substructure search against index
|
|
760
843
|
# @param index [String]
|
|
761
844
|
# @param smiles [String]
|
|
@@ -843,11 +926,11 @@ module Cheminee
|
|
|
843
926
|
# @param index [String]
|
|
844
927
|
# @param smiles [String]
|
|
845
928
|
# @param [Hash] opts the optional parameters
|
|
846
|
-
# @option opts [
|
|
929
|
+
# @option opts [Boolean] :use_chirality
|
|
847
930
|
# @option opts [Integer] :result_limit
|
|
848
931
|
# @option opts [Integer] :tautomer_limit
|
|
849
932
|
# @option opts [String] :extra_query
|
|
850
|
-
# @option opts [
|
|
933
|
+
# @option opts [Boolean] :use_scaffolds
|
|
851
934
|
# @return [Array<StructureSearchHit>]
|
|
852
935
|
def v1_indexes_index_search_superstructure_get(index, smiles, opts = {})
|
|
853
936
|
data, _status_code, _headers = v1_indexes_index_search_superstructure_get_with_http_info(index, smiles, opts)
|
|
@@ -858,11 +941,11 @@ module Cheminee
|
|
|
858
941
|
# @param index [String]
|
|
859
942
|
# @param smiles [String]
|
|
860
943
|
# @param [Hash] opts the optional parameters
|
|
861
|
-
# @option opts [
|
|
944
|
+
# @option opts [Boolean] :use_chirality
|
|
862
945
|
# @option opts [Integer] :result_limit
|
|
863
946
|
# @option opts [Integer] :tautomer_limit
|
|
864
947
|
# @option opts [String] :extra_query
|
|
865
|
-
# @option opts [
|
|
948
|
+
# @option opts [Boolean] :use_scaffolds
|
|
866
949
|
# @return [Array<(Array<StructureSearchHit>, Integer, Hash)>] Array<StructureSearchHit> data, response status code and response headers
|
|
867
950
|
def v1_indexes_index_search_superstructure_get_with_http_info(index, smiles, opts = {})
|
|
868
951
|
if @api_client.config.debugging
|
data/lib/cheminee/api_client.rb
CHANGED
data/lib/cheminee/api_error.rb
CHANGED
data/lib/cheminee/version.rb
CHANGED
data/lib/cheminee.rb
CHANGED
|
Binary file
|
data/spec/spec_helper.rb
CHANGED
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.42
|
|
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-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -154,7 +154,7 @@ files:
|
|
|
154
154
|
- lib/cheminee/version.rb
|
|
155
155
|
- openapi-generator-config.json
|
|
156
156
|
- openapi.json
|
|
157
|
-
- pkg/cheminee-0.1.
|
|
157
|
+
- pkg/cheminee-0.1.42.gem
|
|
158
158
|
- spec/api/default_api_spec.rb
|
|
159
159
|
- spec/api_client_spec.rb
|
|
160
160
|
- spec/configuration_spec.rb
|
data/pkg/cheminee-0.1.39.gem
DELETED
|
Binary file
|