Consolidated Statements of Operations and Comprehensive Loss - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Income Statement [Abstract]      
Revenue $ 0 $ 0 $ 0
Operating expenses:      
Research and development 39,936 54,618 27,391
General and administrative 18,289 19,195 8,141
Total operating expenses 58,225 73,813 35,532
Loss from operations (58,225) (73,813) (35,532)
Other income (expense):      
Interest income 894 438 28
Interest expense (529) (806) (870)
Foreign currency transaction gains (losses), net (18) (105) (104)
Total other income (expense), net 347 (473) (946)
Net loss (57,878) (74,286) (36,478)
Accretion of redeemable convertible preferred stock to redemption value     (92)
Net loss attributable to common stockholders $ (57,878) $ (74,286) $ (36,570)
Net loss per share attributable to common stockholders, basic and diluted $ (2.12) $ (2.78) $ (3.00)
Weighted average common shares outstanding, basic and diluted 27,297,934 26,756,079 12,189,155
Comprehensive loss:      
Net loss $ (57,878) $ (74,286) $ (36,478)
Other comprehensive loss:      
Unrealized gain (loss) on marketable securities 127 (172) (35)
Total other comprehensive loss 127 (172) (35)
Total comprehensive loss $ (57,751) $ (74,458) $ (36,513)