Subsequent Events - Additional Information (Detail) - USD ($) $ / shares in Units, $ in Thousands | May 04, 2017 | Apr. 12, 2017 | Apr. 03, 2017 | Mar. 31, 2017 | Dec. 31, 2016 |
Subsequent Event [Line Items] | | | | | |
Proceeds from issuance of common stock, net of issuance costs | | | | $ 1,782 | |
Common stock, shares outstanding | | | | 1,000,036 | 801,756 |
Preferred stock, shares outstanding | | | | 0 | 0 |
Options to purchase aggregate shares of common stock | | | | 93,959 | |
Options to purchase aggregate shares of common stock, weighted-average exercise price | | | | $ 120 | $ 127.56 |
Options to purchase aggregate shares of common stock, weighted-average exercise price | | | | 143.44 | |
Redeemable Convertible Promissory Notes | | | | | |
Subsequent Event [Line Items] | | | | | |
Redeemable convertible notes, conversion per share price | | | | $ 137.85 | |
Common Stock | | | | | |
Subsequent Event [Line Items] | | | | | |
Issuance of stock, shares | | | | 198,280 | |
Subsequent Event | | | | | |
Subsequent Event [Line Items] | | | | | |
Proceeds from issuance of common stock, net of issuance costs | | $ 18,700 | | | |
Warrants to purchase common stock | | 2,070,000 | | | |
Warrants exercise price | | $ 5.50 | | | |
Subsequent Event | Overallotment Option | | | | | |
Subsequent Event [Line Items] | | | | | |
Warrants to purchase common stock | | 270,000 | | | |
Subsequent Event | Public Offering | | | | | |
Subsequent Event [Line Items] | | | | | |
Warrants exercise price | $ 5.50 | | | | |
Common stock, shares outstanding | 4,260,561 | | | | |
Subsequent Event | Public Offering | 2015 Stock Incentive Plan | | | | | |
Subsequent Event [Line Items] | | | | | |
Options to purchase aggregate shares of common stock | 44,670 | | | | |
Subsequent Event | Public Offering | Other Warrants to Purchase Common Stock | | | | | |
Subsequent Event [Line Items] | | | | | |
Warrants exercise price | $ 145.11 | | | | |
Subsequent Event | Public Offering | Other Options to Purchase Common Stock | | | | | |
Subsequent Event [Line Items] | | | | | |
Warrants to purchase common stock | 12,039 | | | | |
Subsequent Event | Public Offering | Other Options to Purchase Common Stock | 2015 Stock Incentive Plan | | | | | |
Subsequent Event [Line Items] | | | | | |
Options to purchase aggregate shares of common stock | 80,619 | | | | |
Options to purchase aggregate shares of common stock, weighted-average exercise price | $ 58.65 | | | | |
Options to purchase aggregate shares of common stock, weighted-average exercise price | $ 154.01 | | | | |
Subsequent Event | Public Offering | Redeemable Convertible Promissory Notes | | | | | |
Subsequent Event [Line Items] | | | | | |
Redeemable convertible promissory notes convertible into share | $ 11,000 | | | | |
Redeemable convertible notes, conversion per share price | $ 137.85 | | | | |
Subsequent Event | Series A Preferred Stock | | | | | |
Subsequent Event [Line Items] | | | | | |
Issuance of stock, shares | | 13,350 | | | |
Conversion of redeemable convertible notes to common stock | | 200 | | | |
Subsequent Event | Series A Preferred Stock | Public Offering | | | | | |
Subsequent Event [Line Items] | | | | | |
Preferred stock, shares outstanding | 5,750 | | | | |
Subsequent Event | Common Stock | | | | | |
Subsequent Event [Line Items] | | | | | |
Issuance of stock, shares | | 1,470,000 | | | |
Subsequent Event | Common Stock | Overallotment Option | | | | | |
Subsequent Event [Line Items] | | | | | |
Issuance of stock, shares | | 540,000 | | | |
Subsequent Event | Common Stock | Public Offering | | | | | |
Subsequent Event [Line Items] | | | | | |
Warrants to purchase common stock | 2,041,075 | | | | |
Subsequent Event | Common Stock | Series A Preferred Stock | Public Offering | | | | | |
Subsequent Event [Line Items] | | | | | |
Conversion of redeemable convertible notes to common stock | 1,150,000 | | | | |
Capital on Demand Sales Agreement with Jones Trading Institutional Services LLC | | | | | |
Subsequent Event [Line Items] | | | | | |
Issuance of stock, shares | | | | 198,280 | |
Proceeds from issuance of common stock, net of issuance costs | | | | $ 1,800 | |
Capital on Demand Sales Agreement with Jones Trading Institutional Services LLC | Subsequent Event | | | | | |
Subsequent Event [Line Items] | | | | | |
Issuance of stock, shares | | | 241,600 | | |
Proceeds from issuance of common stock, net of issuance costs | | | $ 3,500 | | |