Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Use of Estimates The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities, the disclosure of contingent assets and liabilities at the date of the consolidated financial statements and the reported amounts of expenses during the reporting periods. Significant estimates and assumptions reflected in these consolidated financial statements include, but are not limited to, revenue recognition, the accrual of research and development expenses and the valuation of stock-based awards. Estimates are periodically reviewed in light of changes in circumstances, facts and experience. Actual results could differ from the Company’s estimates. Cash Equivalents The Company considers all short-term, highly liquid investments with original maturities of 90 days or less at acquisition date to be cash equivalents. Cash equivalents, which consist of money market accounts, corporate bonds, and certificates of deposit purchased with original maturities of less than 90 days from the date of purchase, are stated at fair value. Restricted Cash The Company held cash of $1,513 as of December 31, 2017 and $1,400 as of December 31, 2016 in a separate restricted bank account as a security deposit for the lease of the Company’s facilities. The Company has classified these deposits as long-term restricted cash on its balance sheet. Investments The Company classifies its available-for-sale investments as current assets on the consolidated balance sheet if they mature within one year from the balance sheet date. The Company classifies all of its investments as available-for-sale securities. The Company’s investments are measured and reported at fair value using quoted prices in active markets for similar securities. Unrealized gains and losses on available-for-sale securities are reported as a separate component of stockholders’ equity (deficit). The cost of securities sold is determined on a specific identification basis, and realized gains and losses are included in other income (expense) within the consolidated statement of operations and comprehensive loss. If any adjustment to fair value reflects a decline in the value of the investment that the Company considers to be “other than temporary”, the Company reduces the investment to fair value through a charge to the consolidated statement of operations and comprehensive loss. No such adjustments were necessary during the periods presented. Concentration of Credit Risk and of Significant Suppliers Financial instruments that potentially expose the Company to concentrations of credit risk consist primarily of cash, cash equivalents and investments. The Company has all cash, cash equivalents and investments balances at accredited financial institutions, in amounts that exceed federally insured limits. The Company does not believe that it is subject to unusual credit risk beyond the normal credit risk associated with commercial banking relationships. The Company is dependent on third-party manufacturers to supply products for research and development activities of its programs, including pre-clinical and clinical testing. These programs could be adversely affected by a significant interruption in the supply of such drug substance products. Fair Value Measurements Certain assets and liabilities are carried at fair value under GAAP. Fair value is defined as the exchange price that would be received for an asset or paid to transfer a liability (an exit price) in the principal or most advantageous market for the asset or liability in an orderly transaction between market participants on the measurement date. Valuation techniques used to measure fair value must maximize the use of observable inputs and minimize the use of unobservable inputs. Financial assets and liabilities carried at fair value are to be classified and disclosed in one of the following three levels of the fair value hierarchy, of which the first two are considered observable and the last is considered unobservable: • Level 1—Quoted prices in active markets for identical assets or liabilities. • Level 2—Observable inputs (other than Level 1 quoted prices), such as quoted prices in active markets for similar assets or liabilities, quoted prices in markets that are not active for identical or similar assets or liabilities, or other inputs that are observable or can be corroborated by observable market data. • Level 3—Unobservable inputs that are supported by little or no market activity and that are significant to determining the fair value of the assets or liabilities, including pricing models, discounted cash flow methodologies and similar techniques. The Company’s cash equivalents and investments are carried at fair value, determined according to the fair value hierarchy described above. The Company’s investments in certificates of deposit are carried at amortized cost, which approximates fair value. Certain cash equivalents or investments that are measured at fair value using the net asset value per share (or its equivalent) practical expedient have not been classified in the fair value hierarchy. The carrying values of the Company’s accounts payable and accrued expenses approximate their fair value due to the short-term nature of these liabilities. Deferred Offering Costs The Company capitalizes certain legal, accounting and other third-party fees that are directly associated with in-process equity financings as deferred offering costs (non-current) until such financings are consummated. After consummation of the equity financing, these costs are recorded in stockholders’ equity (deficit) as a reduction of additional paid-in capital generated as a result of the financing. Property and Equipment Property and equipment are stated at cost less accumulated depreciation. Depreciation expense is recognized using the straight-line method over the useful life of the asset. Laboratory equipment is depreciated over five years. Computer equipment and furniture and office equipment are depreciated over three years. Leasehold improvements are amortized over the shorter of the lease term or the estimated useful life of the related asset. Expenditures for repairs and maintenance of assets are charged to expense as incurred. Upon retirement or sale, the cost and related accumulated depreciation of assets disposed of are removed from the accounts and any resulting gain or loss is included in loss from operations. Impairment of Long-Lived Assets Long-lived assets consist of property and equipment. Long-lived assets to be held and used are tested for recoverability whenever events or changes in business circumstances indicate that the carrying amount of the assets may not be fully recoverable. Factors that the Company considers in deciding when to perform an impairment review include significant underperformance of the business in relation to expectations, significant negative industry or economic trends and significant changes or planned changes in the use of the assets. If an impairment review is performed to evaluate a long-lived asset for recoverability, the Company compares forecasts of undiscounted cash flows expected to result from the use and eventual disposition of the long-lived asset to its carrying value. An impairment loss would be recognized when estimated undiscounted future cash flows expected to result from the use of an asset are less than its carrying amount. The impairment loss would be based on the excess of the carrying value of the impaired asset over its fair value, determined based on discounted cash flows. To date, the Company has not recorded any impairment losses on long-lived assets. Research and Development Costs Research and development costs are expensed as incurred. Research and development expenses include salaries, stock-based compensation and benefits of employees, third-party license fees and other operational costs related to the Company’s research and development activities, including allocated facility-related expenses and external costs of outside vendors engaged to conduct both pre-clinical studies and clinical trials. Research Contract Costs and Accruals The Company has entered into various research and development contracts with research institutions and other companies. These agreements are generally cancelable, and related payments are recorded as research and development expenses as incurred. The Company records accruals for estimated ongoing research costs. When evaluating the adequacy of the accrued liabilities, the Company analyzes progress of the studies, including the phase or completion of events, invoices received and contracted costs. Significant judgments and estimates are made in determining the accrued balances at the end of any reporting period. Actual results could differ from the Company’s estimates. The Company’s historical accrual estimates have not been materially different from the actual costs. Patent Costs All patent-related costs incurred in connection with filing and prosecuting patent applications are expensed as incurred due to the uncertainty about the recovery of the expenditure. Amounts incurred are classified as general and administrative expenses. Accounting for Stock-Based Compensation The Company measures all stock options and other stock-based awards granted to employees and directors based on the fair value on the date of the grant and recognizes compensation expense of those awards over the requisite service period, which is generally the vesting period of the respective award. Generally, the Company issues stock options, restricted stock units and restricted stock awards with only service-based vesting conditions and records the expense for these awards using the straight-line method. For stock options or restricted stock units issued with performance-based vesting conditions, the stock compensation expense related to these awards is recognized based on the grant date fair value when achievement of the performance condition is deemed probable. The Company measures stock-based awards granted to consultants and non-employees based on the fair value of the award on the date on which the related service is complete. Compensation expense is recognized over the period during which services are rendered by such consultants and non-employees until completed. At the end of each financial reporting period prior to completion of the service, the fair value of these awards is remeasured using the then-current fair value of the Company’s common stock and updated assumption inputs in the Black-Scholes option-pricing model. The Company classifies stock-based compensation expense in its consolidated statement of operations and comprehensive loss in the same manner in which the award recipient’s payroll costs are classified or in which the award recipients’ service payments are classified. The Company recognizes adjustments to stock compensation expense for forfeitures as they occur. The fair value of each stock option grant is estimated on the date of grant using the Black- Scholes option-pricing model. The Company historically has been a private company and lacks company-specific historical and implied volatility information. Therefore, it estimates its expected stock volatility based on the historical volatility of a publicly traded set of peer companies and expects to continue to do so until such time as it has adequate historical data regarding the volatility of its own traded stock price. The expected term of the Company’s stock options has been determined utilizing the “simplified” method for awards that qualify as “plain-vanilla” options. The expected term of stock options granted to non-employees is equal to the contractual term of the option award. The risk-free interest rate is determined by reference to the U.S. Treasury yield curve in effect at the time of grant of the award for time periods approximately equal to the expected term of the award. Expected dividend yield is based on the fact that the Company has never paid cash dividends and does not expect to pay any cash dividends in the foreseeable future. Revenue Recognition The Company currently generates its revenue through collaboration and license arrangements with strategic partners for the development and commercialization of product candidates. The Company recognizes revenue in accordance with FASB ASC Topic 605, Revenue Recognition (“ASC 605”). Accordingly, revenue is recognized for each unit of accounting when all of the following criteria are met: • Persuasive evidence of an arrangement exists • Delivery has occurred or services have been rendered • The seller’s price to the buyer is fixed or determinable • Collectability is reasonably assured Amounts received prior to satisfying the revenue recognition criteria are recorded as deferred revenue in the Company’s consolidated balance sheets. Amounts expected to be recognized as revenue within the 12 months following the balance sheet date are classified as deferred revenue, current portion. Amounts not expected to be recognized as revenue within the 12 months following the balance sheet date are classified as long-term deferred revenue. Collaboration Revenue In January 2016 the Company entered into a Collaboration and License Agreement (the “License Agreement”) with Nestec Ltd. (“NHS”), an affiliate of Nestlé Health Science US Holdings, Inc. In connection with the License Agreement, the Company received an upfront, non-refundable payment of $ 120,000 The Company evaluates multiple-element arrangements based on the guidance in FASB ASC Topic 605-25, Revenue Recognition-Multiple-Element Arrangements (“ASC 605-25”). Pursuant to this guidance, the Company identifies the deliverables included in the arrangement and determines: (1) whether the individual deliverables have value to the customer on a standalone basis and represent separate units of accounting or whether they must be accounted for as a combined unit of accounting; and (2) if the arrangement includes a general right of return relative to the delivered item. This evaluation requires management to make judgments about the individual deliverables and whether such deliverables are separable from the other aspects of the contractual relationship. Deliverables are considered separate units of accounting provided that: (i) the delivered item(s) has value to the customer on a standalone basis and (ii) if the arrangement includes a general right of return relative to the delivered item(s), delivery or performance of the undelivered item(s) is considered probable and substantially in the control of the Company. In assessing whether an item has standalone value, the Company considers factors such as the research, manufacturing and commercialization capabilities of the collaboration partner, the retention of any key rights by the Company, and the availability of the associated expertise in the general marketplace. In addition, the Company considers whether the collaboration partner can use the other deliverable(s) for their intended purpose without the receipt of the remaining element(s), whether the value of the deliverable is dependent on the undelivered item(s) and whether there are other vendors that can provide the undelivered element(s). In situations where the Company has identified multiple units of accounting, the arrangement consideration that is fixed or determinable is allocated among the separate units of accounting using the relative selling price method. The Company determines the selling price of a unit of accounting following the hierarchy of evidence prescribed by ASC 605-25. Accordingly, the Company determines the estimated selling price for units of accounting within each arrangement using vendor-specific objective evidence (“VSOE”) of selling price, if available, third-party evidence (“TPE”) of selling price if VSOE is not available, or best estimate of selling price (“BESP”) if neither VSOE nor TPE is available. Then, the applicable revenue recognition criteria in ASC 605-25 are applied to each of the separate units of accounting to determine the appropriate period and pattern of recognition. The Company recognizes arrangement consideration allocated to each unit of accounting when all of the revenue recognition criteria in ASC 605-25 are satisfied for that particular unit of accounting. The Company will recognize as revenue, upon delivery, arrangement consideration attributed to licenses that have standalone value from the other deliverables to be provided in an arrangement. For licenses that do not have standalone value from the other deliverables to be provided in an arrangement over the Company’s estimated performance period as the arrangement would be accounted for as a single unit of accounting. The Company recognizes arrangement consideration allocated to each unit of accounting when all of the revenue recognition criteria in ASC 605-25 are satisfied for that particular unit of accounting. The Company will recognize as revenue arrangement consideration attributed to licenses that have standalone value from the other deliverables to be provided in an arrangement upon delivery. The Company will recognize as revenue arrangement consideration attributed to licenses that do not have standalone value from the other deliverables to be provided in an arrangement over the Company’s estimated performance period as the arrangement would be accounted for as a single unit of accounting. If there is no discernible pattern of performance and/or objectively measurable performance measures do not exist, then the Company recognizes revenue under the arrangement for the single unit of accounting on a straight-line basis over the period the Company is expected to complete its performance obligations. Alternatively, if the pattern of performance in which the service is provided to the customer can be determined and objectively measurable performance measures exist, then the Company recognizes revenue under the arrangement using the proportional performance method. Revenue recognized is limited to the lesser of the cumulative amount of payments received or the cumulative amount of revenue earned, as determined using the straight-line method or proportional performance method, as applicable. At the inception of an arrangement that includes milestone payments, the Company evaluates whether each milestone is substantive and at risk to both parties on the basis of the contingent nature of the milestone. This evaluation includes an assessment of whether: (i) the consideration is commensurate with either the Company’s performance to achieve the milestone or the enhancement of the value of the delivered item(s) as a result of a specific outcome resulting from the Company’s performance to achieve the milestone, (ii) the consideration relates solely to past performance and (iii) the consideration is reasonable relative to all of the deliverables and payment terms within the arrangement. The Company evaluates factors such as the scientific, clinical, regulatory, commercial and other risks that must be overcome to achieve the respective milestone and the level of effort and investment required to achieve the respective milestone in making this assessment. There is considerable judgment involved in determining whether a milestone satisfies all of the criteria required to conclude that a milestone is substantive. The Company recognizes revenue associated with substantive milestones in accordance with FASB ASC Topic 605-28, Revenue Recognition-Milestone Method upon successful accomplishment of each milestone, assuming all other revenue recognition criteria are met. Milestones that are not considered substantive would be recognized as revenue over the remaining period of performance, assuming all other revenue recognition criteria are met. The Company will recognize royalty revenue in the period of sale of the related product(s), based on the underlying contract terms, provided that the reported sales are reliably measurable and the Company has no remaining performance obligations, assuming all other revenue recognition criteria are met. Refer to footnote 9 for further information related to the Company’s collaboration and license agreement with Nestec, Ltd. Income Taxes The Company accounts for income taxes using the asset and liability method, which requires the recognition of deferred tax assets and liabilities for the expected future tax consequences of events that have been recognized in the consolidated financial statements or in the Company’s tax returns. Deferred taxes are determined based on the difference between the financial statement and tax basis of assets and liabilities using enacted tax rates in effect in the years in which the differences are expected to reverse. Changes in deferred tax assets and liabilities are recorded in the provision for income taxes. The Company assesses the likelihood that its deferred tax assets will be recovered from future taxable income and, to the extent it believes, based upon the weight of available evidence, that it is more likely than not that all or a portion of the deferred tax assets will not be realized, a valuation allowance is established through a charge to income tax expense. Potential for recovery of deferred tax assets is evaluated by estimating the future taxable profits expected and considering prudent and feasible tax planning strategies. The Company accounts for uncertainty in income taxes recognized in the financial statements by applying a two-step process to determine the amount of tax benefit to be recognized. First, the tax position must be evaluated to determine the likelihood that it will be sustained upon external examination by the taxing authorities. If the tax position is deemed more-likely-than-not to be sustained, the tax position is then assessed to determine the amount of benefit to recognize in the financial statements. The amount of the benefit that may be recognized is the largest amount that has a greater than 50% likelihood of being realized upon ultimate settlement. The provision for income taxes includes the effects of any resulting tax reserves, or unrecognized tax benefits, that are considered appropriate as well as the related net interest and penalties. Warrant to Purchase Convertible Preferred Stock The Company classified a warrant to purchase shares of its Series A-2 convertible preferred stock as a liability on its consolidated balance sheets as this warrant was a free-standing financial instrument that could have required the Company to transfer assets upon exercise. The warrant was initially recorded at fair value on date of grant, and it was subsequently remeasured to fair value at each balance sheet date. Changes in fair value of the warrant were recognized as a component of other income (expense), net in the consolidated statement of operations and comprehensive loss. The Company continued to adjust the liability for changes in fair value until the warrant became a warrant to purchase common stock in connection with the IPO. The Company used the Black-Scholes option-pricing model, which incorporates assumptions and estimates, to value the preferred stock warrant. The Company assessed these assumptions and estimates on a quarterly basis as additional information impacting the assumptions was obtained. Estimates and assumptions impacting the fair value measurement included the fair value per share of the underlying Series A-2 convertible preferred stock, the remaining contractual term of the warrant, the risk-free interest rate, the expected dividend yield and the expected volatility of the price of the underlying preferred stock. The Company determined the fair value per share of the underlying preferred stock by taking into consideration the most recent sales of its convertible preferred stock, results obtained from third-party valuations and additional factors that were deemed relevant. The Company historically has been a private company and lacks company-specific historical and implied volatility information of its stock. Therefore, it estimated its expected stock volatility based on the historical volatility of publicly traded peer companies for a term equal to the remaining contractual term of the warrant. The risk-free interest rate was determined by reference to the U.S. Treasury yield curve for time periods approximately equal to the remaining contractual term of the warrant. Expected dividend yield was based on the fact that the Company has never paid cash dividends and does not expect to pay any cash dividends in the foreseeable future. Segment Data The Company manages its operations as a single segment for the purposes of assessing performance and making operating decisions. The Company’s singular focus is on developing Ecobiotic microbiome therapeutics to treat dysbiosis in the colonic microbiome. Revenue to date has been generated solely through the Company's collaboration with Nestle Health Science, all of which has been earned in the United States. All tangible assets are held in the United States Comprehensive Loss Comprehensive loss includes net loss as well as other changes in stockholders’ equity (deficit) that result from transactions and economic events other than those with stockholders. For the years ended December 31, 2017, 2016 and 2015, other comprehensive income (loss) consisted of changes in unrealized gains (losses) from available-for-sale investments. Net Loss per Share Basic net loss per share is computed using the weighted average number of common shares outstanding during the period. Diluted net loss per share is computed using the sum of the weighted average number of common shares outstanding during the period and, if dilutive, the weighted average number of potential shares of common stock, including the assumed exercise of stock options and warrants and unvested restricted stock. The Company applies the two-class method to calculate its basic and diluted net loss per share attributable to common stockholders, as its convertible preferred stock, which converted to Common Stock upon completion of the listing of the Company’s common stock on NASDAQ on June 26, 2015, and common stock are participating securities. The two-class method is an earnings allocation formula that treats a participating security as having rights to earnings that otherwise would have been available to common stockholders. However, the two-class method does not impact the net loss per share of common stock as the Company was in a net loss position for each of the periods presented and preferred stockholders do not participate in losses. The Company’s convertible preferred stock contractually entitles the holders of such shares to participate in dividends but does not contractually require the holders of such shares to participate in losses of the Company. Similarly, restricted stock awards granted by the Company entitle the holder of such awards to dividends declared or paid by the board of directors, regardless of whether such awards are unvested, as if such shares were outstanding common shares at the time of the dividend. However, the unvested restricted stock awards are not entitled to share in the residual net assets (deficit) of the Company. Accordingly, in periods in which the Company reports a net loss attributable to common stockholders, diluted net loss per share attributable to common stockholders is the same as basic net loss per share attributable to common stockholders, since dilutive common shares are not assumed to have been issued if their effect is anti-dilutive. Recently Issued and Adopted Accounting Pronouncements In May 2014, the FASB issued ASU 2014-09, Revenue from Contracts with Customers (Topic 606) Revenue from Contracts with Customers (Topic 606): Deferral of the Effective Date Revenue from Contracts with Customers (Topic 606): Principal versus Agent Considerations Revenue from Contracts with Customers (Topic 606): Identifying Performance Obligations and Licensing Revenue from Contracts with Customers (Topic 606): Narrow-Scope Improvements and Practical Expedients Technical Corrections and Improvements to Topic 606, Revenue from Contracts with Customers The Company adopted ASC 606 using the modified retrospective transition method. The adoption of ASC 606 changed the pattern and timing of revenue recognition of amounts from the Company’s collaboration agreement with NHS. Under ASC 606, the Company will recognize revenue using the cost-to-cost method which best depicts the transfer of control to the customer. Under the cost-to-cost method, the extent of progress towards completion is measured based on the ratio of actual costs incurred to the total estimated costs expected upon satisfying the identified performance obligation. Under this method, revenue will be recorded as a percentage of the estimated transaction price based on the extent of progress towards completion. The estimate of the Company’s measure of progress and estimate of transaction price will be updated at each reporting date, as a change in estimate, and will require judgement. The amount of consideration allocated to satisfied performance obligations, based on the Company’s measure of progress will be recognized immediately on a cumulative catch-up basis, resulting in an adjustment to revenue in the period of change. The amount related to the unsatisfied portion will be recognized as that portion is satisfied over time. In addition, substantive development milestones, which were previously recognized in the period when the milestone was achieved, will be recognized over the remaining performance period under ASC 606. As the adoption method does not result in a recast of the prior year consolidated financial statements, ASC 606 requires the Company to provide additional disclosures during the year of adoption of the amount by which each financial statement line item is affected by adoption of the new standard and explanations of the reasons for significant changes. During the fourth quarter of 2017, the Company substantially completed its impact assessment, and expects that the adoption of ASC 606 will require a cumulative-effect adjustment of approximately $25,000 In February 2016, the FASB issued ASU No. 2016-02, Leases (Topic 842) Leases (Topic 842) In August 2016, the FASB issued ASU No. 2016-15, Statement of Cash Flows: Classification of Certain Cash Receipts and Cash Payments In November 2016, the FASB issued ASU 2016-18, Restricted Cash In May 2017, the FASB issued ASU No. 2017-09, Compensation - Stock Compensation (Topic 718): Scope of Modification Accounting |