pharmaobservatory 0.1.16 → 0.1.18

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: 03c4abc97aafe0b83c5f85d72327900c0462a451669d3aec461ff954067450ac
4
- data.tar.gz: 5e7b931706e50713c1388654410272353b6f67b2d2016d714db218b13381b05f
3
+ metadata.gz: 78342742e5642aa440715f3054cecd1846a81fd82e284fcc144e51960e2544f8
4
+ data.tar.gz: e5f6e1ead342f94fcf9cc5528f9f2c147cf0f581fd54d716fc5f21ecc2cf420d
5
5
  SHA512:
6
- metadata.gz: 96dd0dd29834a7aed19b1f86ab0bdf33b778ea0ce2178b961018ec16ed738f794050d274d376e5596786b8039c63e6c4a22ac00f831e966d627150ed83f05b2e
7
- data.tar.gz: e32cb7cd3716cd0ffa965e73b7850a21ace7a7c83b65a27eaeda205ba5d2f8ec9283f7688661ef61c39d3240fe05a6f7d8889367aae2a842b8e79197b862ccf8
6
+ metadata.gz: 9329ad98d625227ea7941348acab4770dc8f8ff5284d806bbcc1cf12f16c407de2cc7015eb7fef83bdd2bdcdcf06f34534dd3cd1059e70b5286bdab962bb3631
7
+ data.tar.gz: 42e2c0bf9feee95d4688247d5d4b7f80a899b3f2fb60cb682bec502dace37f17738a1a002a07549f3e93b359b2e87c6d33e868469160755b47ffac3e9c17fae8
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.16
42
+ - Package version: 0.1.18
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.16.gem
59
+ gem install ./pharmaobservatory-0.1.18.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./pharmaobservatory-0.1.16.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./pharmaobservatory-0.1.18.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.16'
68
+ gem 'pharmaobservatory', '~> 0.1.18'
69
69
 
70
70
  ### Install from Git
71
71
 
