Debt, Commitments and Contingencies - Additional Information (Detail) | 1 Months Ended | 3 Months Ended | 6 Months Ended | |
Jun. 30, 2017USD ($)$ / sharesshares | Apr. 30, 2017USD ($)ft² | Jan. 31, 2017 | Nov. 30, 2016USD ($)Tranche$ / sharesshares | Jun. 30, 2017USD ($)$ / sharesshares | Jun. 30, 2016USD ($) | Jun. 30, 2017USD ($)$ / sharesshares | Jun. 30, 2016USD ($) | Dec. 31, 2017USD ($) |
Debt Instrument [Line Items] | | | | | | | | | |
Net cash proceeds from borrowings | | | | | | | $ 4,930,000 | | |
Loan and security agreement, payment term | | | | | | | The first tranche of $10.0 million was funded on November 18, 2016 (Term A Loan). Under the Term A Loan, we received cash proceeds of $7.3 million, net of a $2.6 million repayment of the principal, accrued interest and the $0.5 million final payment under our previous $10.0 million loan and security agreement with SVB (SVB Loan). We did not pay any termination or other fees in connection with the repayment of amounts due under the SVB Loan | | |
Extended term of lease | | | 2 years | | | | | | |
Noncancelable operating lease extension period | | 2019-05 | 2019-05 | | | | | | |
Additional lease facility | ft² | | 7,411 | | | | | | | |
Noncancelable operating lease total additional commitment | | $ 700,000 | | | | | | | |
Rent expense | | | | | $ 300,000 | $ 100,000 | $ 400,000 | $ 200,000 | |
Research Funding and Option Agreement [Member] | The Scripps Research Institute [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Additional funding expense for research conducted | | | | | 200,000 | 200,000 | 500,000 | 400,000 | |
Research Funding and Option Agreement [Member] | National Foundation for Cancer Research [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Charitable donations | | | | | 100,000 | $ 100,000 | 200,000 | $ 200,000 | |
Silicon Valley Bank and Solar Capital, Ltd. [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Available credit under loan and security agreement | | | | $ 20,000,000 | | | | | |
Number of tranches | Tranche | | | | 3 | | | | | |
Term loan, debt issuance costs | $ 700,000 | | | | 700,000 | | 700,000 | | |
Term loan, principal outstanding before deducting debt issuance cost | 15,000,000 | | | | 15,000,000 | | 15,000,000 | | |
Final maturity payment accrued over life of term loan through interest expense | $ 1,300,000 | | | | $ 1,300,000 | | $ 1,300,000 | | |
Warrants expiration year | | | | | | | 7 years | | |
Silicon Valley Bank and Solar Capital, Ltd. [Member] | Term A Loan [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Available credit under loan and security agreement | | | | $ 10,000,000 | | | | | |
Net cash proceeds from borrowings | | | | 7,300,000 | | | | | |
Repayment of debt, principal including accrued interest | | | | 2,600,000 | | | | | |
Debt instrument, final payment | | | | $ 500,000 | | | | | |
Exercise price of warrant per share | $ / shares | | | | $ 3.14 | | | | | |
Silicon Valley Bank and Solar Capital, Ltd. [Member] | Term A Loan [Member] | Common Stock [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Warrants to purchase number of common stock, shares | shares | | | | 47,771 | | | | | |
Silicon Valley Bank and Solar Capital, Ltd. [Member] | Term B Loan [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Exercise price of warrant per share | $ / shares | $ 3.60 | | | | $ 3.60 | | $ 3.60 | | |
Silicon Valley Bank and Solar Capital, Ltd. [Member] | Term B Loan [Member] | Common Stock [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Warrants to purchase number of common stock, shares | shares | 20,833 | | | | 20,833 | | 20,833 | | |
Silicon Valley Bank and Solar Capital, Ltd. [Member] | Tranche One [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Loan and security agreement funded date | | | | | | | Nov. 18, 2016 | | |
Silicon Valley Bank and Solar Capital, Ltd. [Member] | Tranche One [Member] | Term A Loan [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Available credit under loan and security agreement | | | | $ 10,000,000 | | | | | |
Silicon Valley Bank and Solar Capital, Ltd. [Member] | Tranche Two [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Available credit under loan and security agreement | | | | 5,000,000 | | | | | |
Silicon Valley Bank and Solar Capital, Ltd. [Member] | Tranche Three [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Available credit under loan and security agreement | | | | $ 5,000,000 | | | | | |
Loan Amendment Agreement with SVB and Solar [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Loan and security agreement, payment term | | | | | | | Pursuant to the Loan Agreement, as amended, we are obligated to make interest only payments through December 1, 2017, followed by consecutive equal monthly payments of principal and interest in arrears through the maturity date of November 18, 2020. The interest only payments will be extended to June 1, 2018 upon achievement of certain milestones as set forth in the Loan Agreement, as amended. | | |
Loan amendment, description | | | | | | | In June 2017, we entered into an amendment of the Loan Agreement which modifies certain conditions under which we may receive and repay term loans under the Loan Agreement. The Loan Agreement, as amended, provides that (i) up to $5.0 million in the second tranche of term loans could be drawn down by us at any time before the earlier of June 30, 2017 or an event of default, at our discretion, and (ii) an additional $5.0 million in the third tranche of term loans may be drawn down by us at any time after June 30, 2017 and before the earlier of December 31, 2017 or an event of default, at our discretion, subject to achievement of certain milestones. In connection with the amendment to the Loan Agreement, the second tranche of $5.0 million was funded on June 30, 2017 (Term B Loan). We received cash proceeds of $4.9 million, net of debt issuance cost of $0.1 million. If we fail to meet certain milestones set forth in the Loan Agreement, as amended, by August 31, 2017, then we will be required to secure the Term B Loan with $5.0 million of cash until such time that those milestones are met. If such milestones are not met by October 31, 2017, we have the option to maintain the cash security for the Term B Loan or prepay the Term B Loan without the prepayment fee described below. | | |
Required cash security | $ 5,000,000 | | | | $ 5,000,000 | | $ 5,000,000 | | |
Maturity date | | | | | | | Nov. 18, 2020 | | |
Percentage of funded amounts for final payment | | | | 8.75% | | | | | |
Non-usage fee percentage | | | | 2.00% | | | | | |
Loan Amendment Agreement with SVB and Solar [Member] | Prime Rate | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Interest rate spread on variable rate | | | | 4.10% | | | | | |
Loan Amendment Agreement with SVB and Solar [Member] | Minimum [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Prepayment fee percentage | | | | 1.00% | | | | | |
Loan Amendment Agreement with SVB and Solar [Member] | Maximum [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Prepayment fee percentage | | | | 3.00% | | | | | |
Loan Amendment Agreement with SVB and Solar [Member] | Term B Loan [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Net cash proceeds from borrowings | 4,900,000 | | | | | | | | |
Term loan, debt issuance costs | 100,000 | | | | 100,000 | | $ 100,000 | | |
Loan Amendment Agreement with SVB and Solar [Member] | Tranche Two [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Available credit under loan and security agreement | 5,000,000 | | | | 5,000,000 | | $ 5,000,000 | | |
Loan Amendment Agreement with SVB and Solar [Member] | Tranche Two [Member] | Maximum [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Loan and security agreement funded date | | | | | | | Jun. 30, 2017 | | |
Loan Amendment Agreement with SVB and Solar [Member] | Tranche Two [Member] | Term B Loan [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Current borrowing capacity under loan and security agreement | $ 5,000,000 | | | | $ 5,000,000 | | $ 5,000,000 | | |
Loan Amendment Agreement with SVB and Solar [Member] | Tranche Three [Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Loan and security agreement funded date, description | | | | | | | after June 30, 2017 and before the earlier of December 31, 2017 | | |
Loan Amendment Agreement with SVB and Solar [Member] | Tranche Three [Member] | Scenario Forecast [ Member] | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | |
Available credit under loan and security agreement | | | | | | | | | $ 5,000,000 |