License and Research Agreements - Additional Information (Details) - USD ($) $ / shares in Units, $ in Millions | 1 Months Ended | 3 Months Ended | 6 Months Ended | |
Oct. 31, 2016 | Jul. 31, 2016 | Jun. 30, 2016 | Jun. 30, 2017 | Jun. 30, 2016 | Jun. 30, 2017 | Jun. 30, 2016 | Dec. 31, 2016 |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Common stock purchased | | | | 42,428,124 | | 42,428,124 | | 41,240,230 |
Kyowa Hakko Kirin Collaboration | License Agreement | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Reduction in research and development expenses | | | | $ 7.9 | $ 5.9 | $ 15.3 | $ 10.5 | |
Reduction in general and administrative expenses | | | | 0.6 | 0.2 | 1.1 | 0.5 | |
License agreement receivable | | | | 8.5 | | $ 8.5 | | $ 8.6 |
Kyowa Hakko Kirin Collaboration | License Agreement | Profit Share Territory | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Remaining profit or loss share percentage on commercializing products | | | | | | 50.00% | | |
Tiered double-digit revenue share percentage entitled to receive | | | | | | 20.00% | | |
Kyowa Hakko Kirin Collaboration | Maximum | License Agreement | European Territory | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Percentage of royalty on net sales entitled to receive | | | | | | 10.00% | | |
Takeda License and Collaboration and Purchase Agreements | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Reduction in research and development expenses | | | | | | $ 0.3 | | |
Estimated fair value of license recorded as research and development expense | | | $ 0.7 | | | | | |
Research collaboration agreement, period | | | 5 years | | | | | |
Common stock purchased | | 374,590 | | | | | | |
Common stock value | | $ 40 | | | | | | |
Common closing stock price per share | | $ 72.95 | | | | | | |
Common stock shares issued premium amount | | $ 12.7 | | | | | | |
Option to purchase additional common stock, value | | $ 25 | | | | | | |
Volume weighted average price, period | | 30 days | | | | | | |
Total arrangement consideration received | | $ 14.3 | | | | | | |
Estimated transaction price | | | | | | 0.6 | | |
Liability under collaboration arrangement | | | | 12.5 | | 12.5 | | |
Contract liability | | | | $ 0.3 | | $ 0.3 | | |
Takeda License and Collaboration and Purchase Agreements | Put Option | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Estimated fair value of future options | | 0.9 | | | | | | |
Common stock issued upon option exercised in period, shares | 352,530 | | | | | | | |
Common stock issued upon option exercised in period, value | $ 25 | | | | | | | |
Takeda License and Collaboration and Purchase Agreements | Common Stock | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Fair market value of shares issued | | 27.3 | | | | | | |
Takeda License and Collaboration and Purchase Agreements | Maximum | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Estimated approximate cost for expected work performed | | 13.7 | | | | | | |
Takeda License and Collaboration and Purchase Agreements | Maximum | Development Milestones | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Future contingent milestone payments | | | $ 7.5 | | 7.5 | | 7.5 | |
Takeda License and Collaboration and Purchase Agreements | Maximum | Regulatory Milestones | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Future contingent milestone payments | | | 75 | | 75 | | 75 | |
Takeda License and Collaboration and Purchase Agreements | Maximum | Commercial Milestones | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Future contingent milestone payments | | | $ 150 | | $ 150 | | $ 150 | |
Takeda License and Collaboration and Purchase Agreements | Minimum | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Estimated approximate cost for expected work performed | | $ 10 | | | | | | |