Summary of significant accounting policies | 2. Summary of significant accounting policies Principles of consolidation The Company's consolidated financial statements have been prepared in conformity with accounting principles generally accepted in the United States of America ("U.S. GAAP"). The consolidated financial statements include the accounts of the Company and its wholly owned subsidiaries. All intercompany balances and transactions have been eliminated in consolidation. Use of estimates The preparation of financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent liabilities as of the date of the financial statements and the reported amounts of revenue and expenses during the reporting period. The Company believes judgment is involved in determining revenue recognition; the recoverability of long-lived assets; the fair value of the Company's common stock prior to the IPO; stock-based compensation expense; and income tax uncertainties. The Company bases these estimates on historical and anticipated results, trends, and various other assumptions that the Company believes are reasonable under the circumstances, including assumptions as to future events. Actual results could differ materially from those estimates and assumptions. Concentrations of credit risk and other risks and uncertainties Financial instruments that potentially subject the Company to a concentration of credit risk consist of cash and cash equivalents. The Company's cash and cash equivalents are held by financial institutions in the United States and Chile. Such deposits may exceed federally insured limits. As of December 31, 2015, substantially all of the Company's revenue has been derived from sales of its assays. Significant customers are those which represent 10% or more of the Company's total revenue for each year presented on the statements of operations and comprehensive loss. For each significant customer, revenue as a percentage of total revenue are as follows: December 31, Customers 2015 2014 2013 Customer A * * % Customer B * % — Customer C % * * * Less than 10% of total revenue Cash equivalents The Company considers all highly liquid investments with original maturities of three months or less from the date of purchase to be cash equivalents. Cash equivalents consist primarily of amounts invested in money market funds and U.S government agency securities. Marketable securities All marketable securities have been classified as "available-for-sale" and are carried at estimated fair value as determined based upon quoted market prices or pricing models for similar securities. Management determines the appropriate classification of its marketable securities in debt securities at the time of purchase and reevaluates such designation as of each balance sheet date. Short-term marketable securities have maturities less than 365 days as of the balance sheet date. Unrealized gains and losses are excluded from earnings and are reported as a component of other comprehensive income (loss). Realized gains and losses and declines in fair value judged to be other than temporary, if any, on available-for-sale securities are included in interest and other income (expense), net. The cost of securities sold is based on the specific-identification method. Interest on marketable securities is included in interest and other income (expense), net. Restricted cash Restricted cash consists of money market funds that serve as: collateral for a security deposit for the Company's lease agreement for a laboratory and headquarters entered into in September 2015; collateral for a credit card agreement at one of the Company's financial institutions; and for securing a letter of credit as collateral for the Company's Cambridge Massachusetts facility sublease agreement. Internal-use software The Company capitalizes third-party costs incurred in the application development stage to design and implement internal-use software. Maintenance and training costs relating to internal-use software are expensed as incurred. Capitalized internal-use software costs are recorded as property and equipment and are amortized over estimated useful lives of up to three years on a straight line basis. Amortization of capitalized internal-use software costs is recorded as sales and marketing expense. During the years ended December 31, 2015, 2014 and 2013, the Company capitalized $1.5 million, $550,000 and $250,000, respectively, of internal-use software development costs. Internal-use software amortization was $718,000, $152,000, and zero, in 2015, 2014 and 2013, respectively. The carrying value of capitalized internal-use software at December 31, 2015 and 2014 was $1.4 million and $648,000, respectively. The weighted average useful life of capitalized internal-use software at December 31, 2015 was 13 months. Deferred offering costs Deferred offering costs, which primarily consist of direct incremental legal, accounting and other fees relating to the IPO, were initially capitalized. As of December 31, 2014, the Company capitalized $1.9 million of deferred offering costs in other assets on the consolidated balance sheets. The deferred offering costs were subsequently offset against IPO proceeds upon the closing of the IPO in February 2015. Leases The Company rents its facilities under operating lease agreements and recognizes related rent expense on a straight-line basis over the term of the lease. Some of the lease agreements contain rent holidays, scheduled rent increases, lease incentives, and renewal options. Rent holidays and scheduled rent increases are included in the determination of rent expense to be recorded over the lease term. Lease incentives are recognized as a reduction of rent expense on a straight-line basis over the term of the lease. Renewals are not assumed in the determination of the lease term unless they are deemed to be reasonably assured at the inception of the lease. The Company recognizes rent expense beginning on the date it obtains the legal right to use and control the leased space. Property and equipment Property and equipment are stated at cost less accumulated depreciation and amortization. Depreciation is computed using the straight-line method over the estimated useful lives of the assets, generally between three and seven years. Leasehold improvements are amortized using the straight-line method over the shorter of the estimated useful life of the asset or the term of the lease. Amortization expense of assets acquired through capital leases is included in depreciation and amortization expense in the consolidated statements of operations and comprehensive loss. Maintenance and repairs are charged to expense as incurred, and improvements and betterments are capitalized. When assets are retired or otherwise disposed of, the cost and accumulated depreciation are removed from the balance sheet and any resulting gain or loss is reflected in the statements of operations and comprehensive loss in the period realized. The useful lives of the property and equipment are as follows: Furniture and fixtures 7 years Automobiles 7 years Laboratory equipment 5 years Computer equipment 3 years Software 3 years Leasehold improvements Shorter of lease term or estimated useful life Long-lived assets The Company reviews long-lived assets for impairment whenever events or changes in circumstances indicate that the carrying amount of the assets may not be recoverable. An impairment loss is recognized when the total estimated future undiscounted cash flows expected to result from the use of the asset and its eventual disposition are less than its carrying amount. Impairment, if any, would be assessed using discounted cash flows or other appropriate measures of fair value. The Company has not recorded an impairment of any long-lived assets during any of the periods presented. Fair value of financial instruments The Company's financial instruments consist principally of cash and cash equivalents, marketable securities, accounts payable, capital leases and debt relating to equipment financing. The carrying amounts of certain of these financial instruments, including cash and cash equivalents, and accounts payable, approximate fair value due to their short maturities. Based on borrowing rates available to us, the carrying value of capital leases approximates fair value. See Note 4, "Fair value measurements" for further information on the fair value of the Company's financial instruments. Revenue recognition Revenue is generated from the sale of tests that provide analysis and associated interpretation of the sequencing of parts of the genome. Revenue associated with subsequent re-requisition services was de minimis for all periods presented. Revenue is recognized when persuasive evidence of an arrangement exists; delivery has occurred or services have been rendered; the fee is fixed or determinable; and collectability is reasonably assured. The criterion for whether the fee is fixed or determinable and whether collectability is reasonably assured are based on management's judgments. When evaluating collectability, in situations where contracted reimbursement coverage does not exist, the Company considers whether the Company has sufficient history to reliably estimate a payer's individual payment patterns. The Company reviews the number of tests paid against the number of tests billed over at least several months of payment history and the payer's outstanding balance for unpaid tests to determine whether payments are being made at a consistently high percentage of tests billed and at appropriate amounts given the amount billed. For most payers, the Company has not been able to demonstrate a predictable pattern of collectability, and therefore recognizes revenue when payment is received. For payers who have demonstrated a consistent pattern of payment of tests billed at appropriate amounts, the Company recognizes revenue, at estimated realizable amounts, upon delivery of test results. Cost of revenue Cost of revenue reflects the aggregate costs incurred in delivering the genetic testing results to clinicians and includes expenses for personnel costs including stock-based compensation, materials and supplies, equipment and infrastructure expenses associated with testing and allocated overhead including rent, equipment depreciation and utilities. Costs associated with performing the Company's test are recorded as the test is processed regardless of whether and when revenue is recognized with respect to that test. Research and development Research and development costs are charged to operations as incurred. Research and development costs include, but are not limited to, payroll and personnel- related expenses, stock-based compensation expense, reagents and laboratory supplies, consulting costs, and allocated overhead including rent, information technology, equipment depreciation and utilities. Income taxes The Company uses the asset and liability method of accounting for income taxes. Under this method, deferred tax assets and liabilities are determined based on the differences between the financial reporting and the tax bases of assets and liabilities and are measured using the enacted tax rates and laws that will be in effect when the differences are expected to reverse. A valuation allowance is provided when it is more likely than not that some portion or all of a deferred tax asset will not be realized. Stock-based compensation The Company measures its stock-based payment awards made to employees and directors based on the estimated fair values of the awards and recognizes the compensation expense over the requisite service period. The Company uses the Black-Scholes option-pricing model to estimate the fair value of its stock-based awards. Stock-based compensation expense is recognized using the straight-line method. Stock-based compensation expense is based on the value of the portion of stock-based payment awards that is ultimately expected to vest. As such, the Company's stock-based compensation is reduced for the estimated forfeitures at the date of grant and revised, if necessary, in subsequent periods if actual forfeitures differ from those estimates. The Company accounts for compensation expense related to stock options granted to non-employees based on the fair values estimated using the Black-Scholes model. Stock options granted to non-employees are remeasured at each reporting date until the award is vested. Foreign currency transactions The Company uses the U.S. dollar as its functional currency for its subsidiary in Chile. Foreign currency assets and liabilities are remeasured into U.S. dollars using the end of period exchange rates except for nonmonetary assets and liabilities, which are remeasured using historical exchange rates. Expenses are remeasured using an average exchange rate for the respective period. Gains or losses from foreign currency transactions are included in other income (expense), net, on the consolidated statements of operations. Foreign currency transaction gains and losses have not been significant to the consolidated financial statements for all periods presented. Comprehensive loss Comprehensive loss is composed of two components: net loss and other comprehensive loss. Other comprehensive loss refers to gains and losses that under U.S. GAAP are recorded as an element of stockholders' equity(deficit), but are excluded from net loss. The Company's other comprehensive loss consists of unrealized gains and losses on investments in available-for-sale securities. Net loss per share attributable to common stockholders Basic net loss per share attributable to common stockholders is calculated by dividing net loss attributable to common stockholders by the weighted-average number of common shares outstanding during the period, without consideration of common stock equivalents. Diluted net loss per share attributable to common stockholders is computed by dividing net loss attributable to common stockholders by the weighted-average number of common share equivalents outstanding for the period determined using the treasury stock method. Potentially dilutive securities consisting of convertible preferred stock, options to purchase common stock and restricted stock units are considered to be common stock equivalents and were excluded from the calculation of diluted net loss per share attributable to common stockholders because their effect would be antidilutive for all periods presented. Common shares subject to repurchase are excluded from weighted-average shares. For the years ended December 31, 2015, 2014 and 2013; 4,659, 23,903 and 54,407 shares subject to repurchase, respectively, are excluded from the basic loss per share calculation. Recent accounting pronouncements In February 2016, the Financial Accounting Standards Board ("FASB") issued Accounting Standards Update ("ASU") 2016-02, Leases (Topic 842). Under the new guidance, lessees will be required to recognize a lease liability and a right-of-use asset for all leases (with the exception of short-term leases) at the commencement date. Lessor accounting under ASU 2016-02 is largely unchanged. ASU 2016-02 is effective for annual and interim periods beginning on or after December 15, 2018 and early adoption is permitted. Under ASU 2016-02, lessees (for capital and operating leases) and lessors (for sales-type, direct financing, and operating leases) must apply a modified retrospective transition approach for leases existing at, or entered into after, the beginning of the earliest comparative period presented in the financial statements. Lessees and lessors may not apply a full retrospective transition approach. The Company is evaluating the effect that ASU 2014-09 will have on its consolidated financial statements and related disclosures. The Company has not yet selected an implementation date nor has it determined the effect of the standard on its ongoing financial reporting. In November 2015, the FASB issued ASU 2015-17, Balance Sheet Classification of Deferred Taxes to simplify the presentation of deferred income taxes. The amendments in this update require that deferred tax liabilities and assets be classified as noncurrent in a classified statement of financial position. The Company has elected to early adopt ASU 2015-17 as of December 31, 2015. Because the net deferred tax assets have been offset by a valuation allowance and the deferred tax liabilities were not material no deferred tax assets or liabilities were disclosed in prior years in the classified balance sheet and therefore this early adoption has no impact on the Company's consolidated financial statements for the periods presented. In April, 2015, the FASB issued ASU 2015-03, Interest—Imputation of Interest (Subtopic 835-30): Simplifying the Presentation of Debt Issuance Costs. ASU 2015-03 simplifies the presentation of debt issuance costs and requires debt issuance costs related to a recognized debt liability to be presented in the balance sheet as a direct deduction from the debt liability instead of as an asset. ASU 2015-03 is effective for annual and interim periods beginning on or after December 15, 2015 and early adoption is permitted. The Company early adopted ASU 2015-03 in the second quarter of 2015 and the adoption of this standard did not have an impact on the Company's consolidated financial statements. In May, 2014, the FASB issued ASU 2014-09, Revenue from Contracts with Customers ("ASU 2014-09"), which requires an entity to recognize the amount of revenue to which it expects to be entitled for the transfer of promised goods or services to customers. ASU 2014-09 will replace most existing revenue recognition guidance in U.S. GAAP when it becomes effective. In August, 2015, the FASB issued ASU 2015-14, Revenue from Contracts with Customers (Topic 606). ASU 2015-14 defers the effective date of ASU 2014-09 for public business entities by one year to annual reporting periods beginning after December 15, 2017. Therefore, the new standard will become effective for the Company on January 1, 2018 and early application is permitted for periods beginning on or after January 1, 2017. The standard permits the use of either the retrospective or cumulative effect transition method. The Company is evaluating the effect that ASU 2014-09 will have on its consolidated financial statements and related disclosures. The Company has not yet selected an implementation date or a transition method nor has it determined the effect of the standard on its ongoing financial reporting. In August 2014, the FASB issued ASU No. 2014-15 (Subtopic 205- 40), Presentation of Financial Statements—Going Concern: Disclosure of Uncertainties about an Entity's Ability to Continue as a Going Concern ("ASU 2014-15"), which provides guidance about management's responsibility to evaluate whether there is substantial doubt about the Company's ability to continue as a going concern and to provide related footnote disclosure. ASU 2014-15 will be effective in the fourth quarter of 2016. Early application is permitted. The adoption of this standard is not expected to have an effect on the Company's consolidated financial statements. |