7Baggers

MacroGenics, Inc
(NASDAQ:MGNX) 

MGNX stock logo

MacroGenics, Inc., a biopharmaceutical company, discovers and develops antibody-based therapeutics for the treatment of cancer in the United States. The company's approved product is MARGENZA (margetuximab-cmkb), a human epidermal growth factor receptor 2 (HER2) receptor antagonist indicated, in com...

Founded: 2000
Full Time Employees: 384
Sector: Healthcare
Industry: Biotechnology

Share this website to your friends
• Market Cap:
• Exchange:
• Shs Outstanding:
• Employees:
• Beta:
• Return on Equity (ROE) ttm:
• Return on Assets (ROA) ttm:
• EPS ttm:
• Book value per Share:
• Cash per Share:
• Current ast per Share:
• P/E ttm:
• P/E forward:
• P/E ttm high:
• P/E ttm low:
• P/S ttm:
• P/B ttm:
• P/FCF ttm:
• PEG ratio:
• Cash Ratio ttm:
• Quick Ratio ttm:
• Current Ratio ttm:
• Gross Mgn ttm:
• EBITDA Mgn ttm:
• Operating Mgn ttm:
• Net Income Mgn ttm:
• Trailing Div yield:
• Forward Div yield:
• Payout Ratio ttm:
• Ex-Dividend date:
• Target Price High:
• Target Price Low:
• Target Price Mean:
• Number of Analysts:
• Debt Ratio ttm:
• Debt to Equity ttm:
• Total Net Debt:
At a glance:
Bull Thesis:
Bear Thesis:
Main Competitors:
Moat:
Income Statements:
Quarterly
Annual
    Unit: USD2026-03-31 2025-12-31 2025-09-30 2025-06-30 2025-03-31 2024-12-31 2024-09-30 2024-06-30 2024-03-31 2023-12-31 2023-09-30 2023-06-30 2023-03-31 2022-12-31 2022-09-30 2022-06-30 2022-03-31 2021-12-31 2021-09-30 2021-06-30 2021-03-31 2020-12-31 2020-09-30 2020-06-30 2020-03-31 2019-12-31 2019-09-30 2019-06-30 2019-03-31 2018-12-31 2018-09-30 2018-06-30 2018-03-31 2017-12-31 2017-09-30 2017-06-30 2017-03-31 2016-12-31 2016-09-30 2016-06-30 2016-03-31 2015-12-31 2015-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 2013-12-31 2013-09-30 
                                                       
      revenues:
                                                       
      collaborative and other agreements
    570,000 20,268,000 53,003,000 6,869,000 7,042,000 13,676,000 101,408,000 2,065,000 1,449,000 5,397,000 885,000 6,021,000 16,686,000 59,673,000 35,674,000 16,863,000                                    
      contract manufacturing
    14,054,000 11,273,000 19,836,000 15,372,000 6,150,000 3,315,000 4,573,000 2,893,000 2,276,000 169,000 4,462,000 1,587,000 3,615,000 8,854,000 1,142,000 3,992,000                                    
      royalty revenue
    6,151,000       98,000 160,000  10,000  422,000                                       
      total revenues
    20,775,000 41,227,000 72,839,000 22,241,000 13,192,000 19,353,000 110,708,000 10,797,000 9,104,000 10,720,000 10,397,000 13,136,000 24,496,000 73,099,000 41,734,000 26,007,000 11,101,000 14,147,000 15,662,000 30,757,000 16,881,000 52,691,000 18,253,000 20,257,000 13,682,000 25,192,000 18,741,000 10,593,000 9,662,000 15,794,000 20,798,000 18,834,000 4,695,000 152,359,000 1,663,000 1,666,000 2,055,000 5,106,000 3,255,000 80,673,000 2,846,000 8,178,000 14,681,000 6,716,000 71,279,000 5,476,000 18,382,000 9,220,000 14,718,597 14,906,436 20,232,068 
      yoy
    57.48% 113.03% -34.21% 105.99% 44.90% 80.53% 964.81% -17.81% -62.83% -85.33% -75.09% -49.49% 120.66% 416.71% 166.47% -15.44% -34.24% -73.15% -14.19% 51.83% 23.38% 109.16% -2.60% 91.23% 41.61% 59.50% -9.89% -43.76% 105.79% -89.63% 1150.63% 1030.49% 128.47% 2883.92% -48.91% -97.93% -27.79% -37.56% -77.83% 1101.21% -96.01% 49.34% -20.13% -27.16% 384.28% -63.26% -9.14%     
      qoq
    -49.61% -43.40% 227.50% 68.59% -31.83% -82.52% 925.36% 18.60% -15.07% 3.11% -20.85% -46.37% -66.49% 75.15% 60.47% 134.28% -21.53% -9.67% -49.08% 82.20% -67.96% 188.67% -9.89% 48.06% -45.69% 34.42% 76.92% 9.64% -38.82% -24.06% 10.43% 301.15% -96.92% 9061.70% -0.18% -18.93% -59.75% 56.87% -95.97% 2734.61% -65.20% -44.30% 118.60% -90.58% 1201.66% -70.21% 99.37% -37.36% -1.26% -26.32%  
      costs and expenses:
                                                       
      cost of manufacturing services
    9,530,000 10,115,000 11,589,000 8,906,000 5,400,000 5,257,000 1,702,000 2,647,000 1,846,000  3,274,000 919,000 3,410,000 1,675,000 136,000 2,222,000                                    
      research and development
    34,974,000 33,974,000 32,709,000 40,791,000 39,698,000 38,890,000 40,543,000 51,732,000 46,029,000 47,351,000 30,131,000 43,229,000 45,872,000 45,653,000 48,191,000 51,744,000 61,438,000 55,853,000 49,823,000 55,780,000 53,121,000 42,300,000 44,656,000 57,351,000 48,894,000 51,957,000 44,852,000 51,440,000 47,060,000 46,925,000 46,218,000 52,014,000 45,670,000 38,986,000 40,984,000 34,461,000 32,801,000 31,109,000 30,296,000 33,340,000 27,346,000 30,044,000 24,103,000 22,660,000 21,464,000 19,650,000 18,632,000 17,335,000 14,568,754 14,348,102 11,087,919 
      general and administrative
    9,710,000                     12,561,000 9,732,000 10,216,000 10,233,000 11,890,000 11,833,000 12,122,000 10,219,000 10,547,000 9,584,000 11,134,000 9,235,000 8,404,000 8,403,000 8,384,000 7,462,000 9,235,000 7,224,000 7,239,000 6,133,000 6,715,000 6,021,000 5,346,000 4,683,000 4,845,000 3,678,000 4,145,000 3,258,587 3,763,785 1,986,555 
      total costs and expenses
    54,214,000 53,324,000 54,203,000 58,999,000 55,816,000 72,190,000 56,517,000 68,978,000 62,854,000 60,074,000 45,899,000 58,098,000 62,922,000 61,116,000 66,689,000 67,815,000 77,739,000 72,383,000 68,649,000 71,036,000 68,174,000 54,861,000 54,388,000 67,567,000 59,127,000 63,847,000 56,685,000 63,562,000 57,279,000 57,472,000 55,802,000 63,148,000 54,905,000 47,390,000 49,387,000 42,845,000 40,263,000 40,344,000 37,520,000 40,579,000 33,479,000 36,759,000 30,124,000 28,006,000 26,147,000 24,495,000 22,310,000 21,480,000 17,827,341 18,111,887 13,074,474 
      income from operations
    -33,439,000 -12,097,000 18,636,000 -36,758,000 -42,624,000 -52,837,000 54,191,000 -58,181,000 -53,750,000 -49,354,000 -35,502,000 -44,962,000 -38,426,000 11,983,000 -24,955,000 -41,808,000 -66,638,000 -58,236,000 -52,987,000 -40,279,000 -51,293,000 -2,170,000 -36,135,000 -47,310,000 -45,445,000 -38,655,000 -37,944,000 -52,969,000 -47,617,000 -41,678,000 -35,004,000 -44,314,000 -50,210,000 104,969,000 -47,724,000 -41,179,000 -38,208,000 -35,238,000 -34,265,000 40,094,000 -30,633,000 -28,581,000 -15,443,000 -21,290,000 45,132,000 -19,019,000 -3,928,000 -12,260,000 -3,108,744 -3,205,451 7,157,594 
      yoy
    -21.55% -77.11% -65.61% -36.82% -20.70% 7.06% -252.64% 29.40% 39.88% -511.87% 42.26% 7.54% -42.34% -120.58% -52.90% 3.80% 29.92% 2583.69% 46.64% -14.86% 12.87% -94.39% -4.77% -10.68% -4.56% -7.25% 8.40% 19.53% -5.16% -139.71% -26.65% 7.61% 31.41% -397.89% 39.28% -202.71% 24.73% 23.29% 121.88% -288.32% -167.87% 50.28% 293.15% 73.65% -1551.78% 493.33% -154.88%     
      qoq
    176.42% -164.91% -150.70% -13.76% -19.33% -197.50% -193.14% 8.24% 8.91% 39.02% -21.04% 17.01% -420.67% -148.02% -40.31% -37.26% 14.43% 9.91% 31.55% -21.47% 2263.73% -93.99% -23.62% 4.10% 17.57% 1.87% -28.37% 11.24% 14.25% 19.07% -21.01% -11.74% -147.83% -319.95% 15.89% 7.78% 8.43% 2.84% -185.46% -230.88% 7.18% 85.07% -27.46% -147.17% -337.30% 384.19% -67.96% 294.37% -3.02% -144.78%  
      operating margin %
    -160.96% -29.34% 25.59% -165.27% -323.10% -273.02% 48.95% -538.86% -590.40% -460.39% -341.46% -342.28% -156.87% 16.39% -59.80% -160.76% -600.29% -411.65% -338.32% -130.96% -303.85% -4.12% -197.97% -233.55% -332.15% -153.44% -202.47% -500.04% -492.83% -263.89% -168.30% -235.29% -1069.44% 68.90% -2869.75% -2471.73% -1859.27% -690.13% -1052.69% 49.70% -1076.35% -349.49% -105.19% -317.00% 63.32% -347.32% -21.37% -132.97% -21.12% -21.50% 35.38% 
      interest and other income
    1,554,000 1,437,000 1,528,000 1,414,000 1,679,000 2,086,000 2,118,000 2,523,000 2,693,000 3,282,000 3,056,000 2,275,000 1,073,000                                       
      interest and other expense
    -4,889,000 -4,272,000 -3,342,000 -802,000 -91,000 24,000  -6,000 -1,133,000                                           
      net income
    -36,774,000 -14,155,000 16,822,000 -36,251,000 -41,036,000 -15,421,000 56,309,000 -55,664,000 -52,190,000 -46,072,000 17,554,000 57,469,000 -38,009,000 12,802,000 -24,813,000 -41,304,000 -66,443,000 -58,022,000 -52,886,000 -39,935,000 -51,272,000 -2,087,000 -36,043,000 -46,885,000 -44,724,000 -30,396,000 -44,631,000 -31,767,000 -45,017,000 -44,644,000 -34,029,000 -43,244,000 -49,536,000 105,727,000 -47,043,000 -40,654,000 -37,655,000 -34,783,000 -33,846,000 40,464,000 -30,363,000           
      yoy
    -10.39% -8.21% -70.13% -34.88% -21.37% -66.53% 220.78% -196.86% 37.31% -459.88% -170.75% -239.14% -42.79% -122.06% -53.08% 3.43% 29.59% 2680.16% 46.73% -14.82% 14.64% -93.13% -19.24% 47.59% -0.65% -31.91% 31.16% -26.54% -9.12% -142.23% -27.66% 6.37% 31.55% -403.96% 38.99% -200.47% 24.02%               
      qoq
    159.80% -184.15% -146.40% -11.66% 166.10% -127.39% -201.16% 6.66% 13.28% -362.46% -69.45% -251.20% -396.90% -151.59% -39.93% -37.84% 14.51% 9.71% 32.43% -22.11% 2356.73% -94.21% -23.12% 4.83% 47.14% -31.89% 40.49% -29.43% 0.84% 31.19% -21.31% -12.70% -146.85% -324.75% 15.72% 7.96% 8.26% 2.77% -183.64% -233.27%            
      net income margin %
    -177.01% -34.33% 23.09% -162.99% -311.07% -79.68% 50.86% -515.55% -573.26% -429.78% 168.84% 437.49% -155.16% 17.51% -59.46% -158.82% -598.53% -410.14% -337.67% -129.84% -303.73% -3.96% -197.46% -231.45% -326.88% -120.66% -238.15% -299.89% -465.92% -282.66% -163.62% -229.61% -1055.08% 69.39% -2828.80% -2440.22% -1832.36% -681.22% -1039.82% 50.16% -1066.87% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 
      other comprehensive loss:
                                                       
      unrealized loss on investments
    -59,000    -5,000       -80,000                                        
      comprehensive loss
    -36,833,000   -36,257,000 -41,041,000    -52,219,000    -37,996,000 12,910,000 -24,600,000 -41,347,000  -58,080,000 -52,890,000 -39,945,000 -51,254,000 -2,096,000 -36,058,000 -46,940,000 -44,668,000 -30,403,000 -44,642,000 -31,733,000 -45,014,000 -44,647,000 -34,047,000 -43,204,000 -49,497,000 105,651,000 -46,987,000  -37,681,000               
      basic and diluted net loss per common share
    -580   -570 -650    -840    -610 210 -400 -670 -1,080 -950 -860 -660 -900 20 -660 -940 -910 -620 -910 -650 -990 -1,060 -810 -1,030 -1,340 2,960 -1,280  -1,080           -440    
      basic and diluted weighted-average common shares outstanding
    63,449,780,000 63,155,096,000  63,136,057,000 62,965,415,000 62,621,185,000   62,290,538,000 61,929,198,000   61,809,817,000 61,433,124,000 61,459,831,000 61,384,943,000 61,324,163,000 59,944,717,000 61,169,754,000 60,068,315,000 57,202,846,000  54,463,412,000 50,018,462,000 49,012,663,000  48,902,766,000 48,845,234,000 45,606,651,000  42,239,327,000 42,153,813,000 36,936,560,000  36,779,305,000  34,958,228,000               
      product sales
         2,156,000 4,161,000 5,248,000 4,861,000 4,692,000 4,695,000 5,062,000 3,490,000 4,104,000 4,371,000 4,672,000                                    
      government agreements
         206,000 566,000 493,000 358,000 462,000 345,000 466,000 283,000 468,000 547,000 480,000                                    
      cost of product sales
         233,000 168,000 176,000 270,000 163,000 85,000 258,000 113,000 116,000 3,007,000 180,000 48,000 947,000 1,665,000 22,000 17,000                               
      selling, general and administrative
     9,235,000 9,905,000 9,302,000 10,718,000 27,810,000 14,104,000 14,423,000 14,709,000 12,560,000 12,409,000 13,692,000 13,527,000 13,672,000 15,355,000 13,669,000 16,253,000 15,583,000 17,161,000 15,234,000 15,036,000                               
      income before income taxes
     -14,932,000 16,822,000 -36,146,000                                                
      income tax provision
     26,250  105,000                                                
      other comprehensive income:
                                                       
      unrealized gain on investments
     27,000 12,000 -6,000  -10,000 38,000 11,000 -29,000 29,000 38,000  13,000 108,000 213,000 -43,000 -222,000 -58,000 -4,000 -10,000 18,000 -9,000 -15,000 -55,000 56,000 -7,000 -11,000 34,000 3,000 -3,000 -18,000 40,000 39,000 13,750 56,000 25,000 -26,000 5,750 -41,000 7,000 57,000           
      comprehensive income
     -15,116,000 16,834,000   -12,881,250 56,347,000 -55,653,000  9,246,000 17,592,000 57,389,000     -66,665,000                   -40,629,000  -5,930,500 -33,887,000 40,471,000 -30,306,000           
      net income per common share:
                                                       
      basic
     -240 270   -205 900 -890  150 280 930                                        
      diluted
     -240 270   -205 900 -890  150 280 920                                        
      weighted-average common shares outstanding:
                                                       
      basic
      63,233,266,000    62,744,005,000 62,663,677,000   61,980,680,000 61,880,096,000                                        
      diluted
      63,283,624,000    62,865,841,000 62,663,677,000   62,244,602,000 62,261,646,000                                        
      gain on royalty monetization arrangement
              50,000,000 100,930,000                                        
      interest expense
               -774,000 -656,000                                       
      other income
                 819,000 142,000 504,000 195,000 214,000 101,000 344,000 21,000 83,000 92,000 425,000 721,000 8,259,000 -6,687,000 21,202,000 2,600,000 -2,966,000 975,000 1,070,000 674,000 758,000 681,000 525,000 553,000 455,000 419,000 370,000 270,000 130,000 1,000 -86,000 -3,000 1,000  1,000 409 467 -553,612 
      revenue from collaborative and other agreements
                    7,093,000 8,956,000 11,986,000 27,168,000 15,184,000 51,746,000 17,415,000 15,636,000 12,967,000 24,556,000 17,984,000 9,987,000  10,917,500 20,617,000 18,552,000                    
      product revenue
                    3,580,000 4,668,000 3,591,000 3,203,000 887,000                               
      revenue from government agreements
                    428,000 523,000 85,000 386,000 810,000 945,000 838,000 4,621,000 715,000 636,000 757,000 606,000 165,000 820,000 181,000 282,000 194,000 278,000 587,000 585,000 777,000 928,000 1,241,000  953,000           
      revenue from collaborative agreements
                                9,497,000    4,501,000 152,081,000 1,076,000 1,081,000 1,278,000 4,178,000 2,014,000  1,893,000           
      basic net income per common share
                                       -1,140  -172.5 -970 1,170 -880 67.5 -460 -710 1,530 -177.5 -140    0.14 
      diluted net income per common share
                                       -1,140  -172.5 -970 1,120 -880 62.5 -460 -710 1,420 -177.5 -140    0.01 
      basic weighted-average common shares outstanding
                                       35,784,804,000   34,766,440,000 34,616,197,000 34,503,845,000  33,339,163,000 30,059,329,000 29,415,768,000  27,751,437,000     
      diluted weighted-average common shares outstanding
                                       35,784,804,000   34,766,440,000 36,017,411,000 34,503,845,000  33,339,163,000 30,059,329,000 31,684,174,000  27,751,437,000     
      revenue from collaborative research
                                           78,497,000  22,861,000 14,681,000 5,598,000 71,165,000 5,378,000 18,283,000 9,202,000 14,400,679 14,737,129 20,111,173 
      grant revenue
                                           2,176,000  308,000  1,118,000 114,000 98,000 99,000 18,000 317,918 169,307 120,895 
      net comprehensive income
                                             2,077,750 -15,442,000 -21,376,000 45,129,000 -19,018,000 -3,928,000  -3,108,335 -3,204,984 6,603,982 
      net comprehensive loss
                                                   -12,259,000    
      weighted-average common shares outstanding, basic and diluted
                                                   27,651,297,000 26,262,356   
      basic and diluted net income per common share
                                                    -0.12   
      basic weighted-average number of common shares
                                                     6,847,697 1,184,507 
      diluted weighted-average number of common shares
                                                     6,847,697 21,242,978 
    Balance Sheets:
    Quarterly
    Annual
      Unit: USD2026-03-31 2025-12-31 2025-09-30 2025-06-30 2025-03-31 2024-12-31 2024-09-30 2024-06-30 2024-03-31 2023-12-31 2023-09-30 2023-06-30 2023-03-31 2022-12-31 2022-09-30 2022-06-30 2022-03-31 2021-12-31 2021-09-30 2021-06-30 2021-03-31 2020-12-31 2020-09-30 2020-06-30 2020-03-31 2019-12-31 2019-09-30 2019-06-30 2019-03-31 2018-12-31 2018-09-30 2018-06-30 2018-03-31 2017-12-31 2017-09-30 2017-06-30 2017-03-31 2016-12-31 2016-09-30 2016-06-30 2016-03-31 2015-12-31 2015-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 2013-12-31 2013-09-30 
                                                         
        assets
                                                         
        current assets:
                                                         
        cash and cash equivalents
      66,517,000 57,217,000 80,129,000 130,686,000 145,570,000 182,840,000 179,625,000 83,932,000 80,355,000 100,956,000 89,898,000 108,758,000 224,264,000 108,884,000 83,993,000 21,469,000 47,328,000 123,469,000 190,531,000 188,970,000 218,496,000 181,131,000 201,637,000 196,532,000 93,056,000 126,472,000 156,593,000 180,316,000 238,641,000 220,128,000 201,807,000 238,661,000 200,448,000 211,727,000 90,884,000 116,627,000 40,518,000 84,098,000 109,901,000 62,267,000 151,952,000 196,172,000 365,767,000 235,027,000 263,134,000 157,591,000 179,191,000 194,014,000 198,721,816 116,481,409 33,569,198 
        marketable securities
      87,712,000 132,696,000 66,268,000 45,800,000 8,571,000 18,827,000 20,738,000 56,440,000 103,882,000 128,849,000 166,534,000 131,589,000 17,392,000 45,462,000 39,623,000 112,271,000 136,658,000 120,147,000 108,367,000 108,346,000 124,681,000 91,400,000 79,022,000 36,267,000 77,793,000 89,284,000 97,823,000 91,820,000 81,750,000 12,735,000 58,336,000 62,233,000 59,633,000 93,394,000 112,763,000 127,033,000 202,585,000 192,898,000 201,222,000 203,357,000 152,496,000 142,877,000          
        accounts receivable
      10,425,000 13,373,000 69,230,000 12,532,000 10,543,000 4,309,000 8,750,000 6,191,000 7,219,000 10,367,000 25,311,000 6,410,000 36,160,000 56,222,000 13,837,000 18,385,000 14,905,000 10,386,000 13,759,000 45,248,000 7,148,000 23,081,000 18,777,000 19,205,000 11,806,000 12,744,000 9,503,000 5,613,000 6,115,000 29,583,000 20,970,000 17,836,000 7,281,000 13,643,000 2,194,000 1,991,000 2,093,000 2,764,000 3,008,000 78,375,000 2,512,000 1,224,000 2,744,000 4,334,000 1,719,000 2,935,000 5,315,000 2,645,000 1,745,740 2,004,019 2,281,282 
        inventory
      9,498,000 7,910,000 8,750,000 9,275,000 9,426,000  3,244,000 1,115,000 1,248,000 1,221,000 1,066,000 1,443,000 1,409,000 1,451,000 1,086,000 2,949,000 4,598,000 4,388,000 3,979,000 6,476,000 6,172,000                               
        prepaid expenses and other current assets
      8,371,000 8,745,000 7,714,000 6,652,000 7,978,000 11,514,000 9,839,000 9,273,000 9,871,000 9,946,000 8,510,000 6,475,000 9,718,000 10,161,000 9,273,000 12,559,000 14,712,000 21,170,000 18,062,000 17,956,000 18,222,000 16,982,000 10,632,000 8,192,000 12,630,000 11,285,000                          
        total current assets
      182,523,000 219,941,000 232,091,000 204,945,000 182,088,000 217,490,000 222,196,000 156,951,000 202,575,000 251,339,000 291,319,000 254,675,000 288,943,000 222,180,000 147,812,000 167,633,000 218,201,000 279,560,000 334,698,000 366,996,000 374,719,000 312,594,000 310,068,000 260,196,000 195,285,000 239,785,000 276,233,000 287,597,000 335,033,000 269,124,000 285,642,000 322,054,000 271,039,000 322,298,000 209,466,000 250,114,000 251,007,000 283,947,000 316,286,000 348,444,000 309,266,000 342,384,000 370,495,000 242,427,000 268,470,000 164,737,000 186,959,000 198,759,000 202,404,061 119,457,133 36,953,929 
        property, equipment and software
      11,493,000 12,625,000 13,975,000 15,364,000 16,877,000 18,100,000 19,100,000 20,383,000 21,296,000 21,847,000 22,634,000 24,091,000 26,783,000 29,575,000 31,993,000 34,022,000 36,034,000 37,676,000 38,684,000 39,395,000 40,475,000 42,225,000 41,423,000 43,887,000 46,318,000 48,211,000 49,966,000 52,295,000 54,818,000 56,712,000 58,649,000 57,491,000  49,983,000                  
        operating lease right-of-use assets
      22,481,000 22,895,000 23,305,000 23,710,000 24,110,000 24,509,000 22,011,000 22,617,000 23,229,000 23,846,000 24,632,000 25,501,000 26,394,000 27,335,000                                      
        other non current assets
      1,376,000 1,385,000 1,392,000 1,397,000 1,490,000 1,556,000 1,185,000 1,186,000 1,185,000 1,386,000 1,387,000 1,386,000 1,378,000 1,378,000 15,542,000 16,388,000 17,210,000 18,009,000                                  
        total assets
      217,873,000 256,846,000 270,763,000 245,416,000 224,565,000 261,655,000 264,492,000 201,137,000 248,285,000 298,418,000 339,972,000 305,653,000 343,498,000 280,468,000 195,347,000 218,043,000 271,445,000 335,245,000 392,160,000 425,911,000 435,445,000 378,743,000 374,380,000 327,592,000 265,413,000 312,501,000 351,451,000 383,677,000 414,638,000 332,130,000 355,356,000 386,891,000 326,078,000 373,883,000 241,845,000 274,846,000 274,721,000 311,263,000 339,864,000 368,850,000 325,657,000 359,269,000 384,089,000 254,203,000 278,070,000 173,886,000 193,625,000 205,720,000 210,172,713 125,782,381 41,975,907 
        liabilities and stockholders' equity
                                                         
        current liabilities:
                                                         
        accounts payable
      4,287,000 4,787,000 5,940,000 4,657,000 6,617,000 5,013,000 6,613,000 5,236,000 10,694,000 6,443,000 3,303,000 3,795,000 3,759,000 4,899,000 4,619,000 2,609,000 3,731,000 15,500,000 6,170,000 9,818,000 10,346,000 8,031,000 4,380,000 2,766,000 1,956,000 4,308,000 2,543,000 857,000 925,000 4,005,000 986,000 1,767,000 10,266,000 2,451,000 1,680,000 2,088,000 1,515,000 3,995,000 1,374,000 1,150,000 1,118,000 2,967,000 2,541,000 1,853,000 1,444,000 1,669,000 4,388,000 3,977,000 5,133,050 3,169,034 1,798,228 
        accrued expenses and other current liabilities
      18,446,000 22,230,000 23,087,000 21,349,000 27,837,000 29,334,000 24,644,000 24,446,000 18,148,000 24,239,000 25,478,000 27,528,000 28,188,000 28,998,000 33,321,000 31,763,000 32,967,000 33,755,000 41,859,000 39,174,000 34,965,000 34,198,000 32,674,000 30,475,000 25,060,000 27,139,000                          
        deferred revenue
      67,993,000 10,921,000 10,302,000 7,872,000 15,620,000 16,319,000 23,308,000 23,818,000 22,837,000 21,651,000 18,584,000 9,671,000 9,249,000 9,988,000 7,085,000 11,565,000 25,562,000 20,646,000 16,314,000 16,565,000 3,520,000 4,456,000 9,259,000 9,267,000 9,506,000 10,700,000 23,571,000 14,449,000 18,085,000 21,721,000 7,377,000 7,999,000 8,121,000 7,202,000 3,202,000 3,202,000 4,261,000 4,261,000 3,783,000 4,578,000 4,919,000 5,866,000 7,163,000 10,186,000 12,382,000 14,248,000 15,617,000     
        lease liabilities
      5,214,000 5,177,000 5,141,000 5,122,000 5,367,000 4,864,000 4,744,000 4,406,000 4,085,000 3,775,000 3,926,000 4,161,000 4,418,000 4,726,000 5,021,000 4,940,000 4,837,000 4,677,000 4,521,000 4,367,000 4,212,000 3,988,000 3,808,000 3,386,000 3,088,000 3,020,000 2,956,000 3,644,000 3,734,000                       
        total current liabilities
      95,940,000 43,115,000 44,470,000 39,000,000 55,441,000 55,530,000 59,309,000 57,906,000 55,764,000 56,108,000 51,291,000 45,155,000 45,614,000 48,611,000 50,046,000 50,877,000 67,097,000 74,578,000 68,864,000 69,924,000 53,043,000 50,673,000 50,121,000 45,894,000 39,610,000 45,167,000 57,634,000 49,535,000 51,771,000 59,940,000 48,025,000 48,027,000 49,956,000 49,755,000 32,438,000 29,889,000 26,552,000 27,302,000 22,052,000 19,529,000 17,807,000 23,288,000 22,387,000 23,847,000 24,128,000 27,094,000 25,988,000 29,872,000 29,384,741 28,821,571 25,265,811 
        liability related to future royalties
      68,713,000 70,000,000 70,256,000 70,260,000         100,222,000                                       
        deferred revenue, net of current portion
       55,503,000 55,840,000 55,745,000 55,938,000 55,503,000 55,503,000 55,503,000 56,182,000 59,243,000 64,260,000 58,538,000 58,006,000 59,480,000 5,084,000 6,163,000 6,364,000  9,575,000 13,476,000 7,260,000 6,926,000 5,778,000 6,819,000 8,100,000 9,153,000 10,037,000 15,413,000 17,207,000 19,001,000 14,134,000 15,948,000 17,762,000 13,637,000 8,438,000 9,238,000 8,979,000 10,045,000 9,794,000 10,740,000 11,685,000 12,631,000 11,889,000 12,722,000 14,389,000 16,472,000 19,052,000 23,912,000 17,160,723 7,135,687 8,812,342 
        lease liabilities, net of current portion
      31,295,000 31,585,000 31,868,000 32,125,000 32,099,000 32,597,000 29,356,000 29,651,000 29,927,000 30,196,000 30,183,000 30,158,000 30,130,000 30,106,000 17,001,000 18,264,000 19,512,000 20,791,000 22,025,000 23,208,000 24,353,000 25,260,000 24,651,000 25,653,000 26,615,000 27,553,000 28,582,000 24,278,000 25,043,000                       
        other non current liabilities
      727,000 1,052,000 1,328,000 1,668,000 1,968,000 1,968,000 258,000 258,000 258,000 258,000 258,000 258,000 258,000 258,000 258,000 258,000 258,000 258,000 258,000 258,000 258,000   1,442,000 515,000                           
        total liabilities
      196,675,000 201,255,000 203,762,000 198,798,000 145,446,000 145,598,000 144,426,000 143,318,000 142,131,000 145,805,000 145,992,000 134,109,000 234,230,000 138,455,000 72,389,000 75,562,000 93,231,000 95,627,000 100,722,000 106,866,000 84,914,000 82,859,000 82,795,000 79,808,000 74,840,000 81,873,000 96,253,000 89,226,000 94,021,000 89,253,000 72,712,000 74,855,000 78,802,000 74,645,000 52,380,000 43,498,000 40,083,000 42,512,000 39,762,000 38,874,000 39,402,000 45,932,000 44,763,000 42,514,000 47,077,000 52,600,000 54,537,000 63,741,000 56,953,525 46,867,913 46,024,321 
        stockholders' equity:
                                                         
        common stock
      636,000 633,000 633,000 632,000 631,000 628,000 627,000 627,000 626,000 621,000 620,000 619,000 618,000 617,000 615,000 615,000 613,000 613,000 613,000 601,000 600,000 562,000 562,000 534,000 492,000 490,000 489,000 489,000 488,000 424,000 422,000 422,000 370,000 369,000 368,000 367,000 350,000 349,000 348,000 347,000 345,000 343,000 342,000 301,000 300,000 280,000 278,000 277,000 274,990 251,775 21,246 
        additional paid-in capital
      1,301,701,000 1,299,264,000 1,296,546,000 1,292,998,000 1,289,243,000 1,285,143,000 1,273,722,000 1,267,822,000 1,260,505,000 1,254,750,000 1,250,074,000 1,245,231,000 1,240,345,000 1,235,095,000 1,228,952,000 1,223,875,000 1,218,263,000 1,213,002,000 1,206,742,000 1,181,471,000 1,173,013,000 1,067,150,000 1,060,755,000 980,924,000 876,815,000 872,204,000 866,372,000 860,983,000 855,417,000 732,727,000 727,849,000 723,196,000 615,284,000 611,270,000 607,191,000 602,085,000 564,766,000 561,198,000 557,667,000 553,655,000 550,407,000 547,185,000 544,719,000 401,681,000 399,629,000 335,071,000 333,838,000 332,802,000 331,785,771 254,453,673 165,569,134 
        accumulated other comprehensive income
      -27,000  5,000 -7,000 -1,000  14,000    -34,000 -72,000 8,000     -61,000 -3,000 1,000 11,000 -7,000 2,000 17,000 72,000 16,000 23,000 34,000    17,000       18,000 59,000 52,000           
        accumulated deficit
      -1,281,112,000 -1,244,338,000 -1,230,183,000 -1,247,005,000 -1,210,754,000 -1,169,718,000 -1,154,297,000 -1,210,606,000 -1,154,942,000 -1,102,752,000 -1,056,680,000 -1,074,234,000 -1,131,703,000 -1,093,694,000 -1,106,496,000 -1,081,683,000 -1,040,379,000 -973,936,000 -915,914,000 -863,028,000 -823,093,000 -771,821,000 -769,734,000 -733,691,000 -686,806,000 -642,082,000 -611,686,000 -567,055,000 -535,288,000 -490,271,000 -445,627,000 -411,599,000 -368,355,000 -312,340,000 -418,067,000 -371,024,000 -330,370,000 -292,714,000 -257,931,000 -224,085,000 -264,549,000 -234,186,000 -205,735,000 -190,293,000 -168,917,000 -214,046,000 -195,028,000 -191,100,000 -178,841,573 -175,733,238 -172,528,254 
        total stockholders' equity
      21,198,000 55,591,000 67,001,000 46,618,000 79,119,000 116,057,000 120,066,000 57,819,000 106,154,000 152,613,000 193,980,000 171,544,000 109,268,000 142,013,000 122,958,000 142,481,000 178,214,000 239,618,000 291,438,000 319,045,000 350,531,000 295,884,000 291,585,000 247,784,000 190,573,000 230,628,000 255,198,000 294,451,000 320,617,000 242,877,000 282,644,000 312,036,000 247,276,000 299,238,000 189,465,000 231,348,000 234,638,000 268,751,000 300,102,000 329,976,000 286,255,000 313,337,000 339,326,000 211,689,000 230,993,000       
        total liabilities and stockholders' equity
      217,873,000 256,846,000 270,763,000 245,416,000 224,565,000 261,655,000 264,492,000 201,137,000 248,285,000 298,418,000 339,972,000 305,653,000 343,498,000 280,468,000 195,347,000 218,043,000 271,445,000 335,245,000 392,160,000 425,911,000 435,445,000 378,743,000 374,380,000 327,592,000 265,413,000 312,501,000 351,451,000 383,677,000 414,638,000 332,130,000 355,356,000 386,891,000 326,078,000 373,883,000 241,845,000 274,846,000 274,721,000 311,263,000 339,864,000 368,850,000 325,657,000 359,269,000 384,089,000 254,203,000 278,070,000       
        accumulated other comprehensive gain
       32,000    4,000                                              
        accumulated other comprehensive loss
             -24,000 -35,000 -6,000    -5,000 -113,000 -326,000 -283,000             -3,000   -23,000 -61,000 -27,000 -80,000 -108,000 -82,000    -5,000          
        other assets
                        18,778,000 19,520,000 20,251,000 23,924,000 22,889,000 23,509,000 23,810,000 24,505,000 25,252,000 43,785,000 24,787,000 6,294,000 11,065,000 7,346,000 1,596,000 1,602,000 1,541,000 1,553,000 1,360,000 1,369,000 2,104,000 2,112,000 2,044,000 2,044,000 2,064,000 2,064,000 2,064,000 2,064,000 733,000 1,114,000 2,279,513 885,166 147,246 
        other non-current liabilities
                            2,245,000                             
        deferred rent
                                   1,018,000 1,010,000 905,000 905,000 1,048,000 1,165,000 1,160,000 1,308,000 1,319,000              
        deferred rent, net of current portion
                                   10,312,000 10,553,000 10,880,000 11,084,000 11,253,000 11,504,000 4,371,000 4,552,000 4,867,000              
        prepaid expenses
                                12,019,000 9,616,000 8,309,000 6,406,000 4,315,000 3,173,000 3,328,000 3,151,000 3,261,000 4,008,000 5,018,000 3,483,000 1,311,000 3,782,000 1,703,000 1,806,000 1,984,000 3,066,000 3,617,000 4,211,000 2,453,000 2,100,000 1,936,505 971,705 1,103,449 
        other current assets
                                295,000 232,000 218,000 272,000 214,000 151,000 349,000 383,000 364,000 455,000 793,000 704,000 844,000 663,000 603,000 305,000          
        accrued expenses
                                28,389,000 30,410,000 28,852,000 33,021,000 38,477,000 37,181,000 30,489,000 38,581,000 25,501,000 22,319,000 17,957,000 16,134,000 15,370,000 12,342,000 9,687,000 11,708,000 9,120,000 8,305,000 7,001,000 7,930,000 4,031,000 3,310,000 2,735,153 3,583,552 939,811 
        other current liabilities
                                175,000 175,000  175,000    175,000                  
        other liabilities
                                  175,000  175,000 175,000 175,000  175,000    727,000 727,000 727,000 727,000 1,605,000 1,605,000 1,605,000 1,605,000 363,000     
        lease exit liability
                                       298,000 715,000 1,120,000 1,511,000 1,593,000 1,525,000 1,459,000 2,083,000 2,020,000 1,958,000 1,898,000 1,696,000 1,642,000 1,589,000    8,378,184 
        property and equipment
                                      53,443,000  30,838,000 23,179,000 17,376,000 17,961,000 18,473,000 18,294,000 14,347,000 14,841,000 11,530,000 9,412,000 7,236,000 6,785,000 5,633,000 5,442,000 5,084,289 5,035,232 4,469,882 
        marketable securities, non-current
                                          4,978,000 7,986,000 3,001,000             
        lease exit liability, net of current portion
                                           298,000 715,000 1,120,000 2,142,000 2,693,000 3,215,000 3,725,000 5,914,000 6,364,000 6,789,000 7,204,000 7,609,524 8,006,428  
        deferred rent liability
                                            6,474,000 6,758,000 7,041,000 7,320,000 7,272,000 2,220,000 2,646,000 2,670,000 2,708,000 2,753,000 2,798,537 2,904,227 2,888,688 
        restricted cash
                                                 300,000 300,000 300,000 300,000 405,000 404,850 404,850 404,850 
        treasury stock
                                                  -19,000 -19,000    -57,742 -57,742 
        liabilities and stockholders’ equity
                                                         
        stockholders’ equity:
                                                         
        total stockholders’ equity
                                                   121,286,000 139,088,000 141,979,000 153,219,188 78,914,468 -4,048,414 
        total liabilities and stockholders’ equity
                                                   173,886,000 193,625,000 205,720,000 210,172,713 125,782,381 41,975,907 
        lease exit liability – current
                                                     1,538,000 1,487,854  1,229,454 
        deferred revenue – current
                                                     20,684,000 19,665,764  21,298,318 
        other liabilities – current
                                                     363,000 362,920   
        stockholders’ equity
                                                         
        lease exit liability—current
                                                       1,438,742  
        deferred revenue—current
                                                       20,267,323  
        other liabilities—current
                                                       362,920  
        preferred stock warrant liability
                                                        679,296 
        series a-1 convertible preferred stock, 0.01 par value—26,874,792 shares authorized, issued and outstanding at december 31, 2012 with an aggregate liquidation preference of 27,000,000; no shares outstanding at december 31, 2013
                                                         
        series a-2 convertible preferred stock, 0.01 par value—7,364,582 shares authorized, issued and outstanding at december 31, 2012 with an aggregate liquidation preference of 7,000,000; no shares outstanding at december 31, 2013
                                                         
        series b convertible preferred stock, 0.01 par value—71,401,237 shares authorized, issued and outstanding at december 31, 2012 with an aggregate liquidation preference of 31,000,000; no shares outstanding at december 31, 2013
                                                         
        series c convertible preferred stock, 0.01 par value—110,952,217 shares authorized, issued and outstanding at december 31, 2012 with an aggregate liquidation preference of 45,000,000; no shares outstanding at december 31, 2013
                                                         
        series d-1 convertible preferred stock, 0.01 par value—30,000,000 shares authorized, 14,446,227 shares issued and outstanding at december 31, 2012 with an aggregate liquidation preference of 9,400,000; no shares outstanding at december 31, 2013
                                                         
        series d-2 convertible preferred stock, 0.01 par value—75,000,000 shares authorized, 63,681,176 shares issued and outstanding at december 31, 2012 with an aggregate liquidation preference of 41,500,000; no shares outstanding at december 31, 2013
                                                         
        series a-1 convertible preferred stock, 0.01 par value – 26,874,792 shares authorized, 26,874,792 shares issued and outstanding at september 30, 2013 and december 31, 2012; aggregate liquidation preference of 27,000,000 at september 30, 2013 and december 31, 2012
                                                        268,748 
        series a-2 convertible preferred stock, 0.01 par value – 7,364,582 shares authorized, 7,364,582 shares issued and outstanding at september 30, 2013 and december 31, 2012; aggregate liquidation preference of 7,000,000 at september 30, 2013 and december 31, 2012
                                                        73,646 
        series b convertible preferred stock, 0.01 par value – 71,401,237 shares authorized, 71,401,237 shares issued and outstanding at september 30, 2013 and december 31, 2012; aggregate liquidation preference of 31,000,000 at september 30, 2013 and december 31, 2012
                                                        714,012 
        series c convertible preferred stock, 0.01 par value – 110,952,217 shares authorized, 110,952,217 shares issued and outstanding at september 30, 2013 and december 31, 2012; aggregate liquidation preference of 45,000,000 at september 30, 2013 and december 31, 2012
                                                        1,109,522 
        series d-1 convertible preferred stock, 0.01 par value – 30,000,000 shares authorized, 14,446,227 shares issued and outstanding at september 30, 2013 and december 31, 2012; aggregate liquidation preference of 9,400,000 at september 30, 2013 and december 31, 2012
                                                        144,462 
        series d-2 convertible preferred stock, 0.01 par value – 75,000,000 shares authorized, 63,681,176 shares issued and outstanding at september 30, 2013 and december 31, 2012; aggregate liquidation preference of 41,500,000 at september 30, 2013 and december 31, 2012
                                                        636,812 
      Cashflow Statements:
      Quarterly
      Annual
        Unit: USD2026-03-31 2025-12-31 2025-09-30 2025-06-30 2025-03-31 2024-12-31 2024-09-30 2024-06-30 2024-03-31 2023-12-31 2023-09-30 2023-06-30 2023-03-31 2022-12-31 2022-09-30 2022-06-30 2022-03-31 2021-12-31 2021-09-30 2021-06-30 2021-03-31 2020-12-31 2020-09-30 2020-06-30 2020-03-31 2019-12-31 2019-09-30 2019-06-30 2019-03-31 2018-12-31 2018-09-30 2018-06-30 2018-03-31 2017-12-31 2017-09-30 2017-06-30 2017-03-31 2016-12-31 2016-09-30 2016-06-30 2016-03-31 2015-12-31 2015-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 2013-12-31 
                                                          
          cash flows from operating activities
                                                          
          net loss
        -36,774,000 -14,155,000 16,822,000 -36,251,000 -41,036,000    -52,190,000    -38,009,000 12,802,000 -24,813,000 -41,304,000 -66,443,000 -58,022,000 -52,886,000 -39,935,000 -51,272,000 -2,087,000 -36,043,000 -46,885,000 -44,724,000 -30,396,000 -44,631,000 -31,767,000 -45,017,000 -44,644,000 -34,029,000 -43,244,000 -49,536,000 105,727,000                 
          adjustments to reconcile net loss to net cash from operating activities:
                                                          
          depreciation and amortization
        1,687,000                                                  
          amortization of premiums and discounts on marketable securities
        -737,000 -644,000 -511,000 -311,000 -182,000 -185,000 -371,000 -939,000 -1,315,000 -1,728,000 -1,872,000 -1,032,000 -372,000 -337,000 112,000 294,000 334,000 340,000 459,000 441,000 367,000 127,000 14,000                            
          share-based compensation expense
        2,646,000                                                  
          non-cash royalty revenue
        -6,151,000 -4,599,000           -90,000                                      
          non-cash interest expense
        4,864,000 4,343,000 3,329,000       774,000 656,000                                      
          non-cash lease expense
        424,000 580,000 405,000 400,000 399,000 -2,498,000 607,000 611,000 617,000 786,000 869,000 893,000 941,000                                      
          changes in operating assets and liabilities:
                                                          
          accounts receivable
        2,947,000 55,858,000 -56,698,000 -1,990,000 -6,233,000 4,442,000 -2,560,000 1,028,000 3,148,000 14,944,000 -18,901,000 29,750,000 20,062,000 -42,384,000 4,547,000 -3,479,000 -4,520,000 3,374,000 31,488,000 -38,100,000 15,934,000 -4,304,000 428,000 -7,399,000 938,000 -3,241,000 -3,891,000 503,000 23,468,000 -8,613,000 -3,134,000 -10,555,000 6,361,000 -11,448,000 -203,000 102,000 671,000 244,000 75,367,000 -75,864,000 -1,287,000 1,520,000 1,590,000 -2,615,000 1,216,000 2,380,000 -2,670,000 -899,279 258,279 277,263 
          inventory
        -1,589,000 840,000 525,000 151,000 -9,426,000 -165,000 -2,129,000 133,000 -27,000 -155,000 377,000 -34,000 42,000 -364,000 57,000 572,000 -210,000 -842,000 894,000 -304,000 -6,172,000                              
          prepaid expenses and other current assets
        374,000 -1,031,000 -1,062,000 1,327,000 3,535,000 -1,675,000 -565,000 598,000 75,000 -1,436,000 -2,035,000 3,243,000 443,000 -889,000 3,287,000 2,154,000 6,457,000 -3,108,000 -106,000 265,000 -1,239,000  -2,439,000                            
          other non current assets
          5,000 93,000 66,000 -370,000 -1,000 201,000   -13,172,000 846,000 821,000 801,000                                  
          accounts payable
        -776,000 -1,201,000 1,309,000 -1,640,000 1,252,000 -1,700,000 1,413,000 -5,422,000 4,179,000 2,888,000 -503,000 44,000 -1,148,000 37,000 1,999,000 -976,000 -11,920,000 9,056,000 -3,599,000 -161,000 1,829,000 3,586,000 1,613,000 810,000 -2,286,000 1,700,000 1,685,000         197,000 -2,223,000 2,365,000 222,000 33,000 -388,000 -1,035,000 688,000 409,000 -225,000 -2,719,000 411,000 -1,156,016 1,964,016 1,370,806 
          accrued expenses and other current liabilities
        -3,719,000 -921,000 1,738,000 -6,488,000 -1,163,000 4,355,000 198,000 6,341,000 -5,891,000 -1,435,000 -2,095,000 -616,000 -677,000 -4,454,000 1,513,000 -1,154,000 -543,000 -8,351,000 2,379,000 4,510,000 855,000                              
          lease liabilities
        -252,000 -247,000 -238,000 -219,000 5,000 3,362,000 42,000 45,000 41,000 -138,000 -210,000 -229,000 -284,000 12,811,000 -1,183,000 -1,145,000 -1,119,000 -1,079,000 -1,028,000 -990,000 -683,000 789,000 -579,000 -665,000 -869,000 -966,000 3,616,000 -855,000 1,086,000                      
          deferred revenue
        1,569,000 282,000 2,525,000 -7,941,000 -264,000 -7,330,000 -511,000 302,000 -1,875,000 -1,950,000 14,635,000 954,000 -2,213,000 57,298,000 -5,559,000 -14,198,000 11,280,000 -5,243,000 -4,152,000 19,260,000 -601,000 -3,656,000 -1,049,000 -1,519,000 -2,248,000 -13,755,000 3,747,000 -5,431,000 -5,430,000 19,212,000 -2,436,000 -1,936,000 -1,435,000 9,199,000 -800,000 -801,000 -1,065,000 729,000 -1,741,000 -1,286,000 -1,893,000 -555,000 -3,856,000 -3,863,000 -3,949,000 -3,949,000 -9,927,000 7,769,523 9,423,477 -2,707,650 
          other non current liabilities
        -324,000 -276,000 -340,000                 258,000                              
          net cash from operating activities
        -35,811,000 43,021,000 -30,186,000 -46,985,000 -46,890,000 -38,407,000 60,162,000 -44,485,000 -45,643,000 -28,037,000 -35,246,000 -2,089,000 -12,833,000 29,320,000 -9,422,000 -49,161,000 -57,696,000 -54,309,000 -14,795,000 -45,690,000 -29,036,000 -5,533,000 -25,677,000 -36,546,000 -44,142,000 -38,044,000 -17,388,000 -48,838,000 -30,000,000 -27,228,000 -36,980,000 -57,731,000 -31,295,000 111,845,000 -31,354,000 -30,755,000 -35,331,000 -28,329,000 49,786,000 -33,226,000 -31,910,000 -24,155,000 -7,634,000 -25,465,000 43,593,000 -20,164,000 -14,331,000 -4,150,230 5,886,230 -1,183,683 
          capital expenditures
        -344,000 -244,000 -426,000 -715,000 -529,000 -620,000 -592,000 -1,035,000 -1,459,000 -620,000 -499,000 -286,000 -359,000 -393,000 -804,000 -1,011,000 -1,415,000 -1,375,000 -2,133,000 -2,067,000 -626,000 -499,000 -594,000 -1,253,000 -780,000 -587,000 -1,675,000 -4,216,000 -5,504,000 -14,519,000 -9,850,000 -7,303,000 -1,492,000 -1,062,000 -1,980,000 -5,508,000 -2,831,000 -2,780,000 -2,608,000 -2,812,000 -997,000 -1,658,000 -672,000 -794,725 -447,275 -924,076 
          free cash flows
        -36,155,000 42,777,000 -30,612,000 -47,700,000 -47,419,000 -39,027,000 59,570,000 -45,520,000 -47,102,000 -28,657,000 -35,745,000 -2,375,000 -13,192,000 28,927,000 -10,226,000 -50,172,000 -59,111,000 -55,684,000 -16,928,000 -47,757,000 -29,662,000 -5,533,000 -26,176,000 -37,140,000 -45,395,000 -38,044,000 -18,168,000 -49,425,000 -31,675,000 -27,228,000 -41,196,000 -63,235,000 -45,814,000 111,845,000 -41,204,000 -38,058,000 -36,823,000 -29,391,000 47,806,000 -38,734,000 -34,741,000 -26,935,000 -10,242,000 -28,277,000 42,596,000 -21,822,000 -15,003,000 -4,944,955 5,438,955 -2,107,759 
          cash flows from investing activities
                                                          
          purchases of marketable securities
        -1,980,000 -88,846,000 -66,062,000 -45,513,000 -7,915,000 -13,788,000 -4,889,000 -8,008,000 -50,497,000 -22,467,000 -69,176,000 -130,744,000 -17,296,000 -45,145,000 -21,380,000 -54,077,000 -66,428,000 -47,234,000 -23,665,000 -93,881,000 -72,515,000 -79,031,000 -11,013,000 -61,186,000 -50,221,000 -71,873,000 -60,708,000 -81,597,000 -12,711,000 -33,548,000 -62,039,000 -24,452,000 -45,998,000 -32,187,000 -56,937,000 -78,065,000 -67,305,000 -119,276,000 -83,116,000          
          proceeds from maturities of marketable securities
        47,642,000                                                  
          purchases of property, equipment and software
        -344,000 -244,000 -426,000 -715,000 -529,000 -620,000 -592,000 -1,035,000 -1,459,000 -620,000 -499,000 -286,000 -359,000 -393,000 -804,000 -1,011,000 -1,415,000 -1,375,000 -2,133,000 -2,067,000 -626,000                              
          net cash from investing activities
        45,318,000 -65,990,000 -20,371,000 -37,638,000 9,902,000 41,467,000 35,599,000 47,437,000 24,794,000 38,822,000 -33,525,000 -113,476,000 28,095,000 -5,788,000 71,946,000 23,039,000 -18,482,000 -13,553,000 -2,617,000 13,818,000 -34,257,000 -16,075,000 -43,281,000 41,007,000 10,564,000 7,626,000 -6,372,000 -10,120,000 -70,492,000 45,074,000 -6,000 -7,811,000 19,387,000 8,639,000 4,464,000 73,130,000 -8,357,000 2,034,000 -3,163,000 -56,586,000 -12,534,000 -145,690,000 -2,608,000 -2,812,000 -997,000 -1,658,000 -672,000 -794,725 -447,275 -924,076 
          cash flows from financing activities
                                                          
          proceeds from stock option exercises and espp purchases
        11,000 63,000   159,000 6,000 631,000 2,639,000 274,000 52,000 222,000 5,000 260,000 14,000   -763,000 812,000 2,452,000 2,458,000 1,141,000 2,092,000 2,503,000 162,000 297,000 37,000   735,000 132,000 496,000 629,000 449,000 28,000                
          taxes paid related to net share settlement of equity awards
        -218,000 -6,000 -282,000 -4,000 -74,000 -6,000 -2,391,000 -141,000 -7,000 -158,000      -1,457,000                                
          net cash from financing activities
        -207,000 57,000 69,739,000 -282,000 155,000 -68,000 625,000 248,000 273,000 49,911,000 59,000 100,118,000 1,359,000 263,000 37,000 800,000 18,973,000 2,346,000 100,658,000 1,102,000 74,063,000 99,015,000 162,000 297,000 37,000 633,000 119,005,000 475,000 132,000 103,755,000 629,000 359,000 1,147,000 33,734,000 108,000 492,000 1,011,000 127,000 224,000 250,000 140,982,000 170,000 62,947,000 222,000 180,000 237,548 76,801,452 85,019,970 
          net change in cash and cash equivalents
        9,300,000 -22,912,000 -50,557,000 -14,884,000 -37,270,000 3,215,000 95,693,000 3,577,000 -20,601,000 11,058,000 -18,860,000 -115,506,000 115,380,000 24,891,000 62,524,000 -25,859,000 -76,141,000 -67,062,000 1,561,000 -29,526,000 37,365,000 -20,506,000 5,105,000 103,476,000 -33,416,000 -30,121,000 -23,723,000 -58,325,000 18,513,000 18,321,000 -36,854,000 38,213,000 -11,279,000 120,843,000 -25,743,000 76,109,000 -43,580,000 -25,803,000 47,634,000 -89,685,000 -44,220,000 -169,595,000 130,740,000 -28,107,000 105,543,000 -21,600,000 -14,823,000 -4,707,407 82,240,407 82,912,211 
          cash and cash equivalents at beginning of period
        57,217,000 182,840,000 100,956,000 108,884,000 123,469,000 181,131,000 126,472,000 220,128,000 211,727,000 84,098,000 196,172,000 157,591,000 -409 116,481,409 
          cash and cash equivalents at end of period
        66,517,000 -22,912,000 -50,557,000 -14,884,000 145,570,000 3,215,000 95,693,000 3,577,000 80,355,000 11,058,000 -18,860,000 -115,506,000 224,264,000 24,891,000 62,524,000 -25,859,000 47,328,000 -67,062,000 1,561,000 -29,526,000 218,496,000 -20,506,000 5,105,000 103,476,000 93,056,000 -30,121,000 -23,723,000 -58,325,000 238,641,000 18,321,000 -36,854,000 38,213,000 200,448,000 120,843,000 -25,743,000 76,109,000 40,518,000 -25,803,000 47,634,000 -89,685,000 151,952,000 -169,595,000 130,740,000 -28,107,000 263,134,000 -21,600,000 -14,823,000 -4,707,816 198,721,816 82,912,211 
          non-cash operating and investing activities
                                                          
          property and equipment included in accounts payable or accruals
        276,000 47,000 -26,000                                                
          operating activities
                                                          
          share-based compensation
                                           3,602,000 3,461,000 3,039,000 3,002,000 3,123,000 3,001,000 2,216,000 2,098,000 1,902,000 1,631,000 995,000 856,000 781,396 611,604 468,601 
          gain on royalty monetization arrangement
                 -50,000,000                                        
          gain on sale of margenza
                                                          
          other non-cash items
             -19,000   187,000   1,805,000   433,000                                 
          loss on disposal of assets
                8,000                                        
          proceeds from sales and maturities of marketable securities
                                                          
          proceeds from sale of margenza
                                                          
          proceeds from sales of equipment
             80,000   10,000                                        
          proceeds from issuance of common stock, net of offering costs
                 616,000     19,618,000 98,200,000 -38,000 73,982,000   118,657,000   -50,000 1,119,000       140,775,000 62,692,000 -17,000 -306,000 237,548 76,801,452  
          principal payments on royalty monetization arrangement
                 -1,000                                        
          net proceeds from sale of future royalties
               50,000,000 99,655,000                                      
          adjustments to reconcile net income loss to net cash from operating activities:
                                                          
          depreciation and amortization expense
          1,789,000 1,907,000 1,771,000  1,835,000 1,811,000 1,841,000  1,950,000 2,812,000 2,983,000  2,844,000 2,877,000 2,913,000  2,796,000 2,781,000 2,729,000    2,809,000  2,636,000 2,580,000 2,903,000  2,728,000 1,202,000 1,338,000 1,342,000 1,905,000 2,003,000 1,978,000 1,974,000 2,077,000 1,786,000 1,771,000          
          stock-based compensation
          3,549,000 3,690,000 4,386,000  5,970,000 6,651,000 5,553,000  4,790,000 4,391,000 4,833,000  5,123,000 5,300,000 5,274,000  6,358,000 6,070,000 5,286,000  5,832,000 5,096,000 4,491,000  5,398,000 4,884,000 3,799,000  4,573,000 4,163,000 3,432,000                  
          other adjustments
                                                          
          proceeds from sale and maturities of marketable securities
          46,117,000 8,590,000 18,346,000  41,000,000 56,400,000 76,750,000  36,140,000 17,500,000 45,750,000  72,750,000 45,430,000 37,010,000  46,750,000 39,550,000 60,250,000  36,249,000 52,614,000 73,003,000  66,281,000 51,175,000 12,780,000  37,758,000 59,732,000 58,358,000  46,501,000 80,433,000 50,072,000  66,122,000 68,198,000 73,413,000          
          supplemental cash flow disclosures
                                                          
          cash paid for income taxes
                                                         
          supplemental cash flow information
                                                          
          property, equipment and software included in accounts payable or accruals
            353,000   -206,000 242,000  -11,000 177,000  144,000 151,000  -49,000 -368,000 486,000                              
          net income
              56,309,000    17,554,000                         -40,655,000 -37,655,000  -33,846,000 40,464,000 -30,363,000  -15,442,000 -21,376,000 45,129,000 -19,018,000   -3,108,335 -3,204,984 
          adjustments to reconcile net income to net cash from operating activities:
                                                          
          proceeds from stock option exercises
                        37,000            348,000        108,000 531,000 1,011,000 127,000 224,000 279,000 207,000 170,000 255,000 258,000     
          right-of-use assets modified in exchange for operating lease obligation
                                                          
          other assets
                          742,000 731,000 3,673,000 -1,034,000 620,000 300,000 695,000 1,043,000 18,470,000 -19,012,000 -2,079,000 4,713,000 -3,782,000 -5,551,000 40,000 94,000 103,000 146,000 -81,000 875,000 -173,000 -128,000 -298,000     -1,331,000 381,000 1,165,347 -1,394,347  
          prepaid expenses
                                -1,345,000 734,000 -2,403,000 -1,307,000 -1,902,000 -2,091,000 -1,142,000 155,000 -177,000 110,000 747,000 1,010,000 -1,535,000 -2,172,000 2,471,000 -2,079,000 103,000 178,000 1,082,000 551,000 594,000 -1,758,000 -353,000 -163,200 -964,800 131,744 
          deferred rent
                                     -233,000 -222,000 -204,000 -312,000 -367,000 7,137,000 -329,000 -326,000 -288,000 -283,000 -283,000 -280,000 48,000 5,052,000 -426,000 -24,000 -38,000 -45,000 -45,310 -105,690 15,539 
          purchase of treasury stock
                                                          
          non-cash operating and investing activities:
                                                          
          fair value of warrants received
                                                          
          depreciation expense
                              2,962,000                   1,192,000 489,000 636,000 546,000 505,000 482,000 436,783 398,217 358,725 
          accrued expenses
                              2,162,000 5,455,000 -2,118,000 -1,379,000 -2,015,000 1,634,000 -4,297,000 -5,954,000 1,245,000 6,738,000 1,477,000 3,331,000 3,316,000 4,362,000 1,823,000 764,000 3,029,000 2,654,000 -1,788,000 2,355,000 815,000 1,304,000 -929,000 3,899,000 721,000 574,399 -848,399 2,643,741 
          other liabilities
                              802,000 928,000 515,000                          
          purchases of property and equipment
                              -499,000 -594,000 -1,253,000  -780,000 -587,000 -1,675,000  -4,216,000 -5,504,000 -14,519,000  -9,850,000 -7,303,000 -1,492,000 -1,062,000 -1,980,000 -5,508,000 -2,831,000 -2,780,000 -2,608,000 -2,812,000 -997,000 -1,658,000 -672,000 -794,725 -447,275 -924,076 
          right-of-use assets modified in exchange for operating lease obligations
                                  4,420,000 1,988,000                      
          lease exit liability
                                      -298,000 -417,000 -405,000 -392,000 -379,000 -349,000 -339,000 -1,646,000 -488,000 -460,000 -450,000 -1,987,000 -396,000 -372,000 -364,000 -355,208 -347,792 -162,468 
          accounts payable and other liabilities
                                    -2,531,000  -781,000 -8,499,000 7,815,000                  
          fair value of warrants received, including change in value
                                                          
          restricted cash
                                                        
          fair value adjustment of warrant liability
                                                         
          noncash financing activities:
                                                          
          conversion of preferred stock
                                                          
          fair value adjustment of warrant liabilities
                                                          
          proceeds from issuance of preferred stock
                                                          
          proceeds from issuance of common stock