@@ -156,6 +156,7 @@ Class | Method | HTTP request | Description
156
156
  *PharmaObservatory::CompaniesApi* | [**companies_company_firmographics**](docs/CompaniesApi.md#companies_company_firmographics) | **GET** /api/v1/companies/{id}/company_firmographics | Company firmographics
157
157
  *PharmaObservatory::CompaniesApi* | [**companies_company_funding_events**](docs/CompaniesApi.md#companies_company_funding_events) | **GET** /api/v1/companies/{id}/company_funding_events | Company funding events
158
158
  *PharmaObservatory::CompaniesApi* | [**companies_company_funding_summary**](docs/CompaniesApi.md#companies_company_funding_summary) | **GET** /api/v1/companies/{id}/company_funding_summary | Company funding summary
159
+ *PharmaObservatory::CompaniesApi* | [**companies_company_market_collisions**](docs/CompaniesApi.md#companies_company_market_collisions) | **GET** /api/v1/companies/{id}/company_market_collisions | Company market collisions
159
160
  *PharmaObservatory::CompaniesApi* | [**companies_company_members**](docs/CompaniesApi.md#companies_company_members) | **GET** /api/v1/companies/{id}/company_members | Company members
160
161
  *PharmaObservatory::CompaniesApi* | [**companies_company_peer_profile**](docs/CompaniesApi.md#companies_company_peer_profile) | **GET** /api/v1/companies/{id}/company_peer_profile | Company peer profile
161
162
  *PharmaObservatory::CompaniesApi* | [**companies_company_peers**](docs/CompaniesApi.md#companies_company_peers) | **GET** /api/v1/companies/{id}/company_peers | Company peers
@@ -522,6 +523,8 @@ Class | Method | HTTP request | Description
522
523
  - [PharmaObservatory::CompanyFundingEventsRow](docs/CompanyFundingEventsRow.md)
523
524
  - [PharmaObservatory::CompanyFundingSummaryResponse](docs/CompanyFundingSummaryResponse.md)
524
525
  - [PharmaObservatory::CompanyFundingSummaryRow](docs/CompanyFundingSummaryRow.md)
526
+ - [PharmaObservatory::CompanyMarketCollisionsResponse](docs/CompanyMarketCollisionsResponse.md)
527
+ - [PharmaObservatory::CompanyMarketCollisionsRow](docs/CompanyMarketCollisionsRow.md)
525
528
  - [PharmaObservatory::CompanyMembersResponse](docs/CompanyMembersResponse.md)
526
529
  - [PharmaObservatory::CompanyMembersRow](docs/CompanyMembersRow.md)
527
530
  - [PharmaObservatory::CompanyPeerProfileResponse](docs/CompanyPeerProfileResponse.md)
data/docs/CompaniesApi.md CHANGED
@@ -22,6 +22,7 @@ All URIs are relative to *https://pharmaobservatory.com*
22
22
  | [**companies_company_firmographics**](CompaniesApi.md#companies_company_firmographics) | **GET** /api/v1/companies/{id}/company_firmographics | Company firmographics |
23
23
  | [**companies_company_funding_events**](CompaniesApi.md#companies_company_funding_events) | **GET** /api/v1/companies/{id}/company_funding_events | Company funding events |
24
24
  | [**companies_company_funding_summary**](CompaniesApi.md#companies_company_funding_summary) | **GET** /api/v1/companies/{id}/company_funding_summary | Company funding summary |
25
+ | [**companies_company_market_collisions**](CompaniesApi.md#companies_company_market_collisions) | **GET** /api/v1/companies/{id}/company_market_collisions | Company market collisions |
25
26
  | [**companies_company_members**](CompaniesApi.md#companies_company_members) | **GET** /api/v1/companies/{id}/company_members | Company members |
26
27
  | [**companies_company_peer_profile**](CompaniesApi.md#companies_company_peer_profile) | **GET** /api/v1/companies/{id}/company_peer_profile | Company peer profile |
27
28
  | [**companies_company_peers**](CompaniesApi.md#companies_company_peers) | **GET** /api/v1/companies/{id}/company_peers | Company peers |
@@ -1533,6 +1534,87 @@ end
1533
1534
  - **Accept**: application/json
1534
1535
 
1535
1536
 
1537
+ ## companies_company_market_collisions
1538
+
1539
+ > <CompanyMarketCollisionsResponse> companies_company_market_collisions(id, opts)
1540
+
1541
+ Company market collisions
1542
+
1543
+ ### Examples
1544
+
1545
+ ```ruby
1546
+ require 'time'
1547
+ require 'pharmaobservatory'
1548
+ # setup authorization
1549
+ PharmaObservatory.configure do |config|
1550
+ # Configure Bearer authorization (JWT): ApiBearerJwt
1551
+ config.access_token = 'YOUR_BEARER_TOKEN'
1552
+ end
1553
+
1554
+ api_instance = PharmaObservatory::CompaniesApi.new
1555
+ id = 'company:c0185cf6c39a2536ad436cf6255494c0' # String |
1556
+ opts = {
1557
+ cursor: 'cursor_example', # String | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1558
+ limit: 56, # Integer | Rows per page, up to 500 (default 50).
1559
+ sort: 'sort_example', # String | Comma separated columns, a leading minus for descending: sort=a,-b.
1560
+ group_by: 'group_by_example', # String | A dimension to group by; a date takes :year, :quarter or :month.
1561
+ measure: 'measure_example', # String | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1562
+ scope: 'company' # String | company (this company only) or group (its corporate group).
1563
+ }
1564
+
1565
+ begin
1566
+ # Company market collisions
1567
+ result = api_instance.companies_company_market_collisions(id, opts)
1568
+ p result
1569
+ rescue PharmaObservatory::ApiError => e
1570
+ puts "Error when calling CompaniesApi->companies_company_market_collisions: #{e}"
1571
+ end
1572
+ ```
1573
+
1574
+ #### Using the companies_company_market_collisions_with_http_info variant
1575
+
1576
+ This returns an Array which contains the response data, status code and headers.
1577
+
1578
+ > <Array(<CompanyMarketCollisionsResponse>, Integer, Hash)> companies_company_market_collisions_with_http_info(id, opts)
1579
+
1580
+ ```ruby
1581
+ begin
1582
+ # Company market collisions
1583
+ data, status_code, headers = api_instance.companies_company_market_collisions_with_http_info(id, opts)
1584
+ p status_code # => 2xx
1585
+ p headers # => { ... }
1586
+ p data # => <CompanyMarketCollisionsResponse>
1587
+ rescue PharmaObservatory::ApiError => e
1588
+ puts "Error when calling CompaniesApi->companies_company_market_collisions_with_http_info: #{e}"
1589
+ end
1590
+ ```
1591
+
1592
+ ### Parameters
1593
+
1594
+ | Name | Type | Description | Notes |
1595
+ | ---- | ---- | ----------- | ----- |
1596
+ | **id** | **String** | | |
1597
+ | **cursor** | **String** | The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it. | [optional] |
1598
+ | **limit** | **Integer** | Rows per page, up to 500 (default 50). | [optional] |
1599
+ | **sort** | **String** | Comma separated columns, a leading minus for descending: sort&#x3D;a,-b. | [optional] |
1600
+ | **group_by** | **String** | A dimension to group by; a date takes :year, :quarter or :month. | [optional] |
1601
+ | **measure** | **String** | count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col). | [optional] |
1602
+ | **scope** | **String** | company (this company only) or group (its corporate group). | [optional] |
1603
+
1604
+ ### Return type
1605
+
1606
+ [**CompanyMarketCollisionsResponse**](CompanyMarketCollisionsResponse.md)
1607
+
1608
+ ### Authorization
1609
+
1610
+ [ApiBearerJwt](../README.md#ApiBearerJwt)
1611
+
1612
+ ### HTTP request headers
1613
+
1614
+ - **Content-Type**: Not defined
1615
+ - **Accept**: application/json
1616
+
1617
+
1536
1618
  ## companies_company_members
1537
1619
 
1538
1620
  > <CompanyMembersResponse> companies_company_members(id, opts)
@@ -8,15 +8,19 @@
8
8
  | **company_name** | **String** | Display name of the company. | [optional] |
9
9
  | **group_id** | **String** | Group level: the company&#39;s current ultimate parent; a root&#39;s group is itself. | [optional] |
10
10
  | **group_name** | **String** | Display name of the group. | [optional] |
11
- | **competitor_company_id** | **String** | Company level: the competing company. | [optional] |
11
+ | **row_level** | **String** | root: the competitor&#39;s ultimate parent company, with its score, counts and evidence recomputed over the union of its members&#39; colliding assets (the best weight per target family and per indication across members, distinct asset pairs and distinct trials, never a sum of member scores). member: a company under that root that itself collides, scored on its own assets. Filter on one level; the two do not add. | [optional] |
12
+ | **competitor_company_id** | **String** | Company level: the competing company. At row_level root this is the root company; at member it is the member company itself. | [optional] |
12
13
  | **competitor_company_name** | **String** | Display name of the competitor&#39;s company. | [optional] |
13
14
  | **competitor_group_id** | **String** | Group level: the competitor&#39;s current ultimate parent; a root&#39;s group is itself. | [optional] |
14
15
  | **competitor_group_name** | **String** | Display name of the competitor&#39;s group. | [optional] |
16
+ | **competitor_root_id** | **String** | The ultimate parent company of the competitor, the ladder company&#39;s &#x60;coalesce(ultimate_parent_company_id, company_id)&#x60; (one root per company, never the multi-root group fan-out). Equal to competitor_company_id at row_level root, and the root a member row sits under. | [optional] |
15
17
  | **competitor_class** | **String** | The competitor&#39;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
18
  | **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
- | **competitor_rank** | **Integer** | The competitor&#39;s rank within its competitor_class for the company by competitor_score (1 is the highest). | [optional] |
19
+ | **competitor_rank** | **Integer** | The rank of the competitor ROOT within its competitor_class for the company by competitor_score (1 is the highest). The same on a root row and on each of its member rows. | [optional] |
20
+ | **member_rank** | **Integer** | 0 on a root row; 1 and up on the member rows of that root, by the member&#39;s own competitor_score. Order by competitor_rank then member_rank to list each root followed by its members. | [optional] |
21
+ | **n_members** | **Integer** | Member companies of this root that collide with the company, before the member cut. The same on a root row and its member rows. | [optional] |
18
22
  | **competitor_score** | **Float** | The weighted share of the company&#39;s live target families that the competitor&#39;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&#39;s rarity weight; the sum is divided by the rarity weights of ALL the company&#39;s families. | [optional] |
19
- | **n_collisions** | **Integer** | Asset pairs (a drug of the company, a drug of the competitor) that act on a common target. | [optional] |
23
+ | **n_collisions** | **Integer** | Asset pairs (a drug of the company, a drug of the competitor) that act on a common target; 0 when the competitor is listed only for a same-market pair (see n_market_collisions). | [optional] |
20
24
  | **n_colliding_families** | **Integer** | Target families of the company&#39;s live assets that the competitor collides with. | [optional] |
21
25
  | **n_subject_families** | **Integer** | Target families of the company&#39;s own live, owned assets; the denominator of competitor_score is their rarity weights. | [optional] |
22
26
  | **n_same_action** | **Integer** | Asset pairs whose drugs act on the shared target with the same action type. | [optional] |
@@ -25,6 +29,10 @@
25
29
  | **best_stage** | **Integer** | The most advanced pair&#39;s stage, where a pair&#39;s stage is the less advanced of its two programs&#39; 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
30
  | **last_year** | **Integer** | The latest trial start year over the company pair&#39;s programs (the maximum over its asset pairs of the later of the two programs&#39; last start year). A tie-break key after the score; null when no program has a start year. | [optional] |
27
31
  | **top_collisions** | **Array&lt;String&gt;** | Up to 3 strongest asset pairs as text: \&quot;drug A / drug B: target family, stage, N shared indications\&quot;. 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] |
32
+ | **n_market_collisions** | **Integer** | Asset pairs (a Phase 3+ drug of the company, a Phase 3+ drug of the competitor) that share a MeSH indication on drugs with no common target; the pairs are the company_market_collisions dataset. | [optional] |
33
+ | **n_market_indications** | **Integer** | Distinct shared Phase 3+ indications of the pair, counted after a shared indication is replaced by a more specific one that the same asset pair also shares. | [optional] |
34
+ | **n_subject_markets** | **Integer** | The company&#39;s own Phase 3+ indications; with its target families, the denominator of competitor_score. 0 when it holds no Phase 3+ program. | [optional] |
35
+ | **top_market_collisions** | **Array&lt;String&gt;** | Up to 3 strongest same-market asset pairs as text: \&quot;drug A / drug B: indication, same market, different target (SYMBOLS vs SYMBOLS), stage\&quot;. An empty list when none. Kept apart from top_collisions, which is target evidence only. | [optional] |
28
36
  | **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] |
29
37
 
30
38
  ## Example
@@ -37,13 +45,17 @@ instance = PharmaObservatory::CompanyCompetitorsRow.new(
37
45
  company_name: null,
38
46
  group_id: null,
39
47
  group_name: null,
48
+ row_level: null,
40
49
  competitor_company_id: null,
41
50
  competitor_company_name: null,
42
51
  competitor_group_id: null,
43
52
  competitor_group_name: null,
53
+ competitor_root_id: null,
44
54
  competitor_class: null,
45
55
  n_class_candidates: null,
46
56
  competitor_rank: null,
57
+ member_rank: null,
58
+ n_members: null,
47
59
  competitor_score: null,
48
60
  n_collisions: null,
49
61
  n_colliding_families: null,
@@ -54,6 +66,10 @@ instance = PharmaObservatory::CompanyCompetitorsRow.new(
54
66
  best_stage: null,
55
67
  last_year: null,
56
68
  top_collisions: null,
69
+ n_market_collisions: null,
70
+ n_market_indications: null,
71
+ n_subject_markets: null,
72
+ top_market_collisions: null,
57
73
  n_cosponsored_trials: null
58
74
  )
59
75
  ```
@@ -27,7 +27,7 @@
27
27
  | **burn_basis_quarterly_usd** | **Float** | The mean quarterly operating cash flow over the latest two contiguous quarters (the latest alone when no contiguous earlier quarter has a figure), in USD; negative means burning. | [optional] |
28
28
  | **runway_months_quarterly** | **Float** | An estimate, derived not reported: cash_and_investments_latest_q divided by the monthly burn (burn_basis_quarterly_usd over 3), in months at quarter_end_date, rounded to 0.1. Null whenever runway_quarterly_null_reason is set. | [optional] |
29
29
  | **runway_quarterly_method** | **String** | The version of the derivation behind runway_months_quarterly; trailing_quarter_mean_v1 is the mean of the latest two contiguous discrete quarters. | [optional] |
30
- | **runway_quarterly_null_reason** | **String** | Why runway_months_quarterly is null, in precedence order: no_quarterly_facts (no 10-Q cash-flow facts: a private company or a 20-F/40-F filer), stale (the latest quarter ended over a year before the newest SEC filing loaded), no_fx_rate, no_cash_at_quarter_end, or positive_cash_flow (no burn to run out of). Null when the runway is published. | [optional] |
30
+ | **runway_quarterly_null_reason** | **String** | Why runway_months_quarterly is null, in precedence order: no_quarterly_facts (no 10-Q cash-flow facts: a private company or a 20-F/40-F filer), stale (the latest quarter ended over a year before the newest SEC filing loaded), no_fx_rate, no_cash_at_quarter_end, positive_cash_flow (no burn to run out of), or mixed_sign_window (the latest quarter burned but the previous quarter was cash-positive, so no runway is published). Null when the runway is published. | [optional] |
31
31
  | **revenue** | **Float** | Total revenue for the fiscal year, in USD (a non-USD filer is converted at the calendar-year average rate; null when no rate exists). | [optional] |
32
32
  | **net_income** | **Float** | Net income for the fiscal year, in USD. | [optional] |
33
33
  | **rnd** | **Float** | Research and development expense for the fiscal year, in USD. | [optional] |
@@ -0,0 +1,58 @@
1
+ # PharmaObservatory::CompanyMarketCollisionsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **dataset** | **String** | | |
8
+ | **grain** | **String** | | [optional] |
9
+ | **object_type** | **String** | | [optional] |
10
+ | **id** | **String** | | [optional] |
11
+ | **scope** | [**AnimalWelfareAssurancesResponseScope**](AnimalWelfareAssurancesResponseScope.md) | | [optional] |
12
+ | **columns** | [**Array&lt;DatasetColumn&gt;**](DatasetColumn.md) | | |
13
+ | **rows** | [**Array&lt;CompanyMarketCollisionsRow&gt;**](CompanyMarketCollisionsRow.md) | | |
14
+ | **total** | **Integer** | The exact count of the filtered rows on an ungrouped read, carried by the cursor; null when grouped. | [optional] |
15
+ | **next_cursor** | **String** | | [optional] |
16
+ | **sort** | **Array&lt;String&gt;** | | [optional] |
17
+ | **filters** | **Array&lt;Hash&lt;String, Object&gt;&gt;** | | [optional] |
18
+ | **group_by** | **Array&lt;String&gt;** | | [optional] |
19
+ | **measures** | **Array&lt;String&gt;** | | [optional] |
20
+ | **attribution** | [**Array&lt;DatasetAttribution&gt;**](DatasetAttribution.md) | | [optional] |
21
+ | **source_credit** | **String** | | [optional] |
22
+ | **withheld_tiers** | **Array&lt;String&gt;** | | [optional] |
23
+ | **withheld_columns** | **Array&lt;String&gt;** | | [optional] |
24
+ | **freshness** | [**AnimalWelfareAssurancesResponseFreshness**](AnimalWelfareAssurancesResponseFreshness.md) | | [optional] |
25
+ | **build** | [**AnimalWelfareAssurancesResponseBuild**](AnimalWelfareAssurancesResponseBuild.md) | | [optional] |
26
+ | **build_state** | [**DatasetBuildState**](DatasetBuildState.md) | | [optional] |
27
+ | **restriction** | **Hash&lt;String, Object&gt;** | | [optional] |
28
+
29
+ ## Example
30
+
31
+ ```ruby
32
+ require 'pharmaobservatory'
33
+
34
+ instance = PharmaObservatory::CompanyMarketCollisionsResponse.new(
35
+ dataset: null,
36
+ grain: null,
37
+ object_type: null,
38
+ id: null,
39
+ scope: null,
40
+ columns: null,
41
+ rows: null,
42
+ total: null,
43
+ next_cursor: null,
44
+ sort: null,
45
+ filters: null,
46
+ group_by: null,
47
+ measures: null,
48
+ attribution: null,
49
+ source_credit: null,
50
+ withheld_tiers: null,
51
+ withheld_columns: null,
52
+ freshness: null,
53
+ build: null,
54
+ build_state: null,
55
+ restriction: null
56
+ )
57
+ ```
58
+
@@ -0,0 +1,62 @@
1
+ # PharmaObservatory::CompanyMarketCollisionsRow
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **company_id** | **String** | Company level: the company the row is about; the entry key for the companies object type. | [optional] |
8
+ | **company_name** | **String** | Display name of the company. | [optional] |
9
+ | **group_id** | **String** | Group level: the company&#39;s current ultimate parent; a root&#39;s group is itself. | [optional] |
10
+ | **group_name** | **String** | Display name of the group. | [optional] |
11
+ | **molecule_id** | **String** | Molecule level: the company&#39;s asset, the resolved drug (a drug with two canonical ids is one asset). | [optional] |
12
+ | **molecule_name** | **String** | The asset&#39;s display name, from the company&#39;s most-trialled record of it. | [optional] |
13
+ | **competitor_company_id** | **String** | Company level: the company whose asset collides. | [optional] |
14
+ | **competitor_company_name** | **String** | Display name of the competitor&#39;s company. | [optional] |
15
+ | **competitor_group_id** | **String** | Group level: the competitor&#39;s current ultimate parent; a root&#39;s group is itself. | [optional] |
16
+ | **competitor_group_name** | **String** | Display name of the competitor&#39;s group. | [optional] |
17
+ | **competitor_molecule_id** | **String** | Molecule level: the competitor&#39;s asset, the resolved drug. | [optional] |
18
+ | **competitor_molecule_name** | **String** | The competitor asset&#39;s display name. | [optional] |
19
+ | **condition_ui** | **String** | The shared MeSH indication (a MeSH descriptor id): both assets are owned, live and Phase 3 or 4 in it. | [optional] |
20
+ | **condition_name** | **String** | The MeSH name of the shared indication. | [optional] |
21
+ | **target_symbols** | **Array&lt;String&gt;** | Gene symbols of the company drug&#39;s recorded targets. Never empty, and none is a target of the competitor drug. | [optional] |
22
+ | **competitor_target_symbols** | **Array&lt;String&gt;** | Gene symbols of the competitor drug&#39;s recorded targets. | [optional] |
23
+ | **stage** | **Integer** | The less advanced of the two programs&#39; 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. | [optional] |
24
+ | **last_year** | **Integer** | The later of the two programs&#39; last trial start year. | [optional] |
25
+ | **n_head_to_head_trials** | **Integer** | Trials led by either company in which one drug is experimental and the other an active comparator. | [optional] |
26
+ | **ownership_basis** | **String** | Why the company owns the drug. experimental_arm and regulatory_holder rest on evidence; inferred_lead is an inference (no arm data says otherwise). | [optional] |
27
+ | **competitor_ownership_basis** | **String** | Why the competitor owns its drug, same vocabulary as ownership_basis. | [optional] |
28
+ | **indication_idf** | **Float** | The rarity weight of the indication: the natural log of (companies holding a live, owned Phase 3+ asset with a recorded target) over (companies holding one in this indication). | [optional] |
29
+ | **market_weight** | **Float** | The weight of the pair, 0.5 times indication_idf times factors for recency and a head-to-head trial. There is no stage factor, both programs are Phase 3 or 4. | [optional] |
30
+
31
+ ## Example
32
+
33
+ ```ruby
34
+ require 'pharmaobservatory'
35
+
36
+ instance = PharmaObservatory::CompanyMarketCollisionsRow.new(
37
+ company_id: null,
38
+ company_name: null,
39
+ group_id: null,
40
+ group_name: null,
41
+ molecule_id: null,
42
+ molecule_name: null,
43
+ competitor_company_id: null,
44
+ competitor_company_name: null,
45
+ competitor_group_id: null,
46
+ competitor_group_name: null,
47
+ competitor_molecule_id: null,
48
+ competitor_molecule_name: null,
49
+ condition_ui: null,
50
+ condition_name: null,
51
+ target_symbols: null,
52
+ competitor_target_symbols: null,
53
+ stage: null,
54
+ last_year: null,
55
+ n_head_to_head_trials: null,
56
+ ownership_basis: null,
57
+ competitor_ownership_basis: null,
58
+ indication_idf: null,
59
+ market_weight: null
60
+ )
61
+ ```
62
+
@@ -29,7 +29,7 @@ end
29
29
 
30
30
  api_instance = PharmaObservatory::SubscriptionsApi.new
31
31
  opts = {
32
- cursor: 'eyJ2IjoxLCJvIjoiMjAyNi0wNS0wNFQwMDowMDowMC4wMDAwMDBaIiwiaSI6MX0', # String |
32
+ cursor: 'eyJ2IjoyLCJvIjoiMjAyNi0wNS0wNFQwMDowMDowMC4wMDAwMDBaIiwiaSI6MX0', # String |
33
33
  limit: 1 # Integer |
34
34
  }
35
35
 
@@ -10,8 +10,8 @@
10
10
  | **molecule_id** | **String** | The molecule the drug resolves to, the id condition_drugs also calls molecule_id; equal to drug_id for a drug that resolves to no other. | [optional] |
11
11
  | **drug_name** | **String** | The drug&#39;s name. | [optional] |
12
12
  | **primary_action_type** | **String** | The action type of the best-evidence mechanism (INHIBITOR, AGONIST and so on); null where the source gives none. | [optional] |
13
- | **evidence_source** | **String** | The best evidence tier that links the drug to the target: curated_moa (an Open Targets curated mechanism edge), chembl_moa (a ChEMBL mechanism) or intervention_seed (a curated investigational asset). | [optional] |
14
- | **evidence_rank** | **Integer** | The rank of evidence_source, 1 for curated_moa, 2 for chembl_moa, 3 for intervention_seed. | [optional] |
13
+ | **evidence_source** | **String** | The best evidence tier that links the drug to the target: curated_app (a human decision recorded in the app ledger), curated_moa (an Open Targets curated mechanism edge), chembl_moa (a ChEMBL mechanism), intervention_seed (a curated investigational asset) or curated_agent (an agent decision recorded in the app ledger). | [optional] |
14
+ | **evidence_rank** | **Integer** | The rank of evidence_source, 0 for curated_app, 1 for curated_moa, 2 for chembl_moa, 3 for intervention_seed, 4 for curated_agent. | [optional] |
15
15
  | **evidence_sources** | **Array&lt;String&gt;** | Every evidence tier that links the drug to the target; more than one is a corroboration signal. | [optional] |
16
16
  | **approved_anywhere** | **Boolean** | Whether the drug is approved by any authority we hold. | [optional] |
17
17
  | **drug_n_trials** | **Float** | Distinct trials of the drug, on any target. | [optional] |
@@ -11,7 +11,7 @@
11
11
  | **drug_name** | **String** | The drug&#39;s name. | [optional] |
12
12
  | **approved_anywhere** | **Boolean** | Whether the drug is approved by any authority we hold. | [optional] |
13
13
  | **primary_action_type** | **String** | The action type of the drug&#39;s best-evidence mechanism on the target; null where the source gives none. | [optional] |
14
- | **evidence_source** | **String** | The best evidence tier that links the drug to the target: curated_moa (an Open Targets curated mechanism edge), chembl_moa (a ChEMBL mechanism) or intervention_seed (a curated investigational asset). | [optional] |
14
+ | **evidence_source** | **String** | The best evidence tier that links the drug to the target: curated_app (a human decision recorded in the app ledger), curated_moa (an Open Targets curated mechanism edge), chembl_moa (a ChEMBL mechanism), intervention_seed (a curated investigational asset) or curated_agent (an agent decision recorded in the app ledger). | [optional] |
15
15
  | **condition_id** | **String** | The condition as a MeSH descriptor id (D followed by digits), the id the conditions datasets use. | [optional] |
16
16
  | **condition_name** | **String** | The condition&#39;s name. | [optional] |
17
17
  | **trial_id** | **String** | The ClinicalTrials.gov NCT id, the id the trials datasets use. | [optional] |
@@ -1657,6 +1657,97 @@ module PharmaObservatory
1657
1657
  return data, status_code, headers
1658
1658
  end
1659
1659
 
1660
+ # Company market collisions
1661
+ # @param id [String]
1662
+ # @param [Hash] opts the optional parameters
1663
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1664
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1665
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1666
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1667
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1668
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1669
+ # @return [CompanyMarketCollisionsResponse]
1670
+ def companies_company_market_collisions(id, opts = {})
1671
+ data, _status_code, _headers = companies_company_market_collisions_with_http_info(id, opts)
1672
+ data
1673
+ end
1674
+
1675
+ # Company market collisions
1676
+ # @param id [String]
1677
+ # @param [Hash] opts the optional parameters
1678
+ # @option opts [String] :cursor The next_cursor of the previous page. Opaque; it is bound to the filters and the warehouse build that issued it.
1679
+ # @option opts [Integer] :limit Rows per page, up to 500 (default 50).
1680
+ # @option opts [String] :sort Comma separated columns, a leading minus for descending: sort&#x3D;a,-b.
1681
+ # @option opts [String] :group_by A dimension to group by; a date takes :year, :quarter or :month.
1682
+ # @option opts [String] :measure count, sum(col), avg(col), min(col), max(col), median(col) or count_distinct(col).
1683
+ # @option opts [String] :scope company (this company only) or group (its corporate group).
1684
+ # @return [Array<(CompanyMarketCollisionsResponse, Integer, Hash)>] CompanyMarketCollisionsResponse data, response status code and response headers
1685
+ def companies_company_market_collisions_with_http_info(id, opts = {})
1686
+ if @api_client.config.debugging
1687
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_company_market_collisions ...'
1688
+ end
1689
+ # verify the required parameter 'id' is set
1690
+ if @api_client.config.client_side_validation && id.nil?
1691
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_company_market_collisions"
1692
+ end
1693
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
1694
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_market_collisions, must be smaller than or equal to 500.'
1695
+ end
1696
+
1697
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1698
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling CompaniesApi.companies_company_market_collisions, must be greater than or equal to 1.'
1699
+ end
1700
+
1701
+ allowable_values = ["company", "group"]
1702
+ if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope'])
1703
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}"
1704
+ end
1705
+ # resource path
1706
+ local_var_path = '/api/v1/companies/{id}/company_market_collisions'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1707
+
1708
+ # query parameters
1709
+ query_params = opts[:query_params] || {}
1710
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
1711
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1712
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
1713
+ query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
1714
+ query_params[:'measure'] = opts[:'measure'] if !opts[:'measure'].nil?
1715
+ query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
1716
+
1717
+ # header parameters
1718
+ header_params = opts[:header_params] || {}
1719
+ # HTTP header 'Accept' (if needed)
1720
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1721
+
1722
+ # form parameters
1723
+ form_params = opts[:form_params] || {}
1724
+
1725
+ # http body (model)
1726
+ post_body = opts[:debug_body]
1727
+
1728
+ # return_type
1729
+ return_type = opts[:debug_return_type] || 'CompanyMarketCollisionsResponse'
1730
+
1731
+ # auth_names
1732
+ auth_names = opts[:debug_auth_names] || ['ApiBearerJwt']
1733
+
1734
+ new_options = opts.merge(
1735
+ :operation => :"CompaniesApi.companies_company_market_collisions",
1736
+ :header_params => header_params,
1737
+ :query_params => query_params,
1738
+ :form_params => form_params,
1739
+ :body => post_body,
1740
+ :auth_names => auth_names,
1741
+ :return_type => return_type
1742
+ )
1743
+
1744
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1745
+ if @api_client.config.debugging
1746
+ @api_client.config.logger.debug "API called: CompaniesApi#companies_company_market_collisions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1747
+ end
1748
+ return data, status_code, headers
1749
+ end
1750
+
1660
1751
  # Company members
1661
1752
  # @param id [String]
1662
1753
  # @param [Hash] opts the optional parameters