Significant Contracts - Additional Information (Detail) | Feb. 12, 2016USD ($) | Oct. 26, 2015USD ($)Milestone | Jun. 30, 2019USD ($) | Jun. 30, 2018USD ($) | Jun. 30, 2019USD ($) | Jun. 30, 2018USD ($) | Dec. 31, 2018USD ($) | Dec. 31, 2016USD ($) |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Collaboration revenue | [1] | | | $ 318,000 | $ 1,088,000 | $ 646,000 | $ 2,446,000 | | |
Non-current deferred revenue | | | | 57,730,000 | | 57,730,000 | | $ 57,780,000 | |
Research and development expense | [2] | | | 39,533,000 | 25,633,000 | $ 73,355,000 | 45,152,000 | | |
Date of joint venture agreement | | | | | | Dec. 19, 2015 | | | |
Equity method investment | | | | | | | | | $ 36,500,000 |
Unrealized equity method losses | | | | 1,012,000 | 1,153,000 | $ 2,037,000 | 2,244,000 | | $ 36,500,000 |
Casebia Therapeutics LLP [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Collaboration revenue | | | | 200,000 | 900,000 | 400,000 | 2,000,000 | | |
Research and development expense | | | | 200,000 | 1,200,000 | $ 700,000 | 2,400,000 | | |
Date of formation of joint venture entity | | | | | | Feb. 12, 2016 | | | |
Equity method investment, ownership percentage | | 50.00% | | | | | | | |
Cash contribution | | $ 100,000 | | | | | | | |
Other payments due to company from joint venture entity | | 0 | | | | | | | |
Unrealized equity method losses | | | | 1,000,000 | 1,200,000 | $ 2,000,000 | 2,200,000 | | |
Net loss of joint venture | | | | 18,100,000 | 13,500,000 | 32,300,000 | 25,800,000 | | |
Unrecognized equity method losses in excess of Company's interest | | | | | | 60,500,000 | | 45,300,000 | |
License and Service [Member] | Casebia Therapeutics LLP [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Collaboration revenue | | 35,000,000 | | | | | | | |
Royalty [Member] | Casebia Therapeutics LLP [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Collaboration revenue | | $ 0 | | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Nonrefundable upfront payment received | | | $ 75,000,000 | | | | | | |
Milestone payment receivable | | | 420,000,000 | | | | | | |
Revenue, remaining performance obligation | | | 82,000,000 | 57,800,000 | | 57,800,000 | | | |
Non-current deferred revenue | | | | 57,700,000 | | 57,700,000 | | $ 57,800,000 | |
Research and development expense | | | | 6,600,000 | 200,000 | 13,700,000 | 400,000 | | |
Reimbursements from research and license agreements | | | | 3,300,000 | 3,700,000 | 7,800,000 | 6,900,000 | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | License and Service [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Collaboration revenue | | | | $ 100,000 | $ 200,000 | 200,000 | $ 400,000 | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Research and Development [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Variable consideration received | | | 19,300,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Joint Development Agreement [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Nonrefundable upfront payment received | | | 7,000,000 | | | | | | |
Up-front payment received | | | | | | $ 7,000,000 | | | |
Agreement description | | | | | | In connection with the JDA, the Company received a $7.0 million up-front payment from Vertex and is eligible for a one-time low seven-digit milestone payment upon the dosing of the second patient in a clinical trial with the initial product candidate. The net profits and net losses, as applicable, incurred under the JDA will be shared equally between the Company and Vertex. | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Non-Exclusive Research License [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Revenue, remaining performance obligation | | | 500,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Material Right to Discounts for Exclusive Licenses [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Revenue, remaining performance obligation | | | 57,700,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Material Right to Discounts for Exclusive Licenses [Member] | Unit One [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Revenue, remaining performance obligation | | | 22,200,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Material Right to Discounts for Exclusive Licenses [Member] | Unit Two [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Revenue, remaining performance obligation | | | 18,700,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Material Right to Discounts for Exclusive Licenses [Member] | Unit Three [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Revenue, remaining performance obligation | | | 8,400,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Material Right to Discounts for Exclusive Licenses [Member] | Unit Four [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Revenue, remaining performance obligation | | | 8,400,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Co-exclusive Development and Commercialization Licenses and Research License [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Revenue, remaining performance obligation | | | $ 23,800,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Clinical Development And Regulatory Milestone [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Number of developmental milestone events | Milestone | | | 9 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Clinical Development Milestones [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Milestone payment receivable | | | $ 90,000,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Regulatory Approval Milestone [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Milestone payment receivable | | | 235,000,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Commercial Milestones [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Milestone payment receivable | | | $ 75,000,000 | | | | | | |
Number of developmental milestone events | Milestone | | | 2 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Exercise of Exclusive Option [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Milestone payment receivable | | | $ 10,000,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Collaborative Arrangement Copromotion [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Milestone payment receivable | | | 10,000,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Commercial Milestone Event One [Member] | Minimum [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Collaboration revenue | | | 500,000,000 | | | | | | |
Vertex Pharmaceuticals Incorporated and Certain of its Subsidiaries [Member] | Commercial Milestone Event Two [Member] | Minimum [Member] | | | | | | | | | |
Research and Development Arrangement, Contract to Perform for Others [Line Items] | | | | | | | | | |
Collaboration revenue | | | $ 1,000,000,000 | | | | | | |
| |
[1] | Including the following revenue from a related party, see Notes 6 & 11 | |
[2] | Including the following research and development expense with a related party, see Notes 6 & 11 | |