License and Research Agreements - Additional Information (Details) - USD ($) $ / shares in Units, $ in Thousands | 1 Months Ended | 3 Months Ended | 9 Months Ended | |
Oct. 31, 2016 | Jul. 31, 2016 | Jun. 30, 2016 | Sep. 30, 2016 | Sep. 30, 2015 | Sep. 30, 2016 | Sep. 30, 2015 | Dec. 31, 2015 |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Common stock purchased | | | | 40,052,032 | | 40,052,032 | | 38,882,394 |
Liability under collaboration arrangement | | | | $ 11,358 | | $ 11,358 | | |
Research and development | | | | 48,711 | $ 29,704 | 132,458 | $ 70,172 | |
Kyowa Hakko Kirin Collaboration | License Agreement | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Reduction in research and development cost | | | | 7,200 | $ 3,400 | 18,200 | $ 7,100 | |
License agreement receivable | | | | 7,200 | | $ 7,200 | | $ 3,800 |
Takeda License and Collaboration and Purchase Agreements | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Estimated fair value of license recorded as research and development expense | | | $ 700 | | | | | |
Research collaboration agreement, period | | | 5 years | | | | | |
Common stock purchased | | 374,590 | | | | | | |
Common stock value | | $ 40,000 | | | | | | |
Common closing stock price per share | | $ 72.95 | | | | | | |
Common stock shares issued premium amount | | $ 12,700 | | | | | | |
Option to purchase additional common stock, value | | $ 25,000 | | | | | | |
Volume weighted average price, period | | 30 days | | | | | | |
Second option to purchase additional common stock, value | | $ 10,000 | | | | | | |
Common stock purchase agreement, terms | | | | | | Takeda is subject to a 180-day lock-up provision as a result of the initial purchase of common stock, is subject to a five-year standstill (subject to customary exceptions or release), and has registration rights for purchases of common stock. | | |
Total arrangement consideration received | | 14,300 | | | | | | |
Initial development plan period | | | | | | Approximately one and a half years | | |
Liability under collaboration arrangement | | | | 14,300 | | $ 14,300 | | |
Research and development | | | | $ 300 | | | | |
Takeda License and Collaboration and Purchase Agreements | Put Option | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Estimated fair value of future options | | $ 900 | | | | | | |
Takeda License and Collaboration and Purchase Agreements | Put Option | Subsequent Event | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Common stock issued upon option exercised in period, shares | 352,530 | | | | | | | |
Common stock issued upon option exercised in period, value | $ 25,000 | | | | | | | |
Takeda License and Collaboration and Purchase Agreements | Put Option | Monte Carlo Simulation | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Equity volatility percentage | | 70.00% | | | | | | |
Takeda License and Collaboration and Purchase Agreements | Common Stock | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Fair market value of shares issued | | $ 27,300 | | | | | | |
Takeda License and Collaboration and Purchase Agreements | Maximum | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Estimated approximate cost for expected work performed | | 13,000 | | | | | | |
Takeda License and Collaboration and Purchase Agreements | Minimum | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Estimated approximate cost for expected work performed | | $ 10,000 | | | | | | |
Takeda License and Collaboration and Purchase Agreements | Development Milestones | Maximum | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Future contingent milestone payments | | | $ 7,500 | | | | | |
Takeda License and Collaboration and Purchase Agreements | Regulatory Milestones | Maximum | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Future contingent milestone payments | | | 75,000 | | | | | |
Takeda License and Collaboration and Purchase Agreements | Commercial Milestones | Maximum | | | | | | | | |
Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] | | | | | | | | |
Future contingent milestone payments | | | $ 150,000 | | | | | |