pharmaobservatory 0.1.15 → 0.1.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a650a5fbd88e22cb8d5944c1e9c073f6e75e8f46131279503c697121a04a1177
4
- data.tar.gz: d8dcdc1cc45826be2f252ed87abe4930db581a3eb54ced7818fa43adea3adc8f
3
+ metadata.gz: 03c4abc97aafe0b83c5f85d72327900c0462a451669d3aec461ff954067450ac
4
+ data.tar.gz: 5e7b931706e50713c1388654410272353b6f67b2d2016d714db218b13381b05f
5
5
  SHA512:
6
- metadata.gz: 72a290819dfd7700dd187078be04f0644df2c5e84fc945c5e0a1e28eb521015ea085ea76b9c8fbaf1529d3e8c84367a8afcd4d9537c894dfede3a5f883880935
7
- data.tar.gz: c76fc84201c4c5d1eeb8a910665d42eadcea0983d89d2e17f5c1f0069af3421417aaadd9a43771e8ccd1f8f01481f86df61d4b38cda72f9cd2d65be6d8e9f77e
6
+ metadata.gz: 96dd0dd29834a7aed19b1f86ab0bdf33b778ea0ce2178b961018ec16ed738f794050d274d376e5596786b8039c63e6c4a22ac00f831e966d627150ed83f05b2e
7
+ data.tar.gz: e32cb7cd3716cd0ffa965e73b7850a21ace7a7c83b65a27eaeda205ba5d2f8ec9283f7688661ef61c39d3240fe05a6f7d8889367aae2a842b8e79197b862ccf8
data/README.md CHANGED
@@ -39,7 +39,7 @@ Read-only REST API over the Pharma Observatory biomedical data platform. Referen
39
39
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
40
40
 
41
41
  - API version: 1.0.0
42
- - Package version: 0.1.15
42
+ - Package version: 0.1.16
43
43
  - Generator version: 7.13.0
44
44
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
45
45
 
@@ -56,16 +56,16 @@ gem build pharmaobservatory.gemspec
56
56
  Then either install the gem locally:
57
57
 
58
58
  ```shell
59
- gem install ./pharmaobservatory-0.1.15.gem
59
+ gem install ./pharmaobservatory-0.1.16.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./pharmaobservatory-0.1.15.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./pharmaobservatory-0.1.16.gem` to install the development dependencies)
63
63
 
64
64
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
65
65
 
66
66
  Finally add this to the Gemfile:
67
67
 
68
- gem 'pharmaobservatory', '~> 0.1.15'
68
+ gem 'pharmaobservatory', '~> 0.1.16'
69
69
 
70
70
  ### Install from Git
71
71
 
@@ -9,6 +9,7 @@
9
9
  | **next_cursor** | **String** | | |
10
10
  | **has_more** | **Boolean** | | |
11
11
  | **build_state** | [**ChangesList200ResponseBuildState**](ChangesList200ResponseBuildState.md) | | |
12
+ | **oldest_available** | **String** | | [optional] |
12
13
 
13
14
  ## Example
14
15
 
@@ -20,7 +21,8 @@ instance = PharmaObservatory::ChangesList200Response.new(
20
21
  count: null,
21
22
  next_cursor: null,
22
23
  has_more: null,
23
- build_state: null
24
+ build_state: null,
25
+ oldest_available: null
24
26
  )
