Entity Central Index Key Cover [Abstract] Document Type Document Type Amendment Flag Amendment Flag Document Period End Date Document Period End Date Document Fiscal Year Focus Document Fiscal Year Focus Document Fiscal Period Focus Document Fiscal Period Focus Trading Symbol Trading Symbol Entity Registrant Name Entity Registrant Name Entity Central Index Key Current Fiscal Year End Date Current Fiscal Year End Date Entity Filer Category Entity Filer Category Entity Small Business Entity Small Business Entity Emerging Growth Company Entity Emerging Growth Company Entity Ex Transition Period Entity Ex Transition Period Entity Current Reporting Status Entity Current Reporting Status Entity Shell Company Entity Shell Company Entity File Number Entity File Number Entity Tax Identification Number Entity Tax Identification Number Entity Address, Address Line One Entity Address Address Line1 Entity Address, Address Line Two Entity Address Address Line2 Entity Address, City or Town Entity Address City Or Town Entity Address, State or Province Entity Address State Or Province Entity Address, Postal Zip Code Entity Address Postal Zip Code City Area Code City Area Code Local Phone Number Local Phone Number Entity Common Stock, Shares Outstanding Entity Common Stock Shares Outstanding Security Exchange Name Security Exchange Name Title of 12(b) Security Security12b Title Document Quarterly Report Document Quarterly Report Document Transition Report Document Transition Report Entity Incorporation, State or Country Code Entity Incorporation State Country Code Entity Interactive Data Current Entity Interactive Data Current Statement Of Financial Position [Abstract] Assets Assets [Abstract] Current assets: Assets Current [Abstract] Cash and cash equivalents Cash And Cash Equivalents At Carrying Value Marketable securities—current Marketable Securities Current Accounts receivable, net (including amounts from related parties of $2,059 and $959 as of September 30, 2019 and December 31, 2018, respectively) Accounts Receivable Net Current Prepaid expenses and other current assets Prepaid Expense And Other Assets Current Total current assets Assets Current Property and equipment, net Property Plant And Equipment Net Marketable securities, non—current Marketable Securities Noncurrent Other long-term assets Other Assets Noncurrent Restricted cash Restricted Cash Noncurrent Total assets Assets Liabilities and Stockholders’ Equity Liabilities And Stockholders Equity [Abstract] Current liabilities: Liabilities Current [Abstract] Accounts payable Accounts Payable Current Accrued compensation Accrued Liabilities Current Deferred revenue—current Contract With Customer Liability Current Debt—current Debt Current Other current liabilities Other Liabilities Current Total current liabilities Liabilities Current Deferred revenue, non—current Contract With Customer Liability Noncurrent Deferred rent Deferred Rent Credit Noncurrent Debt—non-current Long Term Debt Noncurrent Other noncurrent liabilities Other Liabilities Noncurrent Total liabilities Liabilities Stockholders’ equity: Stockholders Equity [Abstract] Common stock, $0.001 par value — 300,000,000 shares authorized as of September 30, 2019 and December 31, 2018; 23,090,002 and 22,848,184 shares issued and outstanding as of September 30, 2019 and December 31, 2018, respectively Common Stock Value Additional paid-in-capital Additional Paid In Capital Common Stock Accumulated other comprehensive gain (loss) Accumulated Other Comprehensive Income Loss Net Of Tax Accumulated deficit Retained Earnings Accumulated Deficit Total stockholders’ equity Stockholders Equity Total liabilities and stockholders’ equity Liabilities And Stockholders Equity Accounts receivable, related parties Accounts Receivable Related Parties Current Common stock, par value Common Stock Par Or Stated Value Per Share Common stock, shares authorized Common Stock Shares Authorized Common stock, shares issued Common Stock Shares Issued Common stock, shares outstanding Common Stock Shares Outstanding Interest and other expense, net. Income Statement [Abstract] Revenues (including amounts from related parties of $6,274 and $16,687 during the three and nine months ended September 30, 2019, respectively, and $6,086 and $13,907 during the three and nine months ended September 30, 2018, respectively) Revenue From Contract With Customer Excluding Assessed Tax Operating expenses Operating Expenses [Abstract] Research and development Research And Development Expense General and administrative General And Administrative Expense Total operating expenses Operating Expenses Loss from operations Operating Income Loss Interest income Investment Income Nonoperating Interest and other expense, net Interest And Other Expense Net Net loss Net Income Loss Net loss per share, attributable to common stockholders, basic and diluted Earnings Per Share Basic And Diluted Weighted-average shares used in computing net loss per share attributable to common stockholders Weighted Average Number Of Share Outstanding Basic And Diluted Revenue from related parties Revenue From Related Parties Statement Of Income And Comprehensive Income [Abstract] Net loss Other comprehensive income (net of tax): Other Comprehensive Income Available For Sale Securities Adjustment Net Of Tax Period Increase Decrease [Abstract] Unrealized gain/(loss) on available-for-sale securities Other Comprehensive Income Loss Available For Sale Securities Adjustment Net Of Tax Comprehensive loss Comprehensive Income Net Of Tax Stock issued during period, value, vesting of restricted stock units. Stock issued during period value stock options and warrants exercised. Stock issued during period value equity incentive plan. Adjustments to additional paid in capital vesting of early exercise of shares. Payment of note receivable by stockholder. Statement Of Stockholders Equity [Abstract] Statement [Table] Statement [Table] Equity Components Statement Equity Components [Axis] Equity Component Equity Component [Domain] Common Stock Common Stock [Member] Note Receivable from Stockholder Receivables From Stockholder [Member] Additional Paid-In Capital Additional Paid In Capital [Member] Accumulated Other Comprehensive Income (Loss) Accumulated Other Comprehensive Income [Member] Accumulated Deficit Retained Earnings [Member] Class of Stock Statement Class Of Stock [Axis] Class of Stock Class Of Stock [Domain] Redeemable Convertible Preferred Stock Redeemable Convertible Preferred Stock [Member] Statement [Line Items] Statement [Line Items] Balances Temporary Equity Balance, Shares Temporary Equity Shares Outstanding Temporary Equity Balance Temporary Equity Carrying Amount Attributable To Parent Common Stock Balance, Shares Shares Outstanding Issuance of Series E redeemable convertible preferred stock, net of issuance costs Temporary Equity Stock Issued During Period Value New Issues Temporary equity stock issued during period shares new issues. Issuance of Series E redeemable convertible preferred stock, net of issuance costs, shares Temporary Equity Stock Issued During Period Shares New Issues Exercise of common stock options Stock Issued During Period Value Stock Options Exercised Exercise of common stock options, Shares Stock Issued During Period Shares Stock Options Exercised Exercise of common stock options and warrants Stock Issued During Period Value Stock Options And Warrants Exercised Stock issued during period shares stock options and warrants exercised. Exercise of common stock options and warrants, Shares Stock Issued During Period Shares Stock Options And Warrants Exercised Issuance of common stock under Equity Incentive Plan Stock Issued During Period Value Equity Incentive Plan Stock issued during period shares equity incentive plan. Issuance of common stock under Equity Incentive Plan, Shares Stock Issued During Period Shares Equity Incentive Plan Issuance of common stock under Employee Stock Purchase Plan Stock Issued During Period Value Employee Stock Purchase Plan Issuance of common stock under Employee Stock Purchase Plan, Shares Stock Issued During Period Shares Employee Stock Purchase Plans Vesting of restricted stock units Stock Issued During Period Value Vesting Of Restricted Stock Units Vesting of restricted stock units, Shares Stock Issued During Period Shares Restricted Stock Award Net Of Forfeitures Stock transaction associated with taxes withheld on restricted stock units Adjustments Related To Tax Withholding For Share Based Compensation Stock transaction associated with taxes withheld on restricted stock units, Shares Shares Paid For Tax Withholding For Share Based Compensation Issuance of restricted stock units Stock Issued During Period Value Restricted Stock Award Gross Issuance of restricted stock units, Shares Stock Issued During Period Shares Restricted Stock Award Gross Common stock withheld related to net share settlement of restricted stock units Stock Issued During Period Value Restricted Stock Award Forfeitures Common stock withheld related to net share settlement of restricted stock units, shares Stock Issued During Period Shares Restricted Stock Award Forfeited Stock-based compensation expense Adjustments To Additional Paid In Capital Sharebased Compensation Requisite Service Period Recognition Value Vesting of early exercised shares Adjustments To Additional Paid In Capital Vesting Of Early Exercise Of Shares Payment of note receivable by stockholder Payment Of Note Receivable By Stockholder Net unrealized gain (loss) on available-for- sale securities Adoption of new accounting standards Cumulative Effect Of New Accounting Principle In Period Of Adoption Balances Temporary Equity Balance, Shares Temporary Equity Balance Common Stock Balance, Shares Temporary equity issuance costs. Series E redeemable convertible preferred stock. Series E Redeemable Convertible Preferred Stock Series E Redeemable Convertible Preferred Stock [Member] Issuance costs Temporary Equity Issuance Costs Change in estimated fair value of the liability attributable to a research development and commercialization agreement. Revaluation of redeemable convertible preferred stock warrant liability. Proceeds from maturities of marketable securities. Proceeds from sales of marketable securities. Proceeds from payment of note receivable by stockholder. Proceeds from exercise of common stock options and common stock warrants. Deferred initial public offering costs included in accounts payable. Embedded interest associated with program fees. Statement Of Cash Flows [Abstract] Operating activities Net Cash Provided By Used In Operating Activities [Abstract] Net loss Profit Loss Adjustments to reconcile net loss to net cash (used in) provided by operating activities: Adjustments To Reconcile Net Income Loss To Cash Provided By Used In Operating Activities [Abstract] Depreciation and amortization Depreciation Depletion And Amortization Accretion of discount on marketable securities Accretion Amortization Of Discounts And Premiums Investments Stock-based compensation Share Based Compensation Change in estimated fair value of the liability attributable to a research, development and commercialization agreement Change In Estimated Fair Value Of Liability Attributable To Research Development And Commercialization Agreement Revaluation of redeemable convertible preferred stock warrant liability Revaluation Of Redeemable Convertible Preferred Stock Warrant Liability Loss on disposal of property and equipment Gain Loss On Disposition Of Assets1 Other Other Noncash Income Expense Changes in operating assets and liabilities: Increase Decrease In Operating Capital [Abstract] Accounts receivable Increase Decrease In Accounts Receivable Prepaid expenses and other assets Increase Decrease In Prepaid Deferred Expense And Other Assets Accounts payable Increase Decrease In Accounts Payable Accrued compensation Increase Decrease In Employee Related Liabilities Other liabilities Increase Decrease In Other Operating Liabilities Deferred rent Increase Decrease In Deferred Charges Deferred revenue Increase Decrease In Contract With Customer Liability Net cash (used in) provided by operating activities Net Cash Provided By Used In Operating Activities Investing activities Net Cash Provided By Used In Investing Activities [Abstract] Purchases of marketable securities Payments To Acquire Marketable Securities Maturities of marketable securities Proceeds From Maturities Of Marketable Securities Sales of marketable securities Proceeds From Sales Of Marketable Securities Purchases of property and equipment Payments To Acquire Property Plant And Equipment Net cash used in investing activities Net Cash Provided By Used In Investing Activities Financing activities Net Cash Provided By Used In Financing Activities [Abstract] Payment of deferred offering costs Payments Of Financing Costs Payments of debt Repayments Of Debt Proceeds from payment of note receivable by stockholder Proceeds From Payment Of Note Receivable By Stockholder Proceeds from exercise of common stock options and warrants Proceeds From Exercise Of Common Stock Options And Common Stock Warrants Taxes paid related to net share settlement of restricted stock units Payments Related To Tax Withholding For Share Based Compensation Proceeds from employee stock purchase plan Proceeds From Stock Plans Proceeds from issuance of redeemable convertible preferred stock, net of issuance costs Proceeds From Issuance Of Redeemable Convertible Preferred Stock Net cash (used in) provided by financing activities Net Cash Provided By Used In Financing Activities Net (decrease) increase in cash, cash equivalents and restricted cash Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Period Increase Decrease Including Exchange Rate Effect Cash, cash equivalents and restricted cash at beginning of period Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Including Disposal Group And Discontinued Operations Cash, cash equivalents and restricted cash at end of period Supplemental disclosure of cash flow information: Supplemental Cash Flow Information [Abstract] Cash paid for interest Interest Paid Net Supplemental disclosure of non-cash investing and financing information: Noncash Investing And Financing Items [Abstract] Purchase of property and equipment included in accounts payable Capital Expenditures Incurred But Not Yet Paid Deferred initial public offering costs included in accounts payable Deferred Initial Public Offering Costs Included In Accounts Payable Embedded interest associated with program fees Embedded Interest Associated With Program Fees Disclosure Text Block [Abstract] Organization and Principal Activities Nature Of Operations Accounting Policies [Abstract] Summary of Significant Accounting Policies Significant Accounting Policies [Text Block] Fair Value Disclosures [Abstract] Fair Value Measurements Fair Value Disclosures [Text Block] Cash And Cash Equivalents [Abstract] Cash Equivalents and Marketable Securities Cash Cash Equivalents And Marketable Securities [Text Block] Collaboration and license agreements and supply agreements. Collaboration agreements and supply agreements. Collaboration Agreements And Supply Agreements [Abstract] Collaboration and License Agreements and Supply Agreements Collaboration And License Agreements And Supply Agreements [Text Block] Debt Disclosure [Abstract] Loan and Security Agreement Debt Disclosure [Text Block] Related Party Transactions [Abstract] Related Party Transactions Related Party Transactions Disclosure [Text Block] Temporary Equity Disclosure [Abstract] Stockholders' (Deficit) Equity Preferred Stock [Text Block] Disclosure Of Compensation Related Costs Sharebased Payments [Abstract] Equity Incentive Plans, Employee Stock Purchase Plan and Stock-Based Compensation Disclosure Of Compensation Related Costs Share Based Payments [Text Block] Earnings Per Share [Abstract] Net Loss Per Share Earnings Per Share [Text Block] Subsequent Events [Abstract] Subsequent Event Subsequent Events [Text Block] Basis of presentation and use of estimates. Title of Individual Title Of Individual [Axis] Title of Individual Title Of Individual With Relationship To Entity [Domain] Non-employees. Non Employees Non Employees [Member] Basis of Presentation and Use of Estimates Basis Of Presentation And Use Of Estimates Policy Policy [Text Block] Adoption of new accounting principle. Adoption of New Accounting Principles Adoption Of New Accounting Principle Policy [Text Block] Nonemployee Share-Based Payment Share Based Compensation Option And Incentive Plans Policy Recently Issued Accounting Pronouncements New Accounting Pronouncements Policy Policy [Text Block] Cash, Cash Equivalents and Restricted Cash Cash And Cash Equivalents Restricted Cash And Cash Equivalents Policy Fair Value Measurements Fair Value Measurement Policy Policy [Text Block] Revenue Recognition Revenue Recognition Policy [Text Block] Summary of Restated Adjustment of Financial Statements Schedule Of Error Corrections And Prior Period Adjustments [Text Block] Schedule of Reconciliation of Cash and Cash Equivalents, and Restricted Cash Schedule Of Restricted Cash And Cash Equivalents [Text Block] Fair Value of Financial Assets and Liabilities Measured on Recurring Basis Schedule Of Fair Value Assets And Liabilities Measured On Recurring Basis Table [Text Block] Schedule of Cash Equivalents and Marketable Securities Schedule Of Cash Cash Equivalents And Short Term Investments Table [Text Block] Milestone method revenue recognition. Collaboration and license agreements and supply agreements. Collaboration And License Agreements And Supply Agreements [Abstract] Summary of Recognized Revenue Milestone Method Revenue Recognition Table [Text Block] Summary of Deferred Revenue Balance Deferred Revenue By Arrangement Disclosure [Text Block] Schedule of common stock reserved for future issuance. Schedule of Common Stock Reserved for Future Issuance Schedule Of Common Stock Reserved For Future Issuance Table [Text Block] Award Type Award Type [Axis] Award Type Share Based Compensation Arrangements By Share Based Payment Award Award Type And Plan Name [Domain] Employee Stock Options Employee Stock Option [Member] Summary of Option Activity Schedule Of Share Based Compensation Stock Options Activity Table [Text Block] Schedule of Employee Stock Options Valuation Schedule Of Share Based Payment Award Stock Options Valuation Assumptions Table [Text Block] Summary of Status and Activity of Non-vested RSUs Schedule Of Share Based Compensation Restricted Stock Units Award Activity Table [Text Block] Schedule of Fair Value of ESPP Shares Using Option Pricing Model Schedule Of Share Based Payment Award Employee Stock Purchase Plan Valuation Assumptions Table [Text Block] Schedule of Stock-Based Compensation Expense Recognized Schedule Of Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Text Block] Summary of Computation of Company's Basic and Diluted Net Loss per Share Schedule Of Earnings Per Share Basic And Diluted Table [Text Block] Summary of Common Stock Equivalents of Antidilutive Securities Excluded from Computation of Diluted Net Loss per Share Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per Share [Text Block] Organization Consolidation And Presentation Of Financial Statements [Abstract] Organization consolidation and presentation of financial statements line items. Schedule of organization consolidation and presentation of financial statements. Schedule Of Organization Consolidation And Presentation Of Financial Statements [Table] Schedule Of Organization Consolidation And Presentation Of Financial Statements [Table] Statistical Measurement Range [Axis] Statistical Measurement Range [Member] Minimum Minimum [Member] Maximum [Member] Maximum [Member] Organization Consolidation And Presentation Of Financial Statements [Line Items] Organization Consolidation And Presentation Of Financial Statements [Line Items] Date of incorporation Entity Incorporation Date Of Incorporation Headquartered in Headquartered in state Number of operating segments Number Of Operating Segments Accumulated deficit Unrestricted cash, cash equivalents and marketable securities at carrying value. Unrestricted cash, cash equivalents and marketable securities Unrestricted Cash Cash Equivalents And Marketable Securities At Carrying Value Going concern period from issuance of unaudited interim condensed financial statements. Going concern period from issuance date of unaudited interim condensed financial statements Going Concern Period From Issuance Of Unaudited Interim Condensed Financial Statements Substantial doubt about going concern, within one year Substantial Doubt About Going Concern Within One Year Adjustments for New Accounting Pronouncements Adjustments For New Accounting Pronouncements [Axis] Type of Adoption Type Of Adoption [Member] Accounting Standards Update 2014-09 Accounting Standards Update201409 [Member] Initial Application Period Cumulative Effect Transition Initial Application Period Cumulative Effect Transition [Axis] Initial Application Period Cumulative Effect Transition Initial Application Period Cumulative Effect Transition [Domain] Balances without the Adoption of Topic 606 Calculated Under Revenue Guidance In Effect Before Topic606 [Member] Cumulative effect of new accounting principle in period of adoption Revenues Difference between Revenue Guidance in Effect before and after Topic 606 Difference Between Revenue Guidance In Effect Before And After Topic606 [Member] Accounts receivable, net Accounts Receivable Net Total current assets Total liabilities Interest and other expense, net Interest Income Expense Net Total cash, cash equivalents, and restricted cash shown in the statements of cash flows Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Abstract] Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table] Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table] Fair Value Measurements Recurring Fair Value By Measurement Frequency [Axis] Measurement Frequency Fair Value Measurement Frequency [Domain] Fair Value Measurements Recurring Fair Value Measurements Recurring [Member] Asset Class Fair Value By Asset Class [Axis] Asset Class Fair Value Assets Measured On Recurring Basis Unobservable Input Reconciliation By Asset Class [Domain] Money Market Funds Money Market Funds [Member] Commercial Paper Commercial Paper [Member] Corporate Debt Securities Corporate Debt Securities [Member] Asset-backed Securities Asset Backed Securities [Member] U.S. Government Agency Securities U S Government Agencies Debt Securities [Member] Level 2 Fair Value By Fair Value Hierarchy Level [Axis] Fair Value Hierarchy and NAV Fair Value Measurements Fair Value Hierarchy [Domain] Level 1 Fair Value Inputs Level1 [Member] Level 2 Fair Value Inputs Level2 [Member] Level 3 Fair Value Inputs Level3 [Member] Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] Assets: Assets Fair Value Disclosure [Abstract] Total Assets Fair Value Disclosure Schedule Of Cash And Cash Equivalents [Table] Schedule Of Cash And Cash Equivalents [Table] U.S. Government Agencies U S Government Corporations And Agencies Securities [Member] Cash and Cash Equivalents Cash And Cash Equivalents [Axis] Cash and Cash Equivalents Restricted Cash And Cash Equivalents Cash And Cash Equivalents [Member] Cash Equivalents Cash Equivalents [Member] Investment Type Investment Type [Axis] Investments Investment Type Categorization [Member] Marketable securities. Marketable Securities Marketable Securities [Member] Cash And Cash Equivalents [Line Items] Cash And Cash Equivalents [Line Items] Amortized Cost Basis Available For Sale Debt Securities Amortized Cost Basis Unrealized Gains Available For Sale Debt Securities Accumulated Gross Unrealized Gain Before Tax Unrealized (Losses) Available For Sale Debt Securities Accumulated Gross Unrealized Loss Before Tax Fair Value Available For Sale Securities Debt Securities Cash equivalents unrealized gains. Less amounts classified as cash equivalents, Amortized Cost Basis Less amounts classified as cash equivalents, Unrealized Gains Cash Equivalents Unrealized Gains Less amounts classified as cash equivalents, Fair Value Cash And Cash Equivalents Fair Value Disclosure Cash equivalents unrealized losses. Less amounts classified as cash equivalents, Unrealized Losses Cash Equivalents Unrealized Losses Marketable securities maturity period. Marketable securities maturity period Marketable Securities Maturity Period Long-term marketable securities Recognition of other-than-temporary impairment Other Than Temporary Impairment Loss Debt Securities Available For Sale Recognized In Earnings Investments in an unrealized loss position Available For Sale Securities Continuous Unrealized Loss Position Accumulated Loss Revenue Recognition Multiple Deliverable Arrangements [Table] Revenue Recognition Multiple Deliverable Arrangements [Table] Collaborative Arrangement and Arrangement Other than Collaborative Type Of Arrangement [Axis] Collaborative Arrangement and Arrangement Other than Collaborative Arrangements And Nonarrangement Transactions [Member] Collaboration and license agreements and supply agreements. Collaboration and License Agreements and Supply Agreements Collaboration And License Agreements And Supply Agreements [Member] Counterparty Name Counterparty Name [Axis] Counterparty Name Repurchase Agreement Counterparty Name [Domain] Merck KGaA, Darmstadt, Germany (operating in the United States and Canada under the name “EMD Serono”). Merck KGaA, Darmstadt, Germany “EMD Serono”) Merck K Ga A Darmstadt Germany [Member] Related Party Related Party Transactions By Related Party [Axis] Related Party Related Party [Domain] Celgene Corporation. Celgene Celgene Corporation [Member] Merck Sharp and Dohme Corporation. Merck Merck Sharp And Dohme Corporation [Member] SutroVax, Inc. SutroVax Sutro Vax Inc [Member] Revenue Recognition Multiple Deliverable Arrangements [Line Items] Revenue Recognition Multiple Deliverable Arrangements [Line Items] Total revenue Ownership percentage Equity Method Investment Ownership Percentage Contract with customer liability additions. Deferred revenue Contract With Customer Liability Transition adjustment related to adoption of ASC 606 New Accounting Pronouncement Or Change In Accounting Principle Effect Of Adoption Quantification Additions to deferred revenue Contract With Customer Liability Additions Recognition of revenue in current period Contract With Customer Liability Revenue Recognized Deferred revenue Revenue Remaining Performance Obligation Expected Timing Of Satisfaction [Table] Revenue Remaining Performance Obligation Expected Timing Of Satisfaction [Table] Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date Revenue Remaining Performance Obligation Expected Timing Of Satisfaction Start Date [Axis] Revenue Remaining Performance Obligation Expected Timing Of Satisfaction [Line Items] Revenue Remaining Performance Obligation Expected Timing Of Satisfaction [Line Items] Revenue, remaining performance obligation, amount Revenue Remaining Performance Obligation Revenue, remaining performance obligation, expected timing of satisfaction, period Revenue Remaining Performance Obligation Expected Timing Of Satisfaction Period1 Upfront, nonrefundable payment received. Schedule Of Collaborative Arrangements And Noncollaborative Arrangement Transactions [Table] Schedule Of Collaborative Arrangements And Noncollaborative Arrangement Transactions [Table] Celgene agreement. Celgene Agreement Celgene Agreement [Member] Related Party Transaction Related Party Transaction [Axis] Related Party Transaction Related Party Transaction [Domain] First performance obligation. First Performance Obligation First Performance Obligation [Member] Future services on collaboration Joint Steering Committee. Future Services on Collaboration Joint Steering Committee ("JSC") Future Services On Collaboration Joint Steering Committee [Member] Third performance obligation. Third Performance Obligation Third Performance Obligation [Member] Accounting standards update 605. ASC 605 Accounting Standards Update605 [Member] 2018 Celgene master services agreement. 2018 Celgene Master Services Agreement Two Thousand Eighteen Celgene Master Services Agreement [Member] Two thousand eighteen Merck agreement. 2018 Merck Agreement Two Thousand Eighteen Merck Agreement [Member] Product and Service Product Or Service [Axis] Product and Service Products And Services [Domain] Collaboration revenue amortization of up-front payment. Collaboration Revenue, Amortization of Up-front Payment Collaboration Revenue Amortization Of Up Front Payment [Member] Merck Sharp & Dohme Corp Sale of Stock Subsidiary Sale Of Stock [Axis] Sale of Stock Sale Of Stock Name Of Transaction [Domain] Private Placement Private Placement [Member] Collaboration Agreement Collaborative Arrangement [Member] MDA agreement. MDA Agreement M D A Agreement [Member] EMD Serono. EMD Serono E M D Serono [Member] Milestone payment and new supply agreement. Milestone Payment and New Supply Agreement Milestone Payment And New Supply Agreement [Member] Research and development services. Research and Development Services Research And Development Services [Member] Supply agreement. Supply Agreement Supply Agreement [Member] Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] Collaborative Arrangements And Noncollaborative Arrangement Transactions [Line Items] Upfront, nonrefundable payment received Nonrefundable Upfront Payment Received Contingent payment received. Milestone payment received. Additional milestone payment received. Contingent payment received Contingent Payment Received Milestone payment received Milestone Payment Received Additional milestone payment received Additional Milestone Payment Received Option fee payment received. Option maintenance fee. Revenue recognition under milestone method. Contingent payments. Option fee payment received Option Fee Payment Received Milestone revenue recognized Revenue Recognition Under Milestone Method Contingent payments Contingent Payments Option maintenance fee Option Maintenance Fee Number of programs advancing throughout preclinical development. Number of programs advancing through preclinical development Number Of Programs Advancing Throughout Preclinical Development Deferred revenue Deferred revenue Contract With Customer Refund Liability Total revenue Revenues Receivables from agreement Other revenue-related parties Related Party Transaction Other Revenues From Transactions With Related Party Number of research programs. Number of research programs Number Of Research Programs Upfront payment received. Revenue recognition of up-front payment amount. Extension option fee associated with contingent program. Revenue performance obligation amounts recognized in revenues. Amount of transaction price allocated to performance obligation that has not been recognized as revenue. Upfront payment received Upfront Payment Received Revenue from first performance obligation Revenue First Performance Obligation Recognition of up front payment Revenue Recognition Of Up Front Payment Amount Revenue performance obligation amounts recognized in revenues Revenue Performance Obligation Amounts Recognized In Revenues Extension option fee associated with contingent program Extension Option Fee Associated With Contingent Program Unearned revenue. Total interest of unearned revenue Unearned Revenue Embedded interest associated with upfront payment. FTE funding received. Embedded interest associated with upfront payment Embedded Interest Associated With Upfront Payment FTE Funding Received F T E Funding Received Changes in deferred revenue. Changes in deferred revenue due to adoption of new accounting policy Changes In Deferred Revenue Revenue recognition aggregate milestone payments eligible to receive. Milestone method revenue recognition description. Revenue recognition aggregate milestone payments eligible to receive Revenue Recognition Aggregate Milestone Payments Eligible To Receive Milestone method revenue recognition description Milestone Method Revenue Recognition Description Stock Issued, shares Stock Issued During Period Shares New Issues Share issue price per share Shares Issued Price Per Share Proceeds from issuance of redeemable convertible preferred stock gross Proceeds from issuance of common stock Proceeds From Issuance Of Common Stock Collaboration agreement up-front, nonrefundable, non-creditable payment received. Up-front, nonrefundable and non-creditable payment received Collaboration Agreement Up Front Nonrefundable Non Creditable Payment Received Maximum amount eligible to receive for each product developed. Maximum amount eligible to receive for each product developed Maximum Amount Eligible To Receive For Each Product Developed Changes in deferred revenue Increase Decrease In Deferred Revenue Accounts receivable, related parties Debt instrument, number of monthly installments. Debt instrument repayment installment start date of month and year. Debt instrument, interest only payments maturity month and year. Debt instrument, repayment installment end date of month and year. Debt Instrument [Table] Debt Instrument [Table] Loan and security agreement. Loan and Security Agreement Loan And Security Agreement [Member] Oxford finance limited liability company and silicon valley bank. Oxford Finance LLC and Silicon Valley Bank Oxford Finance Limited Liability Company And Silicon Valley Bank [Member] Long-term Debt, Type Longterm Debt Type [Axis] Long-term Debt, Type Longterm Debt Type [Domain] August two thousand seventeen loan. August 2017 Loan August Two Thousand Seventeen Loan [Member] Debt Instrument Debt Instrument [Axis] Debt Instrument, Name Debt Instrument Name [Domain] March two thousand nineteen. March 2019 March Two Thousand Nineteen [Member] Variable Rate Variable Rate [Axis] Variable Rate Variable Rate [Domain] Floating rate. Floating Rate Floating Rate [Member] LIBOR London Interbank Offered Rate L I B O R [Member] Class of Warrant or Right Class Of Warrant Or Right [Axis] Class of Warrant or Right Class Of Warrant Or Right [Domain] Two thousand seventeen warrants. Two Thousand Seventeen Warrants Two Thousand Seventeen Warrants [Member] Debt Instrument [Line Items] Debt Instrument [Line Items] Borrowed amount Debt Instrument Face Amount Number of monthly installments Debt Instrument Number Of Monthly Installments Payment terms, description Debt Instrument Payment Terms Repayment installment, start date, month and year Debt Instrument Repayment Installment Start Date Of Month And Year Repayment installment, end date, month and year Debt Instrument Repayment Installment End Date Of Month And Year Frequency of interest-only payments Debt Instrument Frequency Of Periodic Payment Interest-only payments, maturity month and year Debt Instrument Interest Only Payments Maturity Month And Year Debt, current Long Term Debt Current Debt, non-current Debt instrument, final payment fee percentage. Interest charges on loan Debt Instrument Basis Spread On Variable Rate1 Description of interest charges on loan Debt Instrument Interest Rate Terms Interest payable Interest Payable Current And Noncurrent Average interest rate Debt Instrument Interest Rate During Period Final payment fee percentage Debt Instrument Final Payment Fee Percentage Estimated fair value portion of issuance of redeemable convertible preferred stock. Estimated fair value portion of preferred stock Estimated Fair Value Portion Of Issuance Of Redeemable Convertible Preferred Stock Warrant to purchase stock Class Of Warrant Or Right Number Of Securities Called By Warrants Or Rights Loan and accretion of debt discount Amortization Of Debt Discount Premium Interest expense, debt Interest Expense Debt Schedule Of Related Party Transactions By Related Party [Table] Schedule Of Related Party Transactions By Related Party [Table] Ownership Ownership [Axis] Ownership Ownership [Domain] Sutro Biopharma INC. Sutro Biopharma Sutro Biopharma I N C [Member] IPO I P O [Member] Related Party Transaction [Line Items] Related Party Transaction [Line Items] Equity interest percentage Minority Interest Ownership Percentage By Noncontrolling Owners Common stock ownership percentage. Carrying value of common stock. Percentage common stock ownership interest Common Stock Ownership Percentage Carrying value of common stock under the cost method Carrying Value Of Common Stock Temporary Equity By Class Of Stock [Table] Temporary Equity By Class Of Stock [Table] Series D-2 redeemable convertible preferred stock. Series D Two Redeemable Convertible Preferred Stock Series D Two Redeemable Convertible Preferred Stock [Member] Series C Redeemable Convertible Preferred Stock Series C Preferred Stock [Member] Temporary Equity [Line Items] Temporary Equity [Line Items] Voting rights per share Common Stock Voting Rights Common stock awards issued and outstanding. Common Stock Awards Issued And Outstanding Common Stock Awards Issued And Outstanding [Member] Two thousand four and two thousand eighteen equity incentive plan. 2004 and 2018 Equity Incentive Plan Two Thousand Four And Two Thousand Eighteen Equity Incentive Plan [Member] Two thousand eighteen employee stock purchase plan. 2018 Employee Stock Purchase Plan Two Thousand Eighteen Employee Stock Purchase Plan [Member] Warrants to Purchase Common Stock Warrant [Member] Reserved common stock Common Stock Capital Shares Reserved For Future Issuance Preferred stock shares authorized Preferred Stock Shares Authorized Preferred stock, par value Preferred Stock Par Or Stated Value Per Share Preferred stock, outstanding Preferred Stock Shares Outstanding Class of warrant or right term of warrant. Issuance of warrants to purchase shares Exercise price per share Class Of Warrant Or Right Exercise Price Of Warrants Or Rights1 Term of warrant exercisable Class Of Warrant Or Right Term Of Warrant Cancellation of redeemable convertible preferred warrants. Preferred stock, conversion basis Preferred Stock Conversion Basis Cancellation of redeemable convertible preferred warrants Cancellation Of Redeemable Convertible Preferred Warrants Conversion of warrants to purchase of shares of common stock Class Of Warrant Or Right Number Of Securities Called By Each Warrant Or Right Annual increase period of common stock reserved for issuance. Increase in stock reserved for issuance as percentage of capital stock outstanding on last day of preceding year. Schedule Of Share Based Compensation Arrangements By Share Based Payment Award [Table] Schedule Of Share Based Compensation Arrangements By Share Based Payment Award [Table] Plan Name Plan Name [Axis] Plan Name Plan Name [Domain] Two thousand eighteen equity incentive plan. 2018 Equity Incentive Plan Two Thousand Eighteen Equity Incentive Plan [Member] Maximum Restricted Stock Units Restricted Stock Units R S U [Member] Stock Options 2018 Employee Stock Purchase Plan. Employee Stock Purchase Plan Employee Stock Purchase Plan [Member] Two thousand seventeen call option plan. 2017 Call Option Plan Two Thousand Seventeen Call Option Plan [Member] Vesting Vesting [Axis] Vesting Vesting [Domain] January 1 , 2017 Share Based Compensation Award Tranche One [Member] January 1 , 2018 Share Based Compensation Award Tranche Two [Member] January 1 , 2019 Share Based Compensation Award Tranche Three [Member] Share-based compensation award tranche four. January 1 , 2020 Share Based Compensation Award Tranche Four [Member] Share-based compensation award tranche five. January 1 , 2021 Share Based Compensation Award Tranche Five [Member] Share-based compensation award tranche six. January 1 , 2022 Share Based Compensation Award Tranche Six [Member] Award Date Award Date [Axis] Award Date Award Date [Domain] Option granted in February 2017. Option Granted in February 2017 Option Granted In February Two Thousand And Seventeen [Member] Option granted in August 2019. Option Granted in August 2019 Option Granted In August Two Thousand And Nineteen [Member] Share Based Compensation Arrangement By Share Based Payment Award [Line Items] Share Based Compensation Arrangement By Share Based Payment Award [Line Items] Annual increase period of common stock reserved for issuance Annual Increment Period Of Common Stock Reserved For Issuance Increase in stock reserved for issuance as percentage of capital stock outstanding on last day of preceding year Increase In Stock Reserved For Issuance As Percentage Of Capital Stock Outstanding On Last Day Of Preceding Year Maximum number of shares issuable Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Authorized Shares available for grant Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Available For Grant Two thousand four plan and two thousand eighteen equity incentive plan. 2004 and 2018 Equity Incentive Plan Two Thousand Four Plan And Two Thousand Eighteen Equity Incentive Plan [Member] Outstanding Options, Beginning Balance Share Based Compensation Arrangement By Share Based Payment Award Options Outstanding Number Outstanding Options Granted Share Based Compensation Arrangement By Share Based Payment Award Options Grants In Period Gross Outstanding Options Exercised Outstanding Options Canceled and forfeited Share Based Compensation Arrangement By Share Based Payment Award Options Forfeitures And Expirations In Period Outstanding Options, Ending Balance Weighted - Average Exercise Price, Beginning Balance Share Based Compensation Arrangement By Share Based Payment Award Options Outstanding Weighted Average Exercise Price Weighted - Average Exercise Price, Granted Share Based Compensation Arrangements By Share Based Payment Award Options Grants In Period Weighted Average Exercise Price Weighted - Average Exercise Price, Exercised Share Based Compensation Arrangements By Share Based Payment Award Options Exercises In Period Weighted Average Exercise Price Weighted - Average Exercise Price, Canceled and forfeited Share Based Compensation Arrangement By Share Based Payment Award Options Forfeitures And Expirations In Period Weighted Average Exercise Price Weighted - Average Exercise Price, Ending Balance Weighted - Average Remaining Contract Term Sharebased Compensation Arrangement By Sharebased Payment Award Options Outstanding Weighted Average Remaining Contractual Term2 Aggregate Intrinsic Value, Balance Share Based Compensation Arrangement By Share Based Payment Award Options Outstanding Intrinsic Value Aggregate intrinsic value of stock options exercised Share Based Compensation Arrangement By Share Based Payment Award Options Exercises In Period Total Intrinsic Value Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions And Methodology [Abstract] Share based compensation arrangement by share based payment award fair value assumptions and methodology. Share based compensation arrangement by share based payment award fair value assumptions and methodology. Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions And Methodology [Table] Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions And Methodology [Table] Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions And Methodology [Line Items] Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions And Methodology [Line Items] Expected term (in years) Sharebased Compensation Arrangement By Sharebased Payment Award Fair Value Assumptions Expected Term1 Expected volatility Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions Expected Volatility Rate Expected volatility, Minimum Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions Expected Volatility Rate Minimum Expected volatility, Maximum Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions Expected Volatility Rate Maximum Risk-free interest rate Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions Risk Free Interest Rate Risk-free interest rate, Minimum Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions Risk Free Interest Rate Minimum Risk-free interest rate, Maximum Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions Risk Free Interest Rate Maximum Expected dividend Share Based Compensation Arrangement By Share Based Payment Award Fair Value Assumptions Expected Dividend Rate Weighted-average estimated grant-date fair value of employee stock options granted Share Based Compensation Arrangement By Share Based Payment Award Options Grants In Period Weighted Average Grant Date Fair Value Share based compensation arrangement by share based payment award vesting date month and year. Restricted common stock granted Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Grants In Period Shares vesting period Share Based Compensation Arrangement By Share Based Payment Award Award Vesting Period1 Shares vesting date Share Based Compensation Arrangement By Share Based Payment Award Vesting Date Month And Year Number of shares Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Nonvested Roll Forward Non-vested December 31, 2018 Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Nonvested Number Vested and released Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Vested In Period Canceled and forfeited Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Forfeited In Period Non-vested September 30, 2019 Weighted Average Grant-Date Fair Value Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Nonvested Weighted Average Grant Date Fair Value Roll Forward Non-vested December 31, 2018 Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Nonvested Weighted Average Grant Date Fair Value Granted Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Grants In Period Weighted Average Grant Date Fair Value Vested and released Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Vested In Period Weighted Average Grant Date Fair Value Canceled and forfeited Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Forfeitures Weighted Average Grant Date Fair Value Non-vested September 30, 2019 Share based compensation arrangement by share based payment award number of shares available for grant , increase. Shares available for grant, increase Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Available For Grant Increase Stock-based compensation expense Allocated Share Based Compensation Expense Total unrecognized compensation cost related to unvested granted Employee Service Share Based Compensation Nonvested Awards Total Compensation Cost Not Yet Recognized Remaining unrecognized compensation cost expected to be recognized over weighted-average period Employee Service Share Based Compensation Nonvested Awards Total Compensation Cost Not Yet Recognized Period For Recognition1 Unrecognized stock-based compensation expense Employee Service Share Based Compensation Nonvested Awards Total Compensation Cost Not Yet Recognized Share Based Awards Other Than Options Schedule Of Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Table] Schedule Of Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Table] Income Statement Location Income Statement Location [Axis] Income Statement Location Income Statement Location [Domain] Research and Development Research And Development Expense [Member] General and Administrative General And Administrative Expense [Member] Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] Total stock-based compensation expense Share-based compensation arrangement by share-based payment award options, shares granted Call options vesting percentage Sharebased Compensation Arrangement By Sharebased Payment Award Award Vesting Rights Percentage Call options expiration period Sharebased Compensation Arrangement By Sharebased Payment Award Expiration Period Share-based compensation arrangement by share based payment award options, exercise price per share Share-based compensation arrangement by share-based payment award options vested number of shares Sharebased Compensation Arrangement By Sharebased Payment Award Options Vested Number Of Shares Share-based compensation arrangement by share-based payment award options exercised shares Share-based compensation arrangement by share-based payment award options, outstanding number of shares Share-based compensation arrangement by share-based payment award options, unvested shares Sharebased Compensation Arrangement By Sharebased Payment Award Options Nonvested Number Of Shares Other income (expense), net Other Nonoperating Income Expense Earnings Per Share Basic And Diluted [Abstract] Numerator: Net Income Loss [Abstract] Net loss, basic and diluted Net loss Net Income Loss Available To Common Stockholders Basic Denominator: Weighted Average Number Of Shares Outstanding [Abstract] Shares issued in computing net loss per share, basic and diluted Net loss per share, basic and diluted Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per Share [Table] Schedule Of Antidilutive Securities Excluded From Computation Of Earnings Per Share [Table] Antidilutive Securities Antidilutive Securities Excluded From Computation Of Earnings Per Share By Antidilutive Securities [Axis] Antidilutive Securities, Name Antidilutive Securities Name [Domain] Common stock options and restricted stock awards issued and outstanding. Common Stock Options And Restricted Stock Awards Issued And Outstanding Common Stock Options And Restricted Stock Awards Issued And Outstanding [Member] Warrants to purchase redeemable convertible preferred stock. Warrants to Purchase Redeemable Convertible Preferred Stock Warrants To Purchase Redeemable Convertible Preferred Stock [Member] Warrants to purchase common stock. Warrants to Purchase Common Stock Warrants To Purchase Common Stock [Member] Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items] Antidilutive Securities Excluded From Computation Of Earnings Per Share [Line Items] Antidilutive securities excluded from computation of net loss per share Antidilutive Securities Excluded From Computation Of Earnings Per Share Amount Proposed maximum aggregate offering price of securities. Maximum percentage of commission rate from sale of shares. Subsequent Event [Table] Subsequent Event [Table] Subsequent Event Type Subsequent Event Type [Axis] Subsequent Event Type Subsequent Event Type [Domain] Subsequent Event Subsequent Event [Member] Legal Entity Legal Entity [Axis] Entity Entity [Domain] Cowen and Company LLC. Cowen and Company, LLC Cowen And Company L L C [Member] At-the-Market issuance sales agreement. At-the-Market Issuance Sales Agreement Atthe Market Issuance Sales Agreement [Member] Subsequent Event [Line Items] Subsequent Event [Line Items] Proposed maximum aggregate offering price of securities Proposed Maximum Aggregate Offering Price Of Securities Maximum percentage of commission rate from sale of shares Maximum Percentage Of Commission Rate From Sale Of Shares