7Baggers

Blueprint Medicines Corporation
(NASDAQ:BPMC) 

BPMC stock logo

Blueprint Medicines Corporation, a precision therapy company, develops medicines for people with cancer and hematologic disorders, and multiple programs for genomically defined cancers, systemic mastocytosis, and cancer immunotherapy in the United States and Europe. The company is developing avaprit...

Founded: 2008
Full Time Employees: 420
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: USD2025-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 
                                             
      revenues:
                                             
      product revenue
    149,413,000 144,125,000 128,184,000 114,115,000 92,525,000 71,034,000 54,228,000 39,876,000 39,069,000 30,064,000 28,634,000 28,454,000 23,841,000 20,029,000 17,270,000 11,433,000 8,955,000 6,688,000 6,308,000 5,680,000 3,458,000                     
      collaboration, license and other revenue
     2,241,000  24,042,000                                      
      total revenues
    149,413,000 146,366,000 128,184,000 138,157,000 96,116,000 71,957,000 56,566,000 57,570,000 63,287,000 38,781,000 65,977,000 36,547,000 62,731,000 107,021,000 24,188,000 27,295,000 21,576,000 34,106,000 745,118,000 8,343,000 6,167,000                     
      yoy
    55.45% 103.41% 126.61% 139.98% 51.87% 85.55% -14.26% 57.52% 0.89% -63.76% 172.77% 33.90% 190.74% 213.79% -96.75% 227.16% 249.86%                         
      qoq
    2.08% 14.18% -7.22% 43.74% 33.57% 27.21% -1.74% -9.03% 63.19% -41.22% 80.53% -41.74% -41.38% 342.45% -11.38% 26.51% -36.74% -95.42% 8831.06% 35.28%                      
      cost and operating expenses:
                                             
      cost of sales
    2,802,000 7,447,000 1,932,000 7,593,000 3,191,000 260,000 2,782,000 2,323,000 3,175,000 4,848,000 3,000,000 4,886,000 5,079,000 7,549,000 3,790,000 6,493,000 102,000 128,000 146,000 127,000 24,000                     
      research and development
    91,890,000 83,672,000 85,300,000 84,270,000 88,191,000 97,536,000 110,252,000 110,063,000 112,073,000 117,840,000 127,981,000 128,466,000 103,133,000 356,876,000 84,419,000 80,027,000 79,710,000 77,404,000 74,230,000 91,079,000 84,146,000 88,646,000 81,453,000 87,101,000 74,250,000 70,532,000 64,562,000 58,573,000 49,954,000 43,629,000 39,300,000 33,271,000 28,487,000 24,073,000 18,150,000 21,273,000 17,635,000 16,431,000 11,681,000 11,243,000 9,232,000 
      selling, general and administrative
    95,807,000 96,450,000 89,926,000 89,339,000 83,557,000 79,315,000 70,741,000 71,931,000 70,950,000 64,020,000 57,608,000 58,688,000 57,058,000 54,200,000 49,806,000 49,286,000 42,002,000 42,540,000 37,375,000 42,174,000 35,655,000                     
      total cost and operating expenses
    190,499,000 187,569,000 177,158,000 181,202,000 174,939,000 177,066,000 185,546,000 185,551,000 187,494,000 188,580,000 190,254,000 194,185,000 168,535,000 423,157,000 141,284,000 135,806,000 121,814,000 120,072,000 111,751,000 133,380,000 119,825,000                     
      other income:
                                             
      interest expense
    -8,129,000 -7,775,000 -7,616,000 -6,864,000 -5,895,000 -3,406,000 -3,808,000               -2,500 -6,000 -2,000  -4,000 -14,000 -23,000 -32,000 -43,000 -47,000 -59,000 -72,000 -94,500 -109,000 -129,000 -140,000 -161,000 -171,000 -179,000 -185,000 
      other income
    461,000 -306,000 587,000 -1,000 376,000 -577,000 -728,000 -626,000 986,000 1,429,000 396,000 632,000 -453,000 -380,000 -522,000 -373,000 -214,000 50,000 -192,000 -23,000 -201,000 -10,695,000 3,692,000 4,235,000 2,669,000 2,824,000 2,799,000 2,442,000 2,394,000 1,109,000 954,000 861,000 425,000 201,000 158,000 131,000 61,000 6,000 6,000 -405,000 -37,000 
      equity investment gain
    50,039,000                                         
      debt extinguishment gain
       18,000 173,658,000                                     
      total other income
    42,371,000 -8,081,000 -7,029,000 -6,847,000 168,139,000 -5,746,000 -4,536,000 -4,622,000 -4,833,000 -7,811,000 -8,000,000 1,059,000 -11,000 83,000 30,000 260,000 524,000 986,000 981,000 1,563,000 2,703,000 3,047,000 3,686,000 4,233,000 2,666,000 2,820,000 2,785,000 2,419,000 2,362,000 1,066,000 907,000 802,000 353,000 110,000 49,000 2,000 -79,000 -155,000 -165,000 -584,000 -222,000 
      income before income taxes
    1,285,000 -49,284,000 -56,003,000 -49,892,000 89,316,000 -110,855,000 -133,516,000 -132,603,000 -129,040,000 -157,610,000 -132,277,000 -156,579,000 -105,815,000 -316,053,000 -117,066,000 -108,251,000  -84,980,000 634,348,000                       
      income tax expense
    789,000 672,000 273,000 102,000 180,000 61,000 197,000 190,000 520,000 9,436,000 -886,000 -3,130,000 184,000 2,633,000 175,000 -193,000  688,000 370,000                       
      net income
    496,000 -49,956,000 -56,276,000 -49,994,000 89,136,000 -110,916,000 -133,713,000 -132,793,000 -129,560,000 -158,646,000 -133,163,000 -159,709,000 -105,999,000 -318,686,000 -117,241,000 -108,444,000 -99,714,000 -85,668,000 633,978,000 -123,474,000 -110,955,000 -66,331,000 -94,275,000 -99,681,000 -87,407,000 -80,322,000 -72,723,000 -27,048,000 -56,549,000 -49,027,000 -37,703,000 -33,412,000 -27,977,000 -21,263,000 -16,834,000 -18,894,000 -15,504,000 -15,575,000 -12,642,000 -12,980,000 -11,572,000 
      yoy
    -99.44% -54.96% -57.91% -62.35% -168.80% -30.09% 0.41% -16.85% 22.23% -50.22% 13.58% 47.27% 6.30% 272.00% -118.49% -12.17% -10.13% 29.15% -772.48% 23.87% 26.94% -17.42% 29.64% 268.53% 54.57% 63.83% 92.88% -19.05% 102.13% 130.57% 123.97% 76.84% 80.45% 36.52% 33.16% 45.56% 33.98%     
      qoq
    -100.99% -11.23% 12.57% -156.09% -180.36% -17.05% 0.69% 2.50% -18.33% 19.14% -16.62% 50.67% -66.74% 171.82% 8.11% 8.76% 16.40% -113.51% -613.45% 11.28% 67.27% -29.64% -5.42% 14.04% 8.82% 10.45% 168.87% -52.17% 15.34% 30.03% 12.84% 19.43% 31.58% 26.31% -10.90% 21.87% -0.46% 23.20% -2.60% 12.17%  
      net income margin %
    0.33% -34.13% -43.90% -36.19% 92.74% -154.14% -236.38% -230.66% -204.72% -409.08% -201.83% -437.00% -168.97% -297.78% -484.71% -397.30% -462.15% -251.18% 85.08% -1479.97% -1799.17% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% 
      other comprehensive income:
                                             
      unrealized gain on available-for-sale investments
    457,000                                         
      currency translation adjustments
    -143,000 7,000 -119,000 -96,000 212,000 -166,000 95,000 20,000 22,000 -208,000 265,000 170,000 43,000 -102,000 174,000 -114,000 517,000 -214,000 -43,000 6,000 -27,000                     
      comprehensive income
    810,000   -50,037,000 88,784,000         -317,147,000 -117,079,000   -88,942,000 633,158,000                       
      net income per share
    0.01 -0.8 -0.89 -0.8 1.45 -1.82 -2.2 -2.19 -2.15 -2.65 -2.23 -2.68 -1.79 -5.43 -2 -1.86 -1.72 -1.64 11.49 -2.28 -2.11 -1.33 -1.93 -2.04 -1.98 -1.82 -1.66 -0.62 -1.29 -1.25 -0.96 -0.86 -0.84 -0.75 -0.62 -0.7 -0.57 -0.43 -0.47 -0.81 -8.23 
      weighted-average number of common shares used in net income per share - basic
    64,096   62,854 61,580          58,647    55,169                       
      weighted-average number of common shares used in net income per share - diluted
    66,526   62,854 63,802          58,647    56,786                       
      collaboration loss sharing
         -45,000 1,771,000 1,234,000 1,296,000 1,872,000 1,665,000 2,145,000 3,265,000 4,532,000 3,269,000                           
      other comprehensive loss:
                                             
      unrealized gains on available-for-sale investments
     607,000 2,939,000 53,000 -564,000 1,906,000 1,443,000 361,000 5,819,000                                 
      comprehensive loss
     -52,436,000 -53,456,000   -111,728,000 -132,175,000 -132,412,000 -123,719,000 -102,391,000 -133,741,000 -161,847,000 -113,976,000   -109,182,000 -99,597,000   -124,525,000 -108,490,000 -69,503,000 -94,565,000 -98,829,000 -87,152,000 -80,165,000 -72,679,000 -26,838,000 -56,872,000 -24,809,750 -37,614,000 -33,612,000 -28,091,000 -12,801,250 -16,862,000 -18,870,000 -15,473,000     
      weighted-average number of common shares used in net income per share - basic and diluted
      63,381    60,688 60,516 60,126  59,758 59,617 59,312   58,406 58,023                         
      collaboration and license revenue
        3,591,000 923,000 2,338,000 17,694,000 24,218,000 8,717,000 9,843,000                               
      license revenue - related party
              27,500,000                               
      interest income
           -3,996,000 -5,819,000 -9,240,000 -8,396,000 427,000 442,000 463,000 552,000 633,000 738,000 936,000 1,173,000 1,586,000 2,904,000                     
      unrealized losses on available-for-sale investments
             -2,792,750 -843,000 -2,308,000 -8,020,000                             
      collaboration revenue
               8,093,000 38,890,000 86,992,000 6,918,000 15,862,000 12,621,000 27,418,000 738,810,000 2,663,000 2,709,000 51,533,000 9,139,000 5,110,000 730,000 1,033,000 1,095,000 41,439,000 954,000 1,628,000 8,068,000 5,890,000 5,840,000 7,691,000 6,160,000 7,065,000 6,856,000 4,635,000 3,426,000 2,687,000 652,000 
      unrealized gain (losses) on available-for-sale investments
                 -258,750 -12,000 -624,000 -400,000 164,500 -777,000 -1,057,000 2,492,000                     
      weighted-average number of common shares used in net income per share — basic and diluted
     62,857    60,558              54,217 52,655 47,829 48,921 48,843 44,097 43,867 43,915               
      operating expenses:
                                             
      general and administrative
                         32,265,000 25,647,000 21,923,000 16,553,000 13,643,000 12,041,000 12,333,000 9,911,000 8,092,000 7,378,000 6,833,000 5,683,000 4,991,000 4,893,000 4,688,000 4,646,000 3,624,000 4,222,000 3,840,000 2,770,000 
      total operating expenses
                         120,911,000 107,100,000 109,024,000 90,803,000 84,175,000 76,603,000 70,906,000 59,865,000 51,721,000 46,678,000 40,104,000 34,170,000 29,064,000 23,043,000 25,961,000 22,281,000 20,055,000 15,903,000 15,083,000 12,002,000 
      changes in foreign currency translation adjustments
                         -2,500 -3,000 7,000 -15,000                 
      changes in unrealized gain (losses) related to available-for-sale investments
                         207,000 -287,000 845,000 270,000                 
      unrealized gain on investments
                             -17,000 44,000 210,000  -36,750 89,000 -200,000 -114,000 6,750 -28,000 24,000 31,000     
      weighted-average number of common shares used in net income per share applicable to common stockholders — basic and diluted
                               43,856 43,700 37,793 39,130 38,775 33,190 27,492 27,251 27,170 27,088 18,236 26,835 17,093 1,681 
      unrealized loss on investments
                                -323,000             
      reconciliation of net income applicable to common stockholders:
                                             
      convertible preferred stock dividends
                                           -883,000 -2,270,000 
      net income applicable to common stockholders
                                     -21,263,000 -16,834,000 -18,894,000 -15,504,000 -15,575,000 -12,642,000 -13,863,000 -13,842,000 
    Balance Sheets:
    Quarterly
    Annual
      Unit: USD2025-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 
                                               
        assets
                                               
        current assets:
                                               
        cash and cash equivalents
      122,245,000 102,014,000 89,356,000 54,771,000 113,326,000 71,286,000 55,972,000 75,527,000 169,724,000 119,709,000 291,430,000 173,399,000 37,199,000 209,948,000 553,593,000 534,317,000 697,966,000 684,636,000 565,221,000 288,678,000 375,168,000 113,938,000 89,237,000 82,425,000 79,391,000 68,064,000 78,641,000 117,751,000 134,886,000 400,304,000 57,329,000 91,346,000 56,356,000 52,069,000 74,403,000 109,386,000 122,289,000 162,707,000 179,780,000 193,587,000 50,298,000 
        marketable securities
      453,992,000 513,473,000 644,817,000 708,831,000 534,575,000 639,355,000 657,012,000 647,107,000 652,437,000 825,283,000 845,535,000 679,712,000 549,627,000 267,166,000 148,285,000 94,032,000  187,213,000                        
        accounts receivable
      78,083,000 75,797,000 65,814,000 85,058,000 60,047,000 42,827,000 40,861,000 35,147,000 30,007,000 23,525,000 19,320,000 27,123,000 28,758,000 25,155,000 18,400,000 25,473,000 34,662,000 7,096,000 44,369,000 3,403,000 4,510,000 663,000 2,414,000 750,000                  
        unbilled accounts receivable
      1,718,000 1,812,000    351,000 393,000 3,120,000 1,296,000 13,413,000 2,595,000 2,287,000 3,840,000 11,875,000 11,324,000 13,767,000 9,201,000 18,213,000 16,887,000 20,877,000 20,597,000 22,749,000 2,662,000 4,514,000       3,435,000 3,075,000 2,826,000  3,455,000 3,351,000 4,232,000 3,414,000 2,470,000 1,923,000 484,000 
        inventory
      12,953,000 13,611,000 12,528,000 14,789,000 30,940,000 21,223,000 16,457,000 17,016,000 17,521,000 29,697,000 35,253,000 35,454,000 30,145,000 21,817,000 16,570,000 15,211,000 16,030,000 8,581,000 5,565,000 4,359,000 2,665,000                     
        prepaid expenses and other current assets
      33,078,000 35,971,000 42,333,000 40,095,000 37,714,000 33,351,000 37,477,000 33,418,000 29,359,000 35,024,000 33,532,000 34,204,000 37,675,000 18,064,000 23,676,000 21,270,000 25,856,000 22,020,000 17,404,000 17,875,000 10,147,000 9,820,000 15,208,000 14,827,000 10,660,000 5,775,000 6,021,000 8,757,000 8,373,000  6,192,000 7,239,000 4,736,000  3,449,000 2,216,000 1,928,000 4,176,000 6,218,000 5,814,000 1,279,000 
        total current assets
      702,069,000 742,678,000 854,848,000 903,544,000 776,602,000 808,393,000 808,172,000 811,335,000 900,344,000 1,046,651,000 1,227,665,000 952,179,000 687,244,000 554,025,000 771,848,000 704,070,000 937,710,000 927,759,000 841,655,000 568,312,000 704,683,000 516,786,000 513,726,000 612,952,000 426,516,000 499,787,000 565,657,000 622,213,000 615,698,000  400,279,000 431,328,000 213,958,000  159,448,000 178,120,000 197,667,000 170,416,000 188,587,000 201,443,000 52,180,000 
        property and equipment
      36,050,000 36,593,000 37,850,000 40,167,000 41,947,000 41,959,000 40,619,000 36,957,000 33,741,000 33,344,000 33,454,000 32,987,000 31,110,000 30,700,000 31,204,000 31,848,000 32,991,000 34,129,000 35,199,000 36,745,000 37,822,000 38,361,000 38,310,000 33,525,000 30,615,000 29,627,000 29,720,000 30,250,000 29,074,000  13,416,000 7,774,000 6,081,000  6,578,000 6,565,000 6,537,000 6,661,000 4,805,000 1,393,000 1,295,000 
        operating lease right-of-use assets
      61,607,000 64,181,000 66,416,000 68,881,000 71,222,000 73,691,000 75,221,000 77,529,000 79,668,000 81,854,000 83,917,000 86,033,000 88,119,000 90,162,000 62,986,000 64,446,000 65,987,000 67,539,000 69,020,000 70,471,000 71,903,000 72,753,000 73,967,000 75,255,000 76,528,000                 
        restricted cash
      11,847,000 11,625,000 11,503,000 10,623,000 10,634,000 10,238,000 9,696,000 6,352,000 5,207,000 5,195,000 5,193,000 5,171,000 5,171,000 5,171,000 5,171,000 5,171,000 5,171,000 5,168,000 5,168,000 5,168,000 5,168,000 5,166,000 5,164,000 5,161,000 5,159,000 5,154,000 5,154,000 4,557,000 4,557,000  4,767,000 4,767,000 1,267,000     119,000 119,000 119,000 119,000 
        equity investment
       28,699,000 28,699,000 27,789,000 27,789,000 27,789,000 27,789,000 27,789,000 27,789,000 27,789,000 27,789,000                               
        other assets
      60,484,000 47,587,000 52,153,000 47,687,000 22,578,000 30,650,000 29,560,000 32,551,000 34,471,000 21,589,000 24,699,000 22,028,000 25,138,000 14,638,000 14,193,000 11,558,000 5,360,000 5,925,000 8,666,000 8,286,000 10,381,000 10,222,000 5,741,000 5,887,000 5,845,000 5,556,000 5,579,000 4,898,000 1,341,000  1,656,000 852,000 1,413,000  557,000 569,000 540,000 555,000 560,000 36,000 1,099,000 
        total assets
      1,195,604,000 1,179,813,000 1,199,649,000 1,203,560,000 1,038,475,000 1,049,250,000 1,105,299,000 1,106,445,000 1,220,370,000 1,349,902,000 1,458,392,000 1,192,446,000 1,143,307,000 1,252,225,000 1,477,322,000 1,568,795,000 1,625,387,000 1,718,393,000 1,558,178,000 817,457,000 913,623,000 707,694,000 737,925,000 807,178,000 544,663,000 540,124,000 606,110,000 665,113,000 664,468,000 715,737,000 420,118,000 444,721,000 252,648,000 282,795,000 167,849,000 186,520,000 206,010,000 178,898,000 195,288,000 204,208,000 55,910,000 
        liabilities and stockholders’ equity
                                               
        current liabilities:
                                               
        accounts payable
      800,000 6,790,000 4,716,000 4,858,000 4,926,000 4,710,000 6,963,000 6,979,000 10,563,000 2,729,000 4,233,000 15,053,000 17,961,000 8,333,000 9,549,000 1,847,000 2,889,000 4,370,000 2,929,000 5,591,000 8,468,000 4,793,000 2,203,000 6,608,000 4,421,000 3,298,000 3,988,000 2,980,000 3,288,000  2,092,000 2,581,000 2,282,000  1,848,000 2,730,000 2,773,000 2,455,000 1,562,000 1,611,000 2,334,000 
        accrued expenses
      122,055,000 133,088,000 130,881,000 120,539,000 107,277,000 127,992,000 110,436,000 101,162,000 108,735,000 131,123,000 120,763,000 119,282,000 100,698,000 121,829,000 94,540,000 107,173,000 86,479,000 105,938,000 89,116,000 84,062,000 73,961,000 88,706,000 80,419,000 64,126,000 50,826,000 51,711,000 45,181,000 39,808,000 29,087,000  23,797,000 17,396,000 10,346,000  7,410,000 7,607,000 5,335,000 6,436,000 7,809,000 4,038,000 4,404,000 
        current portion of operating lease liabilities
      13,736,000 13,346,000 13,011,000 12,658,000 12,240,000 11,933,000 11,617,000 11,292,000 10,887,000 10,579,000 10,116,000 9,435,000 8,762,000 8,093,000 8,810,000 8,465,000 8,193,000 7,935,000 7,672,000 7,416,000 7,169,000 6,823,000 6,587,000 6,357,000 5,278,000                 
        current portion of deferred revenue
      2,279,000 2,005,000 4,118,000 3,748,000 7,251,000 812,000 3,010,000 3,328,000 3,740,000 4,667,000 4,629,000 9,478,000 9,604,000 11,510,000 6,792,000 7,912,000 14,876,000 12,559,000 10,391,000 8,017,000 8,690,000 6,160,000 4,933,000 4,415,000 4,238,000 3,600,000 5,119,000 5,139,000 4,803,000  6,069,000 9,296,000 10,396,000  11,752,000 13,803,000 11,819,000 5,898,000 6,339,000 5,323,000 5,375,000 
        current portion of liabilities related to the sale of future royalties and revenues
      67,917,000 61,650,000 59,903,000 53,741,000 44,729,000 39,198,000 35,137,000 28,410,000 21,377,000 17,285,000 20,479,000                               
        current portion of term loan
      43,797,000 43,917,000 45,032,000 48,259,000 30,180,000 30,278,000 30,221,000 17,857,000 17,382,000 16,851,000 15,290,000                               
        total current liabilities
      250,584,000 260,796,000 257,661,000 243,803,000 206,603,000 214,923,000 197,384,000 169,028,000 172,684,000 183,234,000 175,510,000 158,760,000 137,025,000 149,765,000 119,691,000 125,397,000 112,437,000 130,802,000 110,108,000 105,086,000 98,288,000 106,482,000 94,142,000 81,506,000 64,763,000 60,323,000 56,279,000 50,333,000 39,998,000  35,490,000 32,992,000 25,759,000  24,380,000 27,754,000 23,782,000 18,640,000 19,291,000 14,451,000 14,630,000 
        operating lease liabilities, net of current portion
      65,216,000 68,790,000 71,916,000 75,244,000 78,489,000 81,751,000 84,036,000 87,049,000 89,940,000 92,789,000 95,495,000 98,160,000 100,762,000 103,315,000 75,054,000 77,272,000 79,477,000 81,669,000 83,735,000 85,727,000 87,667,000 89,126,000 90,921,000 92,646,000 94,322,000                 
        deferred revenue, net of current portion
      8,037,000 8,193,000 7,916,000 8,041,000 4,635,000 4,792,000 5,000,000 5,000,000 5,000,000 13,624,000 11,995,000 12,661,000 13,721,000 25,066,000 28,605,000 30,365,000 26,097,000 28,599,000 35,017,000 36,688,000 36,809,000 39,913,000 36,398,000 40,055,000 41,198,000 42,567,000 42,081,000 43,156,000 34,931,000  30,703,000 32,109,000 33,824,000  39,595,000 39,249,000 44,948,000 7,742,000 8,522,000 10,495,000 9,457,000 
        liabilities related to the sale of future royalties and revenues, net of current portion
      178,715,000 193,524,000 201,304,000 211,792,000 223,090,000 402,427,000 405,010,000 408,931,000 413,216,000 413,045,000 403,174,000                               
        term loan, net of current portion
      343,949,000 343,053,000 341,537,000 338,655,000 209,205,000 208,535,000 208,157,000 122,146,000 122,130,000 122,232,000 123,060,000                               
        other long-term liabilities
      6,972,000 6,792,000 6,167,000 5,784,000 5,766,000 6,213,000 3,101,000 3,161,000 3,102,000 10,301,000 8,851,000 9,373,000 10,133,000 3,344,000 6,885,000 6,957,000 7,355,000 7,235,000 9,318,000 8,589,000 7,928,000 7,814,000 120,000 144,000 167,000 192,000                
        total liabilities
      853,473,000 881,148,000 886,501,000 883,319,000 727,788,000 918,641,000 902,688,000 795,315,000 806,072,000 835,225,000 818,085,000 444,696,000 261,641,000 281,490,000 230,235,000 239,991,000 225,366,000 248,305,000 238,178,000 236,090,000 230,692,000 243,335,000 221,581,000 214,351,000 200,450,000 121,115,000 116,814,000               
        commitments and contingencies
                                               
        stockholders’ equity:
                                               
        preferred stock, 0.001 par value...
                                               
        common stock, 0.001 par value...
      65,000 64,000 63,000 63,000 63,000 61,000 61,000 61,000 60,000 60,000 60,000 60,000 60,000 59,000 59,000 59,000 58,000 58,000 56,000 54,000 54,000 49,000 49,000 49,000 44,000 44,000 44,000 44,000 44,000  39,000 39,000 33,000  27,000 27,000 27,000 27,000 27,000 27,000 2,000 
        additional paid-in capital
      2,751,838,000 2,709,183,000 2,671,231,000 2,624,868,000 2,565,277,000 2,473,985,000 2,434,258,000 2,410,601,000 2,381,358,000 2,358,018,000 2,329,385,000 2,303,087,000 2,275,156,000 2,250,250,000 2,209,456,000 2,174,094,000 2,136,130,000 2,106,600,000 1,867,572,000 1,762,099,000 1,739,140,000 1,412,083,000 1,394,566,000 1,376,484,000 1,029,046,000 1,016,690,000 1,006,812,000 997,770,000 988,872,000  647,928,000 643,223,000 423,750,000  283,862,000 281,853,000 280,080,000 278,927,000 277,515,000 276,320,000 3,691,000 
        accumulated other comprehensive loss
      -3,237,000 -3,551,000 -1,070,000 -3,890,000 -3,847,000 -3,495,000 -2,683,000 -4,221,000 -4,602,000 -10,443,000 -14,826,000 -14,248,000 -12,110,000 -4,133,000 -5,673,000 -5,835,000 -5,097,000 -5,214,000 -1,940,000 -1,120,000 -69,000 -2,535,000    -180,000 -337,000 -381,000 -591,000  -165,000 -314,000 -114,000         
        accumulated deficit
      -2,406,535,000 -2,407,031,000 -2,357,076,000 -2,300,800,000 -2,250,806,000 -2,339,942,000 -2,229,025,000 -2,095,311,000 -1,962,518,000 -1,832,958,000 -1,674,312,000 -1,541,149,000 -1,381,440,000 -1,275,441,000 -956,755,000 -839,514,000 -731,070,000 -631,356,000 -545,688,000 -1,179,666,000 -1,056,194,000 -945,238,000 -878,908,000 -784,633,000 -684,952,000 -597,545,000 -517,223,000 -444,501,000 -417,452,000  -306,562,000 -268,859,000 -235,447,000  -186,206,000 -169,373,000 -150,479,000 -134,975,000 -119,400,000 -106,758,000 -93,778,000 
        total stockholders’ equity
      342,131,000 298,665,000 313,148,000 320,241,000 310,687,000 130,609,000 202,611,000 311,130,000 414,298,000 514,677,000 640,307,000 747,750,000 881,666,000 970,735,000 1,247,087,000 1,328,804,000 1,400,021,000 1,470,088,000 1,320,000,000 581,367,000 682,931,000 464,359,000 516,344,000 592,827,000 344,213,000 419,009,000 489,296,000 552,932,000 570,873,000 623,970,000 341,240,000 374,089,000 188,222,000 213,078,000 97,710,000 112,562,000 129,659,000 143,979,000 158,142,000 169,589,000  
        total liabilities and stockholders’ equity
      1,195,604,000 1,179,813,000 1,199,649,000 1,203,560,000 1,038,475,000 1,049,250,000 1,105,299,000 1,106,445,000 1,220,370,000 1,349,902,000 1,458,392,000 1,192,446,000 1,143,307,000 1,252,225,000 1,477,322,000 1,568,795,000 1,625,387,000 1,718,393,000 1,558,178,000 817,457,000 913,623,000 707,694,000 737,925,000 807,178,000 544,663,000 540,124,000 606,110,000 665,113,000 664,468,000  420,118,000 444,721,000 252,648,000  167,849,000 186,520,000 206,010,000     
        liability related to the sale of future royalties
                 5,512,000                              
        liability related to the sale of future royalties, net of current portion
                 165,742,000                              
        commitments
                                               
        investments, available-for-sale
                      153,995,000  192,209,000 233,120,000 291,596,000 369,616,000 404,205,000 510,436,000 336,465,000 425,948,000 480,995,000 495,705,000 472,439,000  333,323,000 329,668,000 150,040,000  78,141,000 63,167,000 69,218,000     
        current portion of lease incentive obligation
                               1,714,000 1,714,000 1,714,000 1,714,000  1,714,000 1,714,000 578,000  578,000 578,000 578,000 578,000 578,000 578,000  
        deferred rent, net of current portion
                               5,130,000 4,906,000 4,648,000 4,389,000  3,866,000 1,659,000 924,000  920,000 894,000 868,000 842,000 705,000 101,000  
        lease incentive obligation, net of current portion
                               12,903,000 13,332,000 13,760,000 14,189,000  8,186,000 3,005,000 2,648,000  2,937,000 3,081,000 3,226,000 3,370,000 3,515,000 3,659,000  
        ​
                                               
        accumulated other comprehensive income
                            637,000 927,000 75,000          27,000 55,000 31,000     
        current portion of term loan payable
                                277,000 692,000 1,106,000  1,818,000 1,979,000 2,140,000  2,792,000 3,033,000 3,272,000 3,266,000 2,978,000 2,552,000 2,127,000 
        other long term liabilities
                                216,000 284,000 88,000  356,000 175,000 165,000  211,000 308,000 281,000 252,000 219,000 184,000 147,000 
        balance sheet data:
                                               
        investments
                                   273,052,000    216,149,000        
        working capital
                                   642,615,000    191,913,000        
        deferred revenue
                                   35,373,000    47,235,000        
        term loan payable
                                   1,518,000    4,069,000        
        warrant liability
                                              403,000 
        convertible preferred stock
                                               
        term loan payable, net of current portion
                                    277,000 692,000 1,106,000  2,095,000 2,672,000 3,246,000 4,072,000 4,893,000 5,710,000 6,525,000 
        current portion of deferred rent
                                     26,000 17,000         
        restricted stock liability
                                         3,000 5,000 7,000 9,000 291,000 292,000 
        restricted stock liability, net of current portion
                                        1,000   1,000 1,000 19,000 25,000 
        liabilities, convertible preferred stock and stockholders’ equity
                                               
        deferred rent
                                            16,000 58,000 98,000 
        series a convertible preferred stock, 0.001 par value: no shares and 40,150,000 shares authorized at december 31, 2015 and december 31, 2014, respectively; no shares and 40,000,000 shares issued and outstanding at december 31, 2015 and december 31, 2014, respectively
                                               
        series b convertible preferred stock, 0.001 par value: no shares and 20,999,996 shares authorized at december 31,2015 and december 31, 2014, respectively; no shares and 20,916,663 shares issued and outstanding at december 31, 2015 and december 31, 2014, respectively
                                               
        series c convertible preferred stock, 0.001 par value: no shares and 24,154,589 shares authorized at december 31, 2015 and december 31, 2014, respectively; no shares and 24,154,589 shares issued and outstanding at december 31, 2015 and december 31, 2014, respectively
                                               
        stockholders’ equity
                                               
        total liabilities, convertible preferred stock, and stockholders’ equity
                                           178,898,000 195,288,000 204,208,000  
        series a convertible preferred stock, 0.001 par value: 0 and 40,150,000 shares authorized at september 30, 2015 and december 31, 2014, respectively; 0 and 40,000,000 shares issued and outstanding at september 30, 2015 and december 31, 2014, respectively
                                               
        series b convertible preferred stock, 0.001 par value: 0 and 20,999,996 shares authorized at september 30,2015 and december 31, 2014, respectively; 0 and 20,916,663 shares issued and outstanding at september 30, 2015 and december 31, 2014, respectively
                                               
        series c convertible preferred stock, 0.001 par value: 0 and 24,154,589 shares authorized at september 30, 2015 and december 31, 2014, respectively; 0 and 24,154,589 shares issued and outstanding at september 30, 2015 and december 31, 2014, respectively
                                               
        series a convertible preferred stock, 0.001 par value: 0 and 40,150,000 shares authorized at june 30, 2015 and december 31, 2014, respectively; 0 and 40,000,000 shares issued and outstanding at june 30, 2015 and december 31, 2014, respectively
                                               
        series b convertible preferred stock, 0.001 par value: 0 and 20,999,996 shares authorized at june 30,2015 and december 31, 2014, respectively; 0 and 20,916,663 shares issued and outstanding at june 30, 2015 and december 31, 2014, respectively
                                               
        series c convertible preferred stock, 0.001 par value: 0 and 24,154,589 shares authorized at june 30, 2015 and december 31, 2014, respectively; 0 and 24,154,589 shares issued and outstanding at june 30, 2015 and december 31, 2014, respectively
                                               
        liabilities, convertible preferred stock and stockholders’ (deficit) equity
                                               
        series a convertible preferred stock, 0.001 par value: 40,150,000 shares authorized; 40,000,000 shares issued and outstanding at march 31, 2015 and december 31, 2014
                                              39,958,000 
        series b convertible preferred stock, 0.001 par value: 20,999,996 shares authorized; 20,916,663 shares issued and outstanding at march 31, 2015 and december 31, 2014
                                              24,985,000 
        series c convertible preferred stock, 0.001 par value: 24,154,589 shares authorized; 24,154,589 shares issued and outstanding at march 31, 2015 and december 31, 2014
                                              49,865,000 
        stockholders’ deficit:
                                               
        total stockholders’ deficit
                                              -90,085,000 
        total liabilities, convertible preferred stock, and stockholders’ deficit
                                              55,910,000 
      Cashflow Statements:
      Quarterly
      Annual
        Unit: USD2025-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 
                                                 
          cash flows from operating activities
                                                 
          net income
        496,000 -49,956,000 -56,274,000 -49,995,000 89,136,000 -110,916,000 -133,714,000 -132,794,000 -129,560,000 -158,646,000 -133,162,000 -159,710,000 -105,999,000 -318,686,000 -117,240,000 -108,445,000 -99,714,000 -85,668,000 633,978,000 -123,473,000 -110,955,000 -66,331,000 -94,275,000 -99,681,000 -87,407,000 -80,322,000 -72,723,000 -27,048,000 -56,549,000  -37,703,000 -61,361,023 -27,977  34,346,768 -18,894,000 -15,504,000 -15,575,000 -12,642,000 -12,980,000 -11,572,000 
          adjustments to reconcile net income to net cash from operating activities:
                                                 
          depreciation and amortization
        4,459,000 4,001,000 3,863,000 3,617,000 4,810,000 1,531,000 2,872,000 3,578,000 3,684,000 7,016,000 1,621,000 1,470,000 1,628,000 1,663,000 1,616,000 1,592,000 1,608,000 1,672,000 1,648,000 1,668,000 1,571,000 -2,075,000 2,605,000 2,510,000 2,219,000 1,170,000 1,163,000 1,133,000 780,000  396,000 790,602 398  -780,811 396,000 386,000 333,000 204,000 202,000 209,000 
          non-cash lease expense
        2,592,000 2,544,000 2,523,000 2,454,000 2,404,000 2,350,000 2,302,000 2,255,000 2,202,000                                 
          stock-based compensation
        29,056,000 28,382,000 28,282,000 28,022,000 24,225,000 22,585,000 23,070,000 23,821,000 23,196,000 26,116,000 24,109,000 25,347,000 23,399,000 22,681,000 23,958,000 24,307,000 20,684,000 19,504,000 19,635,000 19,528,000 16,859,000 15,699,000 14,993,000 13,666,000 10,295,000 8,832,000 8,391,000 7,762,000 5,549,000  3,599,000 5,216,760 2,240  -2,584,506 1,487,000 1,102,000 1,195,000 971,000 2,174,000 840,000 
          non-cash interest expense
        776,000 401,000 -345,000 335,000 793,000 2,252,000 3,589,000 3,662,000 4,635,000 7,410,000                                
          net (accretion of discount) amortization of premium on investments
        -3,332,000 -5,293,000 -6,334,000 -5,645,000 -5,193,000                                     
          non-cash debt extinguishment gain
         -18,000 -173,658,000                                     
          equity investment gain
        -50,039,000                                         
          other
        -141,000 695,000 -816,000 -34,000 -827,000 -1,195,000 5,953,000 -2,914,000 -697,000 1,835,000 237,000 -263,000 813,000 702,000 1,325,000 816,000 536,000 101,000 59,000                       
          changes in assets and liabilities:
                                                 
          accounts receivable
        -1,397,000 -10,329,000 19,891,000 -25,068,000 -17,339,000 -1,745,000 -5,865,000 -8,156,000 -4,949,000 -3,981,000 7,681,000 1,517,000 -3,645,000 -6,768,000 7,032,000 9,206,000 -27,613,000 37,318,000 -40,965,000 1,107,000 -3,847,000 1,751,000 -1,664,000                   
          inventory
        187,000 2,029,000 -4,065,000 -4,686,000 2,696,000 829,000 2,917,000 -8,190,000 78,000 11,731,000 -5,959,000 -4,866,000 -9,828,000 -749,000 -7,270,000 295,000 -4,837,000 -2,216,000 -1,743,000 -2,366,000 -382,000                     
          prepaid expenses and other current assets
        -961,000 4,720,000 -619,000 -7,747,000 1,016,000 5,655,000 -4,127,000 -4,063,000 5,741,000 -1,363,000 739,000 3,274,000 -19,588,000 6,488,000 -1,040,000 1,839,000 -2,594,000 -5,354,000 1,893,000 -7,751,000 -1,408,000 3,837,000 -2,335,000 -2,917,000 -1,923,000 -137,000 3,333,000 -385,000 3,473,000  2,436,000 -2,606,028 -1,972  -1,942,290 -319,000 2,262,000 -438,000 -405,000 -275,000 -364,000 
          other assets
        -8,876,000 -1,558,000 -595,000 -4,645,000 -4,332,000 -2,987,000 -305,000 -1,002,000 -417,000 -4,434,000 1,302,000 553,000 -13,741,000 1,056,000 987,000 -3,785,000 -44,000 -356,000 -222,000 2,084,000 -66,000 78,000 121,000 -65,000 -114,000 23,000 -681,000 -3,557,000 -27,000  -804,000 3,986 14   -28,000 11,000 3,000 -524,000   
          accounts payable
        -6,044,000   -82,000 313,000 -2,364,000 26,000 -3,588,000 7,806,000 -3,785,000 -8,620,000 -2,927,000 9,516,000 -923,000 7,688,000 -1,080,000 -1,464,000 1,187,000 -2,780,000 -2,913,000 3,715,000 2,543,000 -4,386,000 2,309,000 982,000 -689,000 1,029,000 -303,000 -482,000  -422,000 296,929 71  -427,373 -140,000 567,000 707,000 -97,000 -736,000 1,517,000 
          accrued expenses
        -13,552,000   20,768,000 -25,826,000 16,175,000 10,594,000 -2,008,000 -23,686,000 1,535,000 7,392,000 17,490,000 -17,049,000 18,939,000 -11,800,000 19,741,000 -20,785,000 14,641,000 6,146,000 12,003,000 -16,576,000 10,572,000 16,414,000 11,202,000 -1,208,000 5,878,000 7,331,000 12,120,000 -525,000  5,123,000 3,954,552 -1,552  -2,200,073 2,523,000 -321,000 412,000 1,088,000 571,000 -115,000 
          deferred revenue and other long-term liabilities
        -4,500,000                                         
          operating lease liabilities
        -3,203,000 -3,100,000 -3,034,000 -2,940,000 -2,889,000 -2,789,000 -2,682,000 -2,604,000 -2,556,000 -2,332,000 -1,974,000 -1,911,000 -1,879,000 -2,099,000 -2,011,000 -1,940,000 -1,905,000 -1,776,000 -1,752,000 -1,787,000 -1,073,000 61,000 -591,000 -596,000 -969,000                 
          net cash from operating activities
        -54,479,000 -29,364,000 -13,637,000 -48,072,000 -101,513,000 -78,928,000 -104,483,000 -130,475,000 -122,961,000 -121,405,000 -129,890,000   -14,114,000 -95,596,000 -63,165,000 -125,778,000 -24,799,000 622,326,000 -101,164,000 -109,328,000 -44,895,000 -71,704,000 -81,228,000 -80,188,000 -67,582,000 -55,005,000 -2,859,000 -49,563,000 -34,750,000 -26,518,000 -58,565,920 -31,080 -24,507,284 -12,923,716 -17,833,000 30,751,000 -13,046,000 -12,465,000 -11,055,000 4,890,000 
          capital expenditures
        -1,831,000 -932,000 -25,000 -2,569,000 -1,104,000 -4,673,000 -6,251,000 -2,554,000 -2,584,000 -1,481,000 -3,729,000   -1,258,000 -996,000 -662,000 -173,000 -687,000 -6,000 -941,000 -1,525,000 -3,891,000 -6,182,000 -2,170,000 -1,770,000 -425,000 -2,618,000 -3,322,000 -6,312,000 -4,475,000 -456,790 -210 1,811,664 -552,000 -1,262,000 -3,754,000 -822,000 -288,000 -19,000 
          free cash flows
        -56,310,000 -30,296,000 -13,662,000 -50,641,000 -102,617,000 -83,601,000 -110,734,000 -133,029,000 -125,545,000 -122,886,000 -133,619,000   -15,372,000 -96,592,000 -63,827,000 -125,951,000 -25,486,000 622,320,000 -102,105,000 -110,853,000 -48,786,000 -77,886,000 -83,398,000 -81,958,000 -68,007,000 -57,623,000 -6,181,000 -55,875,000 -34,750,000 -30,993,000 -59,022,710 -31,290 -24,507,284 -11,112,052 -18,385,000 29,489,000 -16,800,000 -13,287,000 -11,343,000 4,871,000 
          cash flows from investing activities
                                                 
          purchases of property and equipment
        -1,831,000 -932,000 -25,000 -2,569,000 -1,104,000 -4,673,000 -6,251,000 -2,554,000 -2,584,000 -1,481,000 -3,729,000 -2,556,000 -1,153,000 -1,258,000 -996,000 -662,000 -173,000 -687,000 -6,000 -941,000 -1,525,000 -3,891,000 -6,182,000 -2,170,000 -1,770,000 -425,000 -2,618,000 -3,322,000 -6,312,000  -4,475,000 -456,790 -210  1,811,664 -552,000 -1,262,000 -3,754,000 -822,000 -288,000 -19,000 
          purchases of investments
        -283,327,000 -209,769,000 -201,024,000 -355,473,000 -200,165,000 -117,658,000 -240,935,000 -274,895,000 -132,875,000 -231,051,000 -218,717,000 -39,937,000 -140,543,000 -132,262,000 -299,564,000 -83,080,000 -172,457,000 -564,832,000 -92,898,000 -139,250,000 -140,873,000 -132,225,000 -352,373,000 -112,916,000 -152,334,000 -159,617,000 -150,469,000 -338,816,000  -105,396,000 -209,873,997 -18,003  69,116,682 -69,222,000     
          maturities of investments
        271,500,000 244,410,000 231,000,000 169,750,000 278,400,000 201,100,000 237,600,000 309,515,000 308,250,000 179,250,000 90,500,000   52,999,000 237,331,000 185,050,000 215,450,000 97,612,000 134,700,000 105,400,000 200,635,000 212,500,000 212,944,000 106,490,000 204,000,000 209,000,000 178,825,000 139,000,000 126,000,000  102,000,000 95,946,000 54,000  -5,973,000       
          proceeds from sale of equity investment
        78,737,000                                         
          net cash from investing activities
        65,079,000 33,709,000 29,951,000 -188,292,000 77,131,000 78,769,000 -9,586,000 32,066,000 172,791,000 -53,283,000 -132,235,000 77,067,000 -41,090,000 -346,954,000 104,073,000 -115,176,000 132,197,000 -75,532,000 -430,138,000 11,561,000 59,860,000 67,736,000 74,537,000 -248,053,000 89,314,000    -219,128,000    35,787 -218,621,465 64,836,465 5,448,000 -70,365,000 -3,684,000 -822,000 -288,000 -1,285,000 
          cash flows from financing activities
                                                 
          proceeds from at-the-market offerings, net of issuance costs
         48,936,000                                     
          net proceeds from stock option exercises and employee stock purchase plan
        13,298,000 9,759,000 18,377,000 31,211,000 18,396,000 15,607,000 431,000   2,510,000 1,924,000 2,498,000 1,264,000 17,929,000 10,922,000 14,854,000 7,011,000 25,344,000 5,035,000    4,543,000                   
          principal payments for financing arrangements
        -4,106,000  -172,000 -369,000                                     
          net cash from financing activities
        9,192,000 9,759,000 18,377,000 178,012,000 66,963,000 15,528,000 98,399,000   2,491,000 380,557,000 177,498,000 1,264,000 17,929,000 10,922,000 14,854,000 7,011,000 220,093,000 84,341,000 3,175,000 310,150,000 1,834,000 4,495,000 332,298,000 2,011,000 764,000 113,000 515,000 3,062,000 327,853,000 372,000 215,723,420 -420 132,579,053 1,319,947 -518,000 -804,000 -343,000 -520,000 154,632,000 -547,000 
          net increase in cash, cash equivalents, and restricted cash
        19,792,000 14,104,000 34,691,000 -58,352,000 42,581,000    49,830,000 -172,197,000   -172,552,000 -343,139,000 19,399,000 -163,487,000 13,430,000 119,762,000 276,529,000 -86,428,000 260,682,000 24,675,000 7,328,000 3,017,000 11,137,000 -10,577,000 -38,302,000 -17,135,000 -265,629,000             
          cash, cash equivalents and restricted cash at beginning of period
        113,639,000 81,524,000 124,904,000 215,119,000 689,804,000 119,604,000 73,429,000                 
          effect of exchange rate changes on cash, cash equivalents and restricted cash
        661,000 -1,324,000 591,000 -31,000 -145,000 487,000 -541,000 59,000 197,000 478,000 -379,000 -109,000 -197,000 -506,000 -123,000 -162,000 -97,000 -347,000 14,000 -62,000 50,000 28,000 -13,000 19,000 -16,000                 
          cash, cash equivalents and restricted cash at end of period
        134,092,000 12,780,000 35,282,000 -58,383,000 123,960,000 15,856,000 -16,211,000 -93,052,000 174,931,000 -171,719,000 118,053,000 136,200,000 42,370,000 -343,645,000 19,276,000 -163,649,000 703,137,000 119,415,000 276,543,000 -86,490,000 380,336,000 24,703,000 7,315,000 3,036,000 84,550,000                 
          supplemental cash flow information
                                                 
          cash paid for interest
        21,465,000 23,797,000 23,437,000 18,338,000 14,280,000 13,012,000 10,288,000 8,083,000 7,084,000 6,858,000            1,000 2,000 2,000 206,000 30,000 13,000 18,000  34,000 90,950 50  -179,746 85,000 95,000 105,000 111,000 116,000 120,000 
          property and equipment purchases unpaid at period end
        698,000 319,000 66,000 -1,794,000 1,834,000 -1,365,000 -682,000   129,000 -1,634,000 793,000 1,036,000 -57,000 -24,000 -213,000 443,000 -68,000 93,000 -349,000 465,000 -2,267,000 -103,000 1,850,000 1,478,000 784,000 -1,986,000 -1,012,000 3,126,000  1,276,000 1,919,920 80         
          cash paid for taxes
        703,000  235,000 34,000 520,000  86,000 365,000 311,000 2,487,000 3,247,000 602,000 169,000 20,000 76,000 24,000 574,000 710,000 21,000 15,000 32,000 55,000 33,000                   
          non-cash customer consideration
                                                
          unbilled accounts receivable
             42,000 2,728,000 392,000 9,899,000 -13,086,000 -309,000 1,556,000 8,035,000 -553,000 2,445,000 -4,567,000 9,013,000 -1,326,000 3,990,000 -280,000 2,152,000 -20,180,000 1,946,000        -360,000 501,249 751  -63,041 881,000 -818,000 -944,000 -547,000 -1,439,000 -484,000 
          other long term liabilities
                                                 
          deferred revenue
         -2,970,000 -63,000 -534,000 3,158,000 -2,407,000 -317,000 1,136,000 -11,099,000 15,139,000 -5,514,000 -1,187,000 -13,251,000 1,179,000 -2,881,000 -2,695,000 -185,000 -4,249,000 702,000 -793,000 -575,000 4,742,000 -3,139,000 -966,000 -731,000 -1,033,000 -1,095,000 8,561,000 -954,000  -4,633,000 -5,826,985 -3,015  -39,374,293 -3,715,000 43,127,000 -1,220,000 -957,000 986,000 14,832,000 
          net proceeds from term loan facility
           -35,000    -11,000                                
          net proceeds from the sale of future royalties and revenues
                 -8,000                                
          principle payments for financing arrangements
                                                 
          cash paid (refunds received) for taxes
                                                 
          accrued expenses and accounts payable
                                                 
          other long-term liabilities
          -4,325,000    3,000 -7,238,000  -427,000 -669,000 6,826,000                             
          acquired in-process research and development
                                                 
          purchase of in-process research and development asset, net of cash acquired
                                                 
          net decrease in cash, cash equivalents, and restricted cash
                                                 
          net (accretion of discount) amortization of premium on marketable securities
                                                 
          gross proceeds from the sale of future royalties
                                                 
          debt issuance costs incurred but unpaid at period end
                                                 
          noncash lease expense
                   2,070,000 2,037,000 1,638,000 1,595,000 1,551,000 1,522,000 1,502,000 1,466,000 1,432,000 1,391,000                     
          accretion of premiums and discounts on investments
                         221,000 271,000 108,000 -134,000 -583,000 -1,393,000 -1,641,000 -1,332,000 -1,447,000 -1,259,000 -983,000 -692,000  -110,000 75,914 86  -109,796 75,000 35,000     
          proceeds from common stock offerings, net of issuance costs
                                                 
          proceeds from issuance of common stock related to collaboration agreement
                                                 
          net cash provided used in operating activities
                    -132,726,000                             
          other financing activities
                             -44,000 -44,000 -28,000                 
          proceeds from public offerings of common stock, net of issuance cost
                                                
          issuance of common stock related to collaboration agreement
                                                 
          payment of offering costs
                                 -117,000 -164,000  -207,000 -715,511 -489     -81,000 -1,819,000 -146,000 
          public offering costs incurred but unpaid at period end
                          1,000 -113,000 118,000  -3,000      166,000  -206,000 305,484 516       -777,000 805,000 
          deferred rent
                                 -186,000 -151,000 -163,000 -140,000  5,952,000 369,135 -135  236,645 -119,000 -118,000 2,456,000   -40,000 
          principal payments on loan payable
                                 -278,000 -417,000 -416,000 -417,000  -583,000 -1,416,167 -833  1,664,500 -834,000 -833,000 -556,000 -417,000 -416,000 -417,000 
          proceeds from common stock offerings, net of issurance costs
                                                 
          proceeds from public offerings of common stock, net of commissions, underwriting discounts and offering costs
                            308,541,000                     
          proceeds from issuance of common stock
                            1,609,000    2,039,000                19,000 
          proceeds from public offerings of common stock, net of commissions and underwriting discounts
                                                 
          proceeds from public offering of common stock, net of issuance cost
                              -284,000                   
          principal payments on capital lease obligations
                                 -42,000 -81,000               
          operating activities
                                                 
          investing activities
                                                 
          net cash from by investing activities
                                  16,590,000               
          financing activities
                                                 
          proceeds from public offering of common stock, net of commissions and underwriting discounts
                                                
          proceeds from issuance of common stock, net of repurchases
                                  611,000 1,087,000 3,643,000  1,162,000 1,655,098 902  -344,553 316,000 29,000 213,000 -22,000   
          cash, cash equivalents, and restricted cash at beginning of period
                                  405,072,000             
          cash, cash equivalents, and restricted cash at end of period
                                  -38,302,000 -17,135,000 139,443,000             
          noncash interest expense
                                   4,000 4,000  8,000 18,989 11  -41,941 20,000 22,000 25,000 26,000 29,000 29,000 
          net increase in cash and cash equivalents
                                     342,975,000 -34,017,000 39,272,713 4,287 -110,549,696 53,232,696 -12,903,000 -40,418,000 -17,073,000 -13,807,000 143,289,000 3,058,000 
          restricted cash
                                         -118,881 119,000 70,000 -1,266,000 
          net cash (used in) investing activities
                                      -7,871,000           
          cash and cash equivalents at beginning of period
                                      52,016,931 52,069  -162,544,293 162,707,000 47,240,000 
          cash and cash equivalents at end of period
                                      -34,017,000 91,289,644 56,356  -109,311,597 -12,903,000 122,289,000 -17,073,000 -13,807,000 143,289,000 50,298,000 
          change in fair value of warrant liability
                                             407,000 38,000 
          proceeds from ipo, net of commissions and underwriting discounts
                                               
          property and equipment purchases incurred but unpaid at period end
                                          -115,985 -128,000 244,000 -1,564,000 2,793,000   
          conversion of convertible preferred stock into common stock
                                               
          reclassification of warrant liability to additional paid-in-capital
                                               
          proceeds from issuance of series c convertible preferred stock, net of issuance costs
                                                 
          proceeds from term loan
                                                 
          proceeds from issuance of series a convertible preferred stock, net of issuance costs
                                                 
          proceeds from issuance of series b convertible preferred stock, net of issuance costs
                                                 
          debt issuance costs
                                                 
          issuance of warrants in connection with term loan
                                                 
          adjustments to reconcile net income to net cash from in operating activities:
                                                 
          series c convertible preferred stock issuance costs