25
27
  ```
26
28
 
@@ -12,7 +12,7 @@
12
12
  | **competitor_company_name** | **String** | Display name of the competitor's company. | [optional] |
13
13
  | **competitor_group_id** | **String** | Group level: the competitor's current ultimate parent; a root's group is itself. | [optional] |
14
14
  | **competitor_group_name** | **String** | Display name of the competitor's group. | [optional] |
15
- | **competitor_class** | **String** | The competitor's class: industry, or non_industry (not classed as industry by the sponsor-class rule: academic, hospital, government, nonprofit, and any record the rule does not reach). competitor_rank restarts at 1 within each class, so filter or sort on this column first. | [optional] |
15
+ | **competitor_class** | **String** | The competitor's class: always industry since the not-classed-as-industry group left Competitors; the column is kept so a query written against it keeps working. competitor_rank is 1-based within the class. | [optional] |
16
16
  | **n_class_candidates** | **Integer** | How many companies of this competitor_class had at least one asset collision with the company before the top 25 were kept. The same value on every row of one company and class. | [optional] |
17
17
  | **competitor_rank** | **Integer** | The competitor's rank within its competitor_class for the company by competitor_score (1 is the highest). | [optional] |
18
18
  | **competitor_score** | **Float** | The weighted share of the company's live target families that the competitor's live assets collide with, 0 to 100, rounded to four places. Each colliding family counts its best collision weight (rarity of the family across companies, times factors for same action, a shared indication, the least advanced stage, recency and a head-to-head trial), capped at the family's rarity weight; the sum is divided by the rarity weights of ALL the company's families. | [optional] |
@@ -20,8 +20,10 @@
20
20
  | **n_colliding_families** | **Integer** | Target families of the company's live assets that the competitor collides with. | [optional] |
21
21
  | **n_subject_families** | **Integer** | Target families of the company's own live, owned assets; the denominator of competitor_score is their rarity weights. | [optional] |
22
22
  | **n_same_action** | **Integer** | Asset pairs whose drugs act on the shared target with the same action type. | [optional] |
23
- | **n_shared_indication_pairs** | **Integer** | Asset pairs whose programs share at least one disease area. | [optional] |
23
+ | **n_shared_indication_pairs** | **Integer** | Asset pairs whose programs share at least one disease area. Every listed pair does, so it equals n_collisions. | [optional] |
24
24
  | **n_head_to_head_trials** | **Integer** | Distinct trials led by either company in which one drug of a pair is experimental and the other an active comparator. | [optional] |
25
+ | **best_stage** | **Integer** | The most advanced pair's stage, where a pair's stage is the less advanced of its two programs' furthest phase: 6 Phase 4, 5 Phase 3, 4 Phase 2/3, 3 Phase 2, 2 Phase 1/2, 1 Phase 1, 0 Early Phase 1, -1 phase not applicable. A tie-break key after the score. | [optional] |
26
+ | **last_year** | **Integer** | The latest trial start year over the company pair's programs (the maximum over its asset pairs of the later of the two programs' last start year). A tie-break key after the score; null when no program has a start year. | [optional] |
25
27
  | **top_collisions** | **Array<String>** | Up to 3 strongest asset pairs as text: \"drug A / drug B: target family, stage, N shared indications\". The stage is the less advanced of the two programs. An ownership_basis of inferred_lead on the underlying pair (see company_asset_collisions) is an inference. | [optional] |
26
28
  | **n_cosponsored_trials** | **Integer** | Distinct trials on which the company and the competitor are both named as sponsors, counted over their subtrees; 0 when none. A consortium trial (more than 25 sponsor companies) is left out. | [optional] |
27
29
 
@@ -49,6 +51,8 @@ instance = PharmaObservatory::CompanyCompetitorsRow.new(
49
51
  n_same_action: null,
50
52
  n_shared_indication_pairs: null,
51
53
  n_head_to_head_trials: null,
54
+ best_stage: null,
55
+ last_year: null,
52
56
  top_collisions: null,
53
57
  n_cosponsored_trials: null
54
58
  )
@@ -29,8 +29,8 @@ end
29
29
 
30
30
  api_instance = PharmaObservatory::SubscriptionsApi.new
31
31
  opts = {
32
- cursor: 'eyJ2IjoxLCJvIjoiMjAyNi0xMS0wMlQwNjowMjowMC4wMDAwMDBaIiwiaSI6OTAwMn0', # String |
33
- limit: 2 # Integer |
32
+ cursor: 'eyJ2IjoxLCJvIjoiMjAyNi0wNS0wNFQwMDowMDowMC4wMDAwMDBaIiwiaSI6MX0', # String |
33
+ limit: 1 # Integer |
34
34
  }
35
35
 
36
36
  begin
@@ -25,6 +25,8 @@ module PharmaObservatory
25
25
 
26
26
  attr_accessor :build_state
27
27
 
28
+ attr_accessor :oldest_available
29
+
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
@@ -32,7 +34,8 @@ module PharmaObservatory
32
34
  :'count' => :'count',
33
35
  :'next_cursor' => :'next_cursor',
34
36
  :'has_more' => :'has_more',
35
- :'build_state' => :'build_state'
37
+ :'build_state' => :'build_state',
38
+ :'oldest_available' => :'oldest_available'
36
39
  }
37
40
  end
38
41
 
@@ -53,13 +56,15 @@ module PharmaObservatory
53
56
  :'count' => :'Integer',
54
57
  :'next_cursor' => :'String',
55
58
  :'has_more' => :'Boolean',
56
- :'build_state' => :'ChangesList200ResponseBuildState'
59
+ :'build_state' => :'ChangesList200ResponseBuildState',
60
+ :'oldest_available' => :'String'
57
61
  }
58
62
  end
59
63
 
60
64
  # List of attributes with nullable: true
61
65
  def self.openapi_nullable
62
66
  Set.new([
67
+ :'oldest_available'
63
68
  ])
64
69
  end
65
70
 
@@ -110,6 +115,10 @@ module PharmaObservatory
110
115
  else
111
116
  self.build_state = nil
112
117
  end
118
+
119
+ if attributes.key?(:'oldest_available')
120
+ self.oldest_available = attributes[:'oldest_available']
121
+ end
113
122
  end
114
123
 
115
124
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -211,7 +220,8 @@ module PharmaObservatory
211
220
  count == o.count &&
212
221
  next_cursor == o.next_cursor &&
213
222
  has_more == o.has_more &&
214
- build_state == o.build_state
223
+ build_state == o.build_state &&
224
+ oldest_available == o.oldest_available
215
225
  end
216
226
 
217
227
  # @see the `==` method
@@ -223,7 +233,7 @@ module PharmaObservatory
223
233
  # Calculates hash code according to all attributes.
224
234
  # @return [Integer] Hash code
225
235
  def hash
226
- [items, count, next_cursor, has_more, build_state].hash
236
+ [items, count, next_cursor, has_more, build_state, oldest_available].hash
227
237
  end
228
238
 
229
239
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PharmaObservatory
17
- # One row of the company_competitors dataset: one row per ordered company pair: a company and one of the top 25 companies of each competitor_class by asset collision. A grouped request returns the group columns and the measures instead, as additional properties.
17
+ # One row of the company_competitors dataset: one row per ordered company pair: an industry company and one of its top 25 industry competitors by asset collision. A grouped request returns the group columns and the measures instead, as additional properties.
18
18
  class CompanyCompetitorsRow
19
19
  # Company level: the company the row is about; the entry key for the companies object type.
20
20
  attr_accessor :company_id
@@ -40,7 +40,7 @@ module PharmaObservatory
40
40
  # Display name of the competitor's group.
41
41
  attr_accessor :competitor_group_name
42
42
 
43
- # The competitor's class: industry, or non_industry (not classed as industry by the sponsor-class rule: academic, hospital, government, nonprofit, and any record the rule does not reach). competitor_rank restarts at 1 within each class, so filter or sort on this column first.
43
+ # The competitor's class: always industry since the not-classed-as-industry group left Competitors; the column is kept so a query written against it keeps working. competitor_rank is 1-based within the class.
44
44
  attr_accessor :competitor_class
45
45
 
46
46
  # How many companies of this competitor_class had at least one asset collision with the company before the top 25 were kept. The same value on every row of one company and class.
@@ -64,12 +64,18 @@ module PharmaObservatory
64
64
  # Asset pairs whose drugs act on the shared target with the same action type.
65
65
  attr_accessor :n_same_action
66
66
 
67
- # Asset pairs whose programs share at least one disease area.
67
+ # Asset pairs whose programs share at least one disease area. Every listed pair does, so it equals n_collisions.
68
68
  attr_accessor :n_shared_indication_pairs
69
69
 
70
70
  # Distinct trials led by either company in which one drug of a pair is experimental and the other an active comparator.
71
71
  attr_accessor :n_head_to_head_trials
72
72
 
73
+ # The most advanced pair's stage, where a pair's stage is the less advanced of its two programs' furthest phase: 6 Phase 4, 5 Phase 3, 4 Phase 2/3, 3 Phase 2, 2 Phase 1/2, 1 Phase 1, 0 Early Phase 1, -1 phase not applicable. A tie-break key after the score.
74
+ attr_accessor :best_stage
75
+
76
+ # The latest trial start year over the company pair's programs (the maximum over its asset pairs of the later of the two programs' last start year). A tie-break key after the score; null when no program has a start year.
77
+ attr_accessor :last_year
78
+
73
79
  # Up to 3 strongest asset pairs as text: \"drug A / drug B: target family, stage, N shared indications\". The stage is the less advanced of the two programs. An ownership_basis of inferred_lead on the underlying pair (see company_asset_collisions) is an inference.
74
80
  attr_accessor :top_collisions
75
81
 
@@ -97,6 +103,8 @@ module PharmaObservatory
97
103
  :'n_same_action' => :'n_same_action',
98
104
  :'n_shared_indication_pairs' => :'n_shared_indication_pairs',
99
105
  :'n_head_to_head_trials' => :'n_head_to_head_trials',
106
+ :'best_stage' => :'best_stage',
107
+ :'last_year' => :'last_year',
100
108
  :'top_collisions' => :'top_collisions',
101
109
  :'n_cosponsored_trials' => :'n_cosponsored_trials'
102
110
  }
@@ -133,6 +141,8 @@ module PharmaObservatory
133
141
  :'n_same_action' => :'Integer',
134
142
  :'n_shared_indication_pairs' => :'Integer',
135
143
  :'n_head_to_head_trials' => :'Integer',
144
+ :'best_stage' => :'Integer',
145
+ :'last_year' => :'Integer',
136
146
  :'top_collisions' => :'Array<String>',
137
147
  :'n_cosponsored_trials' => :'Integer'
138
148
  }
@@ -159,6 +169,8 @@ module PharmaObservatory
159
169
  :'n_same_action',
160
170
  :'n_shared_indication_pairs',
161
171
  :'n_head_to_head_trials',
172
+ :'best_stage',
173
+ :'last_year',
162
174
  :'top_collisions',
163
175
  :'n_cosponsored_trials'
164
176
  ])
@@ -252,6 +264,14 @@ module PharmaObservatory
252
264
  self.n_head_to_head_trials = attributes[:'n_head_to_head_trials']
253
265
  end
254
266
 
267
+ if attributes.key?(:'best_stage')
268
+ self.best_stage = attributes[:'best_stage']
269
+ end
270
+
271
+ if attributes.key?(:'last_year')
272
+ self.last_year = attributes[:'last_year']
273
+ end
274
+
255
275
  if attributes.key?(:'top_collisions')
256
276
  if (value = attributes[:'top_collisions']).is_a?(Array)
257
277
  self.top_collisions = value
@@ -301,6 +321,8 @@ module PharmaObservatory
301
321
  n_same_action == o.n_same_action &&
302
322
  n_shared_indication_pairs == o.n_shared_indication_pairs &&
303
323
  n_head_to_head_trials == o.n_head_to_head_trials &&
324
+ best_stage == o.best_stage &&
325
+ last_year == o.last_year &&
304
326
  top_collisions == o.top_collisions &&
305
327
  n_cosponsored_trials == o.n_cosponsored_trials
306
328
  end
@@ -314,7 +336,7 @@ module PharmaObservatory
314
336
  # Calculates hash code according to all attributes.
315
337
  # @return [Integer] Hash code
316
338
  def hash
317
- [company_id, company_name, group_id, group_name, competitor_company_id, competitor_company_name, competitor_group_id, competitor_group_name, competitor_class, n_class_candidates, competitor_rank, competitor_score, n_collisions, n_colliding_families, n_subject_families, n_same_action, n_shared_indication_pairs, n_head_to_head_trials, top_collisions, n_cosponsored_trials].hash
339
+ [company_id, company_name, group_id, group_name, competitor_company_id, competitor_company_name, competitor_group_id, competitor_group_name, competitor_class, n_class_candidates, competitor_rank, competitor_score, n_collisions, n_colliding_families, n_subject_families, n_same_action, n_shared_indication_pairs, n_head_to_head_trials, best_stage, last_year, top_collisions, n_cosponsored_trials].hash
318
340
  end
319
341
 
320
342
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.13.0
11
11
  =end
12
12
 
13
13
  module PharmaObservatory
14
- VERSION = '0.1.15'
14
+ VERSION = '0.1.16'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pharmaobservatory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scientist.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-05 00:00:00.000000000 Z
11
+ date: 2026-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday