Commitments and contingencies | Commitments and contingencies Leases Operating leases In 2015, we entered into a lease agreement for our headquarters and main production facility in San Francisco, California which commenced in 2016. This lease expires in 2026 and we may renew the lease for an additional ten years . This optional period was not considered reasonably certain to be exercised and therefore we determined the lease term to be a ten -year period expiring in 2026. In connection with the execution of the lease, we provided a security deposit of approximately $4.6 million which is included in restricted cash in our consolidated balance sheets. We also have other operating leases for office and laboratory space in California, Massachusetts and New York. We expect to enter into new leases and modifying existing leases as we support continued growth of our operations. As of March 31, 2020 , the weighted-average remaining lease term for our operating leases was 6.3 years and the weighted-average discount rate used to determine our operating lease liability was 11.6% . Cash payments included in the measurement of our operating lease liabilities were $2.7 million for the three months ended March 31, 2020 . The components of lease costs, which were included in cost of revenue, research and development, selling and marketing and general and administrative expenses on our consolidated statements of operations were as follows (in thousands): Three Months Ended March 31, 2020 2019 Operating lease costs $ 2,615 $ 2,517 Sublease income — (43 ) Total operating lease costs 2,615 2,474 Finance lease costs 484 420 Total lease costs $ 3,099 $ 2,894 Future minimum payments under non-cancelable operating leases as of March 31, 2020 are as follows (in thousands): 2020 (remainder of year) $ 7,770 2021 10,671 2022 10,631 2023 10,424 2024 10,560 Thereafter 18,459 Future non-cancelable minimum operating lease payments 68,515 Less: imputed interest (20,623 ) Total operating lease liabilities 47,892 Less: current portion (5,125 ) Operating lease obligations, net of current portion $ 42,767 Finance leases We have entered into various finance lease agreements to obtain laboratory equipment. The terms of our finance leases are generally three years with a weighted-average remaining lease term of 2.0 years as of March 31, 2020 and are typically secured by the underlying equipment. The weighted-average discount rate used to determine our finance lease liability was 5.7% . The portion of the future payments designated as principal repayment was classified as a finance lease obligation on our consolidated balance sheets. Finance lease assets are recorded within other assets on our consolidated balance sheet and were $5.1 million and $5.6 million as of March 31, 2020 and December 31, 2019 , respectively. Cash payments included in the measurement of our finance lease liabilities were $0.7 million and $0.5 million for the three months ended March 31, 2020 and 2019 , respectively. Future payments under finance leases at March 31, 2020 are as follows (in thousands): 2020 (remainder of year) $ 1,306 2021 611 2022 611 Total finance lease obligations 2,528 Less: interest (139 ) Present value of net minimum finance lease payments 2,389 Less: current portion (1,370 ) Finance lease obligations, net of current portion $ 1,019 Debt financing In November 2018, we entered into a Note Purchase Agreement (the "2018 Note Purchase Agreement") pursuant to which we were eligible to borrow an aggregate principal amount up to $200.0 million over a seven year maturity term which included an initial borrowing of $75.0 million in November 2018. We received net proceeds of $10.3 million after terminating and repaying the balance of our obligations of approximately $64.7 million with our previous lender. In September 2019, we settled our obligations under the 2018 Note Purchase Agreement in full for $85.7 million , which included repayment of principal of $75.0 million , accrued interest of $2.4 million , and prepayment fees of $8.9 million which were recorded as debt extinguishment costs in other income (expense), net in our statement of operations during the three months ended September 30, 2019. Interest expense related to our debt financings, excluding the impact of our Convertible Senior Notes, was nil and $2.0 million for the three months ended March 31, 2020 and 2019 , respectively. Convertible Senior Notes In September 2019, we issued, at par value, $350.0 million aggregate principal amount of 2.00% Convertible Senior Notes due 2024 in a private offering. The Convertible Senior Notes are our senior unsecured obligations and will mature on September 1, 2024, unless earlier converted, redeemed or repurchased. The Convertible Senior Notes bear cash interest at a rate of 2.0% per year, payable semi-annually in arrears on March 1 and September 1 of each year, beginning on March 1, 2020. Upon conversion, the Convertible Senior Notes will be convertible into cash, shares of our common stock or a combination of cash and shares of our common stock, at our election. Our current intent is to settle the principal amount of the Convertible Senior Notes in cash upon conversion, with any remaining conversion value being delivered in shares of our common stock. The initial conversion rate for the Convertible Senior Notes is 33.6293 shares of our common stock per $1,000 principal amount of the Convertible Senior Notes (equivalent to an initial conversion price of approximately $29.74 per share of common stock). If we undergo a fundamental change (as defined in the indenture governing the Convertible Senior Notes), the holders of the Convertible Senior Notes may require us to repurchase all or any portion of their Convertible Senior Notes for cash at a repurchase price equal to 100% of the principal amount of the Convertible Senior Notes to be repurchased plus accrued and unpaid interest to, but excluding, the redemption date. The Convertible Senior Notes will be convertible at the option of the holders at any time prior to the close of business on the business day immediately preceding March 1, 2024, only under the following circumstances: (1) during any calendar quarter commencing after the calendar quarter ending on December 31, 2019 (and only during such calendar quarter), if the last reported sale price of our common stock for at least 20 trading days (whether or not consecutive) during a period of 30 consecutive trading days ending on, and including, the last trading day of the immediately preceding calendar quarter is greater than or equal to 130% of the conversion price for the Convertible Senior Notes on each applicable trading day; (2) during the five business day period after any five consecutive trading day period (the “measurement period”) in which the trading price per $1,000 principal amount of Convertible Senior Notes for each trading day of the measurement period was less than 98% of the product of the last reported sale price of our common stock and the conversion rate on each such trading day; (3) if we call any or all of the Convertible Senior Notes for redemption, at any time prior to the close of business on the scheduled trading day immediately preceding the redemption date; or (4) upon the occurrence of specified corporate events. On or after March 1, 2024 until the close of business on the business day immediately preceding the maturity date, holders may convert their Convertible Senior Notes at any time, regardless of the foregoing circumstances. As of March 31, 2020 , none of the above circumstances had occurred and therefore the Convertible Senior Notes could not have been converted. We may not redeem the Convertible Senior Notes prior to September 6, 2022. We may redeem for cash all or any portion of the Convertible Senior Notes, at our option, on or after September 6, 2022 and on or before the 30 th scheduled trading day immediately before the maturity date if the last reported sale price of the Common Stock has been at least 130% of the conversion price then in effect for at least 20 trading days (whether or not consecutive) during any 30 consecutive trading day period (including the last trading day of such period) ending on, and including, the trading day immediately preceding the date on which we provide notice of redemption at a redemption price equal to 100% of the principal amount of the notes to be redeemed, plus accrued and unpaid interest to, but excluding, the redemption date. The Convertible Senior Notes as of March 31, 2020 consisted of the following (in thousands): Outstanding principal $ 350,000 Unamortized debt discount and issuance costs (77,613 ) Net carrying amount, liability component $ 272,387 As of March 31, 2020 , the fair value of the Convertible Senior Notes was $310.8 million . The estimated fair value of the Convertible Senior Notes, which are classified as Level 2 financial instruments, was determined based on the estimated or actual bid prices of the Convertible Senior Notes in an over-the-counter market. We recognized $5.4 million of interest expense related to the Convertible Senior Notes during the three months ended March 31, 2020 . Other commitments In the normal course of business, we enter into various purchase commitments primarily related to service agreements and laboratory supplies. At March 31, 2020 , our total future payments under noncancelable unconditional purchase commitments having a remaining term of over one year were $9.2 million . Guarantees and indemnifications As permitted under Delaware law and in accordance with our bylaws, we indemnify our directors and officers for certain events or occurrences while the officer or director is or was serving in such capacity. The maximum amount of potential future indemnification is unlimited; however, we maintain director and officer liability insurance. This insurance allows the transfer of the risk associated with our exposure and may enable us to recover a portion of any future amounts paid. We believe the fair value of these indemnification agreements is minimal. Accordingly, we did not record any liabilities associated with these indemnification agreements at March 31, 2020 or December 31, 2019 . Contingencies We were not a party to any material legal proceedings at March 31, 2020 , or at the date of this report. We are and may from time to time become involved in various legal proceedings and claims arising in the ordinary course of business. While we believe any such claims are unsubstantiated, and we believe we are in compliance with applicable laws and regulations applicable to our business, the resolution of any such claims could be material. |