7Baggers

Akebia Therapeutics, Inc
(NASDAQ:AKBA) 

AKBA stock logo

Akebia Therapeutics, Inc., a biopharmaceutical company, focuses on the development and commercialization of renal therapeutics for patients with kidney diseases. The company's lead product investigational product candidate is vadadustat, an oral therapy, which is in Phase III development for the tre...

Full Time Employees: 358
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-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 
                                                    
      revenues
                                                    
      product revenue
    51,992,000 54,291,000 56,789,000 60,461,000 55,791,000 44,370,000 35,592,000 41,209,000 31,009,000 53,233,000 40,118,000 42,244,000 34,828,000 49,677,000 42,239,000 43,703,000 41,448,000 42,096,000 36,753,000 32,959,000 30,408,000 34,604,000 34,392,000 30,696,000 29,209,000 28,915,000 30,004,000 29,089,000 23,111,000                    
      license, collaboration and other revenue
    1,552,000 3,331,000 1,977,000 2,011,000 1,545,000 2,127,000 1,836,000 2,439,000 1,598,000 2,963,000 1,928,000 14,132,000 5,299,000 5,503,000 6,725,000 83,056,000 20,251,000 17,509,000 12,003,000 19,954,000 21,896,000 22,095,000 25,596,000 59,446,000 59,269,000 40,640,000 61,973,000 71,714,000 49,555,000                    
      total revenues
    53,544,000 57,622,000 58,766,000 62,472,000 57,336,000 46,497,000 37,428,000 43,648,000 32,607,000 56,196,000 42,046,000 56,376,000 40,127,000 55,180,000 48,964,000 126,759,000 61,699,000 59,605,000 48,756,000 52,913,000 52,304,000 56,699,000 59,988,000 90,142,000 88,478,000 69,555,000 91,977,000 100,803,000 72,666,000                    
      yoy
    -6.61% 23.93% 57.01% 43.13% 75.84% -17.26% -10.98% -22.58% -18.74% 1.84% -14.13% -55.53% -34.96% -7.42% 0.43% 139.56% 17.96% 5.13% -18.72% -41.30% -40.88% -18.48% -34.78% -10.58% 21.76%                        
      qoq
    -7.08% -1.95% -5.93% 8.96% 23.31% 24.23% -14.25% 33.86% -41.98% 33.65% -25.42% 40.49% -27.28% 12.70% -61.37% 105.45% 3.51% 22.25% -7.86% 1.16% -7.75% -5.48% -33.45% 1.88% 27.21% -24.38% -8.76% 38.72%                     
      cost of goods sold
                                                    
      cost of product and other revenue
    12,290,000 12,535,000 9,383,000 9,919,000 7,625,000 11,355,000 5,150,000 8,036,000 2,594,000                                        
      total cost of goods sold
    12,290,000 12,535,000 9,383,000 9,919,000 7,625,000 20,365,000 14,161,000 17,047,000 11,605,000 18,665,000 18,009,000 17,284,000 19,484,000 -3,095,000 37,947,000 18,600,000 31,344,000 50,350,000 15,944,000 52,495,000 34,606,000 63,234,000 30,345,000 174,616,000 27,713,000 38,147,000 38,263,000 37,669,000 31,257,000                    
      operating expenses:
                                                    
      research and development
    14,807,000 26,648,000 14,944,000 11,013,000 9,754,000 11,786,000 8,487,000 7,647,000 9,731,000 9,865,000 13,330,000 20,197,000 19,686,000 31,904,000 27,350,000 26,027,000 43,833,000 29,556,000 40,471,000 37,214,000 40,611,000 37,578,000 46,857,000 52,819,000 81,231,000 80,412,000 74,512,000 85,694,000 82,351,000 87,052,000 70,634,000 71,917,000 61,404,000 68,382,000 58,711,000 43,751,000 60,049,000 33,435,000 31,238,000 30,877,000 20,235,000 15,790,000 7,182,000 7,505,000 7,068,000 6,648,000 5,524,895 6,157,928 
      selling, general and administrative
    30,436,000 26,089,000 29,094,000 26,555,000 25,742,000 27,675,000 26,516,000 26,917,000 25,438,000 25,436,000 22,710,000 27,036,000 25,221,000 30,647,000 30,918,000 32,807,000 44,327,000 44,825,000 46,357,000 41,651,000 41,328,000 40,311,000 40,171,000 35,482,000 37,983,000 44,918,000 34,178,000 36,068,000 34,291,000                    
      license
    707,000 903,000 896,000 896,000 701,000 978,000 769,000 762,000 711,000                                        
      total operating expenses
    45,950,000 53,640,000 44,934,000 38,464,000 36,197,000 40,439,000 35,772,000 35,326,000 35,938,000 36,157,000 37,073,000 48,088,000 45,581,000 64,625,000 59,191,000 74,257,000 88,848,000 75,410,000 87,698,000 79,759,000 82,634,000 78,868,000 87,738,000 89,345,000 119,890,000 126,299,000 109,619,000 122,657,000 117,378,000 142,240,000 81,012,000 84,455,000 70,428,000 75,949,000 65,459,000 50,656,000 65,837,000 39,579,000 36,182,000 36,188,000 26,046,000 19,678,000 10,889,000 10,896,000 10,607,000 9,584,000 7,839,996 9,909,247 
      income from operations
    -4,696,000 -8,553,000 4,449,000 14,089,000 13,514,000 -14,307,000 -12,505,000 -8,725,000 -14,936,000 1,374,000 -13,036,000                                      
      yoy
    -134.75% -40.22% -135.58% -261.48% -190.48% -1141.27% -4.07%                                          
      qoq
    -45.10% -292.25% -68.42% 4.25% -194.46% 14.41% 43.32% -41.58% -1187.05% -110.54%                                       
      operating margin %
    -8.77% -14.84% 7.57% 22.55% 23.57% -30.77% -33.41% -19.99% -45.81% 2.45% -31.00% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% 0% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% NaN% 
      other income
    3,000 -117,000 -10,000 -28,000 213,000 55,000 -17,000 -39,000 95,000 658,000 -43,000 -10,000 282,000 434,000 1,167,000 411,000 1,134,000 560,000 427,000 1,265,000 161,000 720,000 410,000 376,000 350,000 -554,000 -185,000 23,000 -78,000 29,000 16,000 32,000 4,000  200,000 10,000 -6,000 3,000 -345,000 139,000 14,000        
      interest expense
    -4,691,000 -4,827,000 -4,748,000 -6,834,000 -7,770,000 -6,877,000 -6,661,000 -2,149,000 -2,498,000 -1,418,000 -1,410,000 -1,642,000 -1,561,000 -3,512,750 -3,952,000 -5,037,000 -5,062,000 -3,713,250 -5,085,000 -4,962,000 -4,805,000                            
      change in fair value of warrant liability
    456,000 2,262,000 1,464,000 -6,980,000 155,000 -1,675,000 -856,000 2,331,000 -129,000                                        
      income before income taxes
    -8,928,000 -11,235,000 1,155,000                                              
      income tax expense
    -126,000 -1,009,000 -615,000                                              
      net income
    -9,054,000 -12,244,000 540,000 247,000 6,112,000 -22,804,000 -20,039,000 -8,582,000 -17,985,000 614,000 -14,489,000 -11,172,000 -26,217,000 -7,552,000 -51,865,000 29,276,000 -62,421,000 -70,678,000 -59,544,000 -83,038,000 -69,580,000 -87,000,000 -59,959,000 -175,751,000 -60,747,000 -94,483,000 -54,585,000 -58,170,000 -72,421,000 -60,054,000 -26,047,000 -34,069,000 -23,418,000 12,280,000 -23,134,000 -21,518,000 -44,543,000 -37,862,000 -36,308,000 -35,779,000 -25,798,000 -19,475,000 -10,689,000 -10,695,000 -10,370,000 -9,348,000 -7,618,327 -9,697,110 
      yoy
    -248.13% -46.31% -102.69% -102.88% -133.98% -3814.01% 38.30% -23.18% -31.40% -108.13% -72.06% -138.16% -58.00% -89.31% -12.90% -135.26% -10.29% -18.76% -0.69% -52.75% 14.54% -7.92% 9.85% 202.13% -16.12% 57.33% 109.56% 70.74% 209.25% -589.04% 12.59% 58.33% -47.43% -132.43% -36.28% -39.86% 72.66% 94.41% 239.68% 234.54% 148.78% 108.33% 40.31% 10.29%     
      qoq
    -26.05% -2367.41% 118.62% -95.96% -126.80% 13.80% 133.50% -52.28% -3029.15% -104.24% 29.69% -57.39% 247.15% -85.44% -277.16% -146.90% -11.68% 18.70% -28.29% 19.34% -20.02% 45.10% -65.88% 189.32% -35.71% 73.09% -6.16% -19.68% 20.59% 130.56% -23.55% 45.48% -290.70% -153.08% 7.51% -51.69% 17.65% 4.28% 1.48% 38.69% 32.47% 82.20% -0.06% 3.13% 10.93% 22.70% -21.44%  
      net income margin %
    -16.91% -21.25% 0.92% 0.40% 10.66% -49.04% -53.54% -19.66% -55.16% 1.09% -34.46% -19.82% -65.34% -13.69% -105.92% 23.10% -101.17% -118.58% -122.13% -156.93% -133.03% -153.44% -99.95% -194.97% -68.66% -135.84% -59.35% -57.71% -99.66% -Infinity% -Infinity% -Infinity% -Infinity% Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% 
      comprehensive income
    -9,054,000 1,724,750 540,000 247,000 6,112,000       -11,172,000                                     
      net income per share
                -0.14 -0.04 -0.28 0.16 -0.35 -0.4 -0.34 -0.51 -0.45 -0.59 -0.42 -1.28 -0.47 -0.79 -0.46 -0.49 -0.62 -0.93 -0.46 -0.6 -0.48 0.34 -0.49 -0.53 -1.15 -0.99 -0.96 -0.95 -0.7 -0.68 -0.4 -0.53 0.12 -0.47 -0.39 -43.37 
      basic
    -0.03 0.008   0.03       -0.06                                     
      diluted
    -0.03 0.008   0.03       -0.06                                     
      weighted-average shares of common stock outstanding:
                                                    
      basic
    267,046,755  264,786,432 262,565,500 235,497,720       186,817,431                                     
      diluted
    267,046,755  274,372,722 271,104,020 241,602,853       186,817,431                                     
      amortization of intangible asset
         9,010,000 9,011,000 9,011,000 9,011,000 9,010,000 9,011,000 9,011,000                                     
      restructuring
            58,000  169,000 -94,000 106,000 1,222,000 180,000 14,531,000                                 
      loss on extinguishment of debt
            -517,000      -906,000                                  
      net income before income taxes
       247,000 6,112,000                                            
      weighted-average common shares outstanding:
                                                    
      basic
    267,046,755  264,786,432 262,565,500 235,497,720       186,817,431                                     
      diluted
    267,046,755  274,372,722 271,104,020 241,602,853       186,817,431                                     
      loss on termination of lease
                                                    
      net loss before income taxes
         -22,804,000 -20,039,000 -8,582,000 -17,985,000             -87,000,000 -59,959,000 -175,751,000 -60,747,000 -96,235,000 -55,862,000 -59,015,000 -75,178,000                    
      comprehensive loss
         -22,804,000 -20,039,000 -8,582,000 -17,985,000 614,000 -14,489,000                         -21,593 -44,722 -37,897 -36,352 -35,716 -25,824 -19,455 -10,708 -10,703 -10,374 -9,391 -7,626,543  
      net income per share
                -0.14 -0.04 -0.28 0.16 -0.35 -0.4 -0.34 -0.51 -0.45 -0.59 -0.42 -1.28 -0.47 -0.79 -0.46 -0.49 -0.62 -0.93 -0.46 -0.6 -0.48 0.34 -0.49 -0.53 -1.15 -0.99 -0.96 -0.95 -0.7 -0.68 -0.4 -0.53 0.12 -0.47 -0.39 -43.37 
      basic and diluted
         -0.11 -0.1 -0.04 -0.09  -0.08                                      
      weighted-average common shares outstanding:
                                                    
      basic and diluted
     257,157,782    210,946,658 210,348,459 209,705,397 204,955,151 187,465,448 188,306,350                                      
      product
             7,113,000 8,998,000 8,273,000 10,473,000 -12,105,000 28,936,000 9,589,000 22,333,000 41,340,000 6,933,000 43,484,000 25,595,000 56,026,000 24,239,000 49,988,000 18,613,000 29,047,000 29,162,000 28,569,000 22,157,000                    
      license expense
             595,250 864,000 949,000 568,000 852,000 743,000 892,000 688,000 1,029,000 870,000 894,000 695,000 979,000 710,000 1,044,000 676,000 969,000 929,000 895,000 736,000                    
      operating income
               -8,996,000 -24,938,000 -6,350,000 -48,174,000 33,902,000 -58,493,000 -66,155,000 -54,886,000 -79,341,000 -64,936,000 -85,403,000 -58,095,000 -173,819,000 -59,125,000 -94,891,000 -55,905,000 -59,523,000 -75,969,000 -90,158,000 -27,843,000 -35,662,000 -24,498,000 11,367,000 -24,176,000 -22,136,000 -44,972,000 -38,044,000 -36,182,000 -36,188,000 -26,046,000 -19,678,000 -10,889,000 -10,896,000 -10,607,000 -9,584,000 -7,839,996 -9,909,247 
      loss on lease termination
               -524,000                                     
      revenues:
                                                    
      cost of goods sold:
                                                    
      amortization of intangibles
                9,011,000 9,010,000 9,011,000 9,011,000 9,011,000 9,010,000 9,011,000 9,011,000 9,011,000 7,208,000 6,106,000 9,101,000 9,100,000 6,825,250 9,101,000 9,100,000 9,100,000                    
      other income:
                                                    
      net income per share
                -0.14 -0.04 -0.28 0.16 -0.35 -0.4 -0.34 -0.51 -0.45 -0.59 -0.42 -1.28 -0.47 -0.79 -0.46 -0.49 -0.62 -0.93 -0.46 -0.6 -0.48 0.34 -0.49 -0.53 -1.15 -0.99 -0.96 -0.95 -0.7 -0.68 -0.4 -0.53 0.12 -0.47 -0.39 -43.37 
      weighted-average number of common shares - basic and diluted
                184,768,983 182,782,680 183,882,446  179,599,045 165,949,695 173,782,151 161,329,990 153,820,809 138,463,152 143,314,729 136,906,968 128,395,163 118,395,919 118,863,063 118,268,832 117,063,352 58,038,252 57,027,598 56,890,295 48,613,565 43,500,795 46,938,618 40,819,957 38,759,221            
      comprehensive loss:
                                                    
      total comprehensive loss
                -26,217 -7,552 -51,865  -62,421 -70,678 -59,544 -83,041 -69,584 -86,993 -59,944 -175,760 -60,747 -94,489 -54,602 -58,111 -72,196 -59,906 -25,997 -33,978 -23,526 12,061 -23,061              
      other comprehensive loss - unrealized loss on debt securities
                       -3 -4            -108                
      weighted-average number of common shares - basic
                   183,597,766                                 
      weighted-average number of common shares - diluted
                   190,375,317                                 
      comprehensive income:
                                                    
      total comprehensive income
                   29,276                                 
      impairment of intangible asset
                           115,527,000                         
      other comprehensive gain - unrealized gain on debt securities
                     -1.75    1.5 15 -9  66.75 -17 59 225 8.25 50 91                 
      interest income
                         -2,317,000 -2,274,000 -2,308,000 -1,972,000 -790,000 228,000 485,000 869,000 1,737,000 1,780,000 1,561,000 1,076,000 913,000 842,000 608,000 435,000 179,000 219,000 270,000 234,000 139,000 116,000 96,000 81,000 56,000 50,442 19,025 
      benefit from income taxes
                             -1,752,000 -1,277,000 -845,000 -2,757,000                    
      collaboration revenue
                                 36,973,000 53,169,000 48,793,000 45,930,000 87,316,000 41,283,000 28,520,000 20,865,000            
      general and administrative
                                 7,985,000 10,378,000 12,538,000 9,024,000 7,567,000 6,748,000 6,905,000 5,788,000 6,144,000 4,944,000 5,311,000 5,811,000 3,888,000 3,707,000 3,391,000 3,539,000 2,936,000 2,315,101 3,751,319 
      other comprehensive gain - unrealized gain on securities
                                     -45.25 73              
      other comprehensive loss - unrealized loss on securities
                                       -75 -179    -26 20       
      weighted-average number of common shares used in net loss per share applicable to common stockholders—basic and diluted
                                         37,716,949 37,897,902 37,811,056 36,873,594 28,784,231 26,614,671 20,030,129 15,406,386 19,691,167   
      other comprehensive income - unrealized gain on securities
                                         -35 -44 63         
      reimbursements from aerpio
                                             64,000 84,000 105,000 156,000 180,000 171,227 193,112 
      reconciliation of net loss to net loss applicable to common stockholders:
                                                    
      accretion on preferred stock
                                                   -86,899,555 
      net loss applicable to common stockholders
                                             -19,475,000 -10,689,000 -10,695,000 -10,370,000 -9,348,000 -7,618,327 -96,596,665 
      other comprehensive loss:
                                                    
      unrealized loss on securities
                                              -19 -8 -4 -43   
      extinguishment of debt and other liabilities
                                                    
      revenue
                                                    
      weighted-average number of common shares used in net loss per share applicable to common stockholders’—basic and diluted
                                                  19,652,056 2,227,058 
      other comprehensive loss, net of deferred tax:
                                                    
      unrealized loss on securities, net of tax of 0
                                                  -8,216  
      grant income
                                                    
      gain on cancellation of preferred stock future tranche rights
                                                    
      net loss and comprehensive loss
                                                   -9,697,110 
      loss on extinguishment of preferred stock
                                                    
    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-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 
                                                      
        assets
                                                      
        current assets:
                                                      
        cash and cash equivalents
      162,644,000 184,844,000 166,444,000 137,308,000 113,374,000 51,870,000 34,019,000 39,499,000 41,961,000 42,925,000 46,529,000  56,953,000 90,466,000 144,761,000 143,893,000 174,562,000 149,800,000 207,204,000 246,992,000 252,765,000 228,698,000 169,286,000 245,406,000 115,374,000 147,449,000 122,886,000 87,212,000 62,741,000 104,644,000 162,430,000 163,526,000 158,171,000 70,156,000 89,599,000 125,390,000 87,250,000 187,335,000 65,830,000 46,177,000 43,439,000 66,712,000 76,248,000 27,887,000 32,780,000 49,668,000 95,394,102 126,319,457 
        inventories
      12,996,000 15,610,000 18,643,000 16,708,000 19,732,000 16,243,000 20,493,000 23,872,000 25,532,000 15,691,000 18,442,000 36,272,000                                     
        accounts receivable
      62,536,000 47,031,000 66,223,000 72,809,000 61,538,000 34,368,000 32,170,000 29,765,000 26,620,000 39,290,000 22,592,000 81,869,000 17,781,000 39,180,000 23,094,000 81,869,000 64,582,000 50,875,000 49,690,000 35,005,000 35,233,000 26,853,000 24,466,000 39,115,000 104,872,000 38,864,000 29,654,000 28,888,000 48,435,000 16,666,000 688,000 132,000 35,852,000 34,216,000        14,000 48,000 74,000 48,000 57,000 113,953 119,395 
        prepaid expenses and other current assets
      5,305,000 5,470,000 7,026,000 7,832,000 9,138,000 11,350,000 13,438,000 18,961,000 18,831,000 20,243,000 22,039,000  25,381,000 33,541,000 29,618,000 42,129,000 24,121,000 33,140,000 39,502,000 11,181,000 12,214,000 14,877,000 9,037,000 10,035,000 8,656,000 6,626,000 7,754,000 28,606,000 15,554,000 15,724,000 6,694,000 5,162,000 8,100,000 6,348,000 3,952,000 11,174,000 3,248,000 2,155,000 3,825,000 3,873,000 2,505,000 1,324,000 2,125,000 2,288,000 1,514,000 1,445,000 1,691,312 1,468,165 
        total current assets
      243,481,000 252,955,000 258,336,000 234,657,000 203,782,000 113,831,000 100,120,000 112,097,000 112,944,000 118,149,000 109,602,000 304,163,000 120,719,000 184,949,000 237,512,000 304,163,000 302,687,000 272,010,000 330,084,000 331,076,000 365,017,000 371,437,000 391,000,000 449,102,000 340,756,000 309,533,000 299,008,000 316,396,000 347,233,000 468,275,000 397,526,000 407,417,000 436,981,000 358,356,000 333,938,000 332,389,000 255,053,000 296,321,000 165,147,000 192,522,000 219,530,000 158,804,000 154,962,000 102,695,000 110,480,000 119,840,000 126,051,209 133,738,860 
        property and equipment
      956,000 1,222,000 1,473,000 1,714,000 1,904,000 2,200,000 2,533,000 2,895,000 3,265,000 3,629,000 4,023,000  4,816,000 5,214,000 5,622,000 6,035,000 6,451,000 6,754,000 7,196,000 7,670,000 8,168,000 8,622,000 8,821,000 9,380,000 9,855,000 10,380,000 12,799,000 10,903,000 9,512,000 8,023,000 3,808,000 3,726,000 3,714,000 3,617,000 3,364,000 2,934,000 2,904,000 2,612,000 2,688,000 1,832,000 629,000 479,000 398,000 404,000 210,000 205,000 181,029  
        operating right-of-use assets
      2,465,000 3,663,000 4,837,000 5,987,000 7,114,000 8,218,000 9,300,000 10,360,000 11,399,000 12,416,000 13,414,000                                      
        goodwill
      59,044,000 59,044,000 59,044,000 59,044,000 59,044,000 59,044,000 59,044,000 59,044,000 59,044,000 59,044,000 59,044,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000 55,053,000                   
        other long-term assets
      56,574,000 59,681,000 40,462,000 44,193,000 38,341,000 37,377,000 27,134,000 17,779,000 11,793,000 12,423,000 3,862,000                                      
        total assets
      362,520,000 376,565,000 364,152,000 345,595,000 310,185,000 220,670,000 207,142,000 220,196,000 225,477,000 241,703,000 234,998,000 521,804,000 276,858,000 351,830,000 435,894,000 521,804,000 535,356,000 525,550,000 602,267,000 611,863,000 628,703,000 644,139,000 676,143,000 745,174,000 787,719,000 771,201,000 795,220,000 823,528,000 890,793,000 996,540,000 403,826,000 413,781,000 442,713,000 364,247,000 338,589,000 336,822,000 259,256,000 300,216,000 169,118,000 195,635,000 221,440,000 159,588,000 155,665,000 103,459,000 110,995,000 120,170,000 126,357,583 134,028,409 
        liabilities and stockholders' equity
                                                      
        current liabilities:
                                                      
        accounts payable
      8,386,000 21,185,000 10,087,000 11,554,000 12,658,000 15,180,000 13,494,000 10,107,000 11,882,000 14,635,000 9,038,000  12,577,000 18,021,000 19,708,000 24,944,000 19,466,000 33,588,000 28,809,000 41,984,000 30,537,000 41,308,000 40,403,000 29,413,000 54,379,000 39,217,000 64,362,000 19,321,000 15,226,000 42,796,000 12,684,000 4,795,000 17,880,000 6,998,000 8,705,000 10,212,000 15,083,000 2,039,000 8,524,000 5,143,000 2,415,000 5,273,000 2,412,000 4,329,000 2,021,000 3,032,000 1,488,184 2,077,302 
        accrued expenses and other current liabilities
      125,062,000 121,716,000 106,420,000 91,615,000 71,337,000 63,460,000 52,215,000 53,897,000 53,910,000 67,735,000 62,664,000 91,284,000 46,367,000 70,997,000 87,364,000 91,284,000 109,660,000 104,456,000 144,704,000 111,742,000 123,889,000 130,624,000 123,021,000 142,832,000 124,887,000  126,644,000 125,981,000 137,803,000                    
        current portion of deferred revenue
      4,496,000  3,881,000 5,532,000 1,241,000   43,296,000                                         
        current portion of long-term debt
      12,495,000         17,500,000 8,000,000  24,000,000 32,000,000 65,947,000 98,158,000 97,848,000 97,543,000                               
        working capital fund liability, current portion
      23,445,000 17,356,000 12,991,000 10,016,000 5,991,000 2,274,000                                           
        total current liabilities
      173,884,000 162,938,000 133,379,000 118,717,000 91,227,000 80,914,000 65,709,000 107,300,000 66,487,000 99,870,000 79,702,000 233,680,000 82,944,000 124,756,000 187,965,000 233,680,000 253,914,000 256,493,000 189,205,000 165,595,000 172,679,000 187,146,000 181,458,000 195,774,000 214,152,000 208,118,000 223,148,000 185,618,000 202,613,000 265,693,000 177,399,000 164,420,000 151,419,000 144,349,000 151,357,000 181,591,000 133,463,000 114,268,000 26,139,000 20,932,000 13,409,000 14,166,000 5,903,000 8,841,000 6,885,000 6,522,000 4,769,716 6,123,220 
        long-term debt
      36,395,000 48,250,000 47,641,000 47,062,000 46,511,000 38,693,000 38,355,000 38,031,000 30,145,000 17,183,000 34,613,000  26,296,000 34,078,000     97,230,000 96,917,000 96,607,000 96,378,000 76,608,000 76,338,000 76,072,000 75,805,000                       
        liability related to settlement royalties, net of current portion
      54,842,000 54,750,000 52,994,000 48,729,000 47,440,000 46,697,000                                           
        liability related to sale of future royalties, net of current portion
      50,414,000 50,608,000 50,576,000 51,082,000 51,549,000 52,066,000 52,381,000 53,101,000                                         
        working capital fund liability, net of current portion
      16,405,000 22,606,000 27,726,000 30,556,000 34,420,000 38,013,000                                           
        warrant liability
      2,524,000 2,980,000 5,242,000 14,199,000 7,220,000 5,176,000 3,501,000 2,644,000 4,975,000                                        
        other long-term liabilities
      681,000 1,823,000 5,002,000 5,355,000 5,114,000 4,749,000 4,727,000 6,557,000 6,771,000 8,885,000 9,415,000                                      
        total liabilities
      335,145,000 343,955,000 322,560,000 316,371,000 285,604,000 269,855,000 257,544,000 253,950,000 252,735,000 272,287,000 274,420,000 459,504,000 291,210,000 342,488,000 422,041,000 459,504,000 509,240,000 449,094,000 465,117,000 437,232,000 414,812,000 396,521,000 358,181,000 374,914,000 391,355,000 376,444,000 327,658,000 304,172,000 324,414,000 360,612,000 261,285,000 247,857,000 245,616,000 244,916,000 238,714,000 279,824,000 228,639,000 232,096,000 68,408,000 62,347,000 53,678,000 14,176,000 5,913,000 8,850,000 6,917,000 6,556,000 4,805,617 6,161,018 
        commitments and contingencies
                                                      
        stockholders' equity:
                                                      
        preferred stock 0.00001 par value...
                                                      
        common stock 0.00001 par value...
      2,000  2,000 2,000 2,000  2,000 2,000 2,000  2,000  2,000  2,000 2,000 2,000  2,000 2,000 2,000  1,000 1,000 1,000  1,000 1,000 1,000                    
        additional paid-in capital
      1,720,126,000 1,716,307,000 1,713,045,000 1,701,217,000 1,696,821,000 1,629,167,000 1,605,146,000 1,601,755,000 1,599,669,000 1,578,358,000 1,570,134,000  1,564,770,000 1,562,247,000 1,559,206,000 1,555,788,000 1,548,880,000 1,536,800,000 1,526,815,000 1,504,752,000 1,460,971,000 1,425,115,000 1,408,466,000 1,400,820,000 1,251,164,000 1,188,810,000 1,167,126,000 1,164,318,000 1,153,230,000 1,150,583,000 597,290,000 594,676,000 591,871,000 493,823,000 486,386,000 420,448,000 372,475,000 365,298,000 359,991,000 356,217,000 355,138,000 287,113,000 271,998,000 206,146,000 204,969,000 204,048,000 202,535,864 201,203,384 
        accumulated other comprehensive income
      6,000 6,000 6,000 6,000 6,000 6,000 6,000 6,000 6,000 6,000 6,000                6,000 23,000      -442,000    -42,000  37,000         
        accumulated deficit
      -1,692,759,000 -1,683,705,000 -1,671,461,000 -1,672,001,000 -1,672,248,000 -1,678,360,000 -1,655,556,000 -1,635,517,000 -1,626,935,000 -1,608,950,000 -1,609,564,000 -1,493,496,000 -1,579,130,000 -1,552,913,000 -1,545,361,000 -1,493,496,000 -1,522,772,000 -1,460,351,000 -1,389,673,000 -1,330,129,000 -1,247,091,000 -1,177,511,000 -1,090,511,000 -1,030,552,000 -854,801,000 -794,054,000 -699,571,000 -644,986,000 -586,816,000 -514,395,000 -454,341,000 -428,294,000 -394,225,000 -374,050,000 -386,330,000 -363,196,000 -341,679,000 -297,136,000 -259,274,000 -222,966,000 -187,187,000 -141,532,000 -122,057,000 -111,368,000 -100,673,000 -90,303,000 -80,954,522  
        total stockholders' equity
      27,375,000 32,610,000 41,592,000 29,224,000 24,581,000         9,342,000 13,853,000 62,300,000 26,116,000 76,456,000 137,150,000 174,631,000 213,891,000 247,618,000 317,962,000 370,260,000 396,364,000 394,757,000 467,562,000 519,356,000 566,379,000 635,928,000 142,541,000 165,924,000 197,097,000 119,331,000 99,875,000 56,998,000 30,617,000 68,120,000 100,710,000 133,288,000 167,762,000 145,412,000 149,752,000 94,609,000 104,078,000 113,614,000   
        total liabilities and stockholders' equity
      362,520,000 376,565,000 364,152,000 345,595,000 310,185,000       521,804,000  351,830,000 435,894,000 521,804,000 535,356,000 525,550,000 602,267,000 611,863,000 628,703,000 644,139,000 676,143,000 745,174,000 787,719,000 771,201,000 795,220,000 823,528,000 890,793,000 996,540,000 403,826,000 413,781,000 442,713,000 364,247,000 338,589,000 336,822,000 259,256,000 300,216,000 169,118,000 195,635,000 221,440,000 159,588,000 155,665,000 103,459,000     
        short-term deferred revenue
       2,681,000       695,000     3,738,000 1,265,000 5,047,000 10,440,000 20,906,000 15,692,000 11,869,000 18,253,000 15,214,000 18,034,000 23,529,000 34,886,000 39,830,000 32,142,000 40,316,000 49,584,000 56,980,000 70,099,000 78,613,000 78,592,000 84,910,000 121,031,000 142,346,000 84,108,000 81,968,000           
        long-term operating lease liabilities
         671,000 2,123,000 3,547,000 4,937,000 6,299,000 7,636,000 8,947,000 10,227,000                                      
        stockholders' equity
                                                      
        common stock: 0.00001 par value...
       2,000    2,000    2,000    2,000    1,000    1,000    1,000    1,000 1,000 1,000 1,000                
        liabilities and stockholders' deficit
                                                      
        intangible asset
            9,011,000 18,021,000 27,032,000 36,042,000 45,053,000                                      
        long-term deferred revenue
                                                      
        stockholders' deficit:
                                                      
        total stockholders' deficit
           -49,185,000 -50,402,000 -33,754,000 -27,258,000                                        
        total liabilities and stockholders' deficit
           220,670,000 207,142,000 220,196,000 225,477,000                                        
        liability related to settlement royalties
            47,731,000                                          
        working capital fund liability
            40,203,000                                          
        deferred revenue, net of current portion
              43,296,000 43,296,000 43,296,000  43,296,000 43,296,000 43,296,000 43,296,000 65,356,000 21,474,000 27,965,000 16,598,000 19,299,000 25,345,000 33,660,000 34,542,000 42,799,000 33,120,000 43,887,000 55,558,000 56,887,000 55,709,000 81,424,000 80,890,000 91,641,000 97,957,000 84,701,000 95,531,000 92,315,000 115,321,000   40,000,000        
        refund liability to customer
             40,018,000 39,927,000 40,093,000 40,346,000  40,794,000 40,992,000                                   
        liability related to sale of future royalties
              53,498,000 54,013,000 56,061,000  57,059,000 57,484,000 58,236,000 56,743,000 55,095,000 53,079,000 51,137,000 49,094,000 46,925,000                            
        liabilities and stockholders' (deficit) equity
                                                      
        embedded debt derivative
                760,000                                      
        stockholders' (deficit) equity:
                                                      
        total stockholders' (deficit) equity
               -30,584,000 -39,422,000  -14,352,000                                    
        total liabilities and stockholders' (deficit) equity
               241,703,000 234,998,000  276,858,000                                    
        revenues:
                                                      
        product revenue
               170,301,000 40,118,000                                      
        license, collaboration and other revenue
               24,322,000 1,928,000                                      
        total revenues
               194,623,000 42,046,000                                      
        cost of goods sold:
                                                      
        cost of product and other revenue
               38,107,000                                       
        amortization of intangible asset
               36,042,000 9,011,000                                      
        total cost of goods sold
               74,149,000 18,009,000                                      
        operating expenses:
                                                      
        research and development
               63,079,000 13,330,000                                      
        selling, general and administrative
               100,233,000 22,710,000                                      
        license
               3,237,000                                       
        restructuring
               181,000 169,000                                      
        total operating expenses
               166,730,000 37,073,000                                      
        income from operations
               -46,256,000 -13,036,000                                      
        other income:
                                                      
        interest expense
               -6,032,000 -1,410,000                                      
        other income
               887,000 -43,000                                      
        loss on extinguishment of debt
                                                      
        loss on termination of lease
               -524,000                                       
        net income before income taxes
               -51,925,000                                       
        net income
               -51,925,000 -14,489,000                                      
        comprehensive loss
               -51,925,000 -14,489,000                                      
        net income per share
                                                      
        basic and diluted
               -280 -80                                      
        weighted-average number of common shares outstanding:
                                                      
        revenues
                                                      
        cost of goods sold
                                                      
        product
                8,998,000                                      
        license expense
                864,000                                      
        weighted-average common shares outstanding:
                                                      
        condensed consolidated balance sheet
                                                      
        other non-current liabilities
                 66,889,000 12,643,000 12,161,000 74,313,000 66,889,000 77,743,000 82,525,000 77,393,000 85,363,000 53,617,000 60,611,000 40,971,000 41,508,000 30,385,000 30,223,000 30,060,000 29,898,000 29,736,000 29,573,000 41,000 69,000 21,000 22,000 23,000 24,000 26,000 27,000 7,000 9,000 12,000        
        inventory
                  20,604,000 21,762,000 40,039,000 36,272,000 39,422,000 38,195,000 33,688,000 37,898,000 44,806,000 61,017,000 88,242,000 104,603,000 111,854,000 116,349,000 115,987,000 122,137,000 115,206,000 114,245,000                   
        operating lease assets
                  27,958,000 29,158,000 30,337,000 31,494,000 32,631,000 33,852,000 23,192,000 24,442,000 25,670,000 26,876,000 25,721,000 26,884,000 28,026,000 29,038,000 30,141,000 31,224,000 32,399,000                    
        other intangible assets
                  63,074,000 72,084,000 81,095,000 90,106,000 99,116,000 108,127,000 117,138,000 126,148,000 135,159,000 144,170,000 151,378,000 157,484,000 282,112,000 291,212,000 300,312,000 309,413,000 318,513,000 328,153,000                   
        other assets
                  5,238,000 5,372,000 26,275,000 34,953,000 39,418,000 49,754,000 69,604,000 67,474,000 39,636,000 37,981,000 44,170,000 47,271,000 71,917,000 75,985,000 97,907,000 100,539,000 128,083,000 137,036,000 2,492,000 2,638,000 2,018,000 2,274,000 1,287,000 1,499,000 1,299,000 1,283,000 1,283,000 1,281,000 1,281,000 305,000 305,000 305,000 305,000 125,000 125,345 125,345 
        operating lease liabilities, net of current portion
                  27,418,000 28,961,000 30,683,000 31,733,000 32,581,000 33,703,000 20,257,000 21,735,000 23,185,000 24,621,000 23,494,000 24,862,000 26,207,000 27,528,000 28,811,000 30,069,000 31,304,000                    
        derivative liability
                  760,000 760,000 760,000 1,110,000 1,110,000 1,820,000 1,930,000 1,930,000 2,500,000 2,420,000 1,990,000 1,890,000 1,740,000 1,650,000                       
        accumulated other comprehensive gain
                  6,000 6,000    6,000    13,000                           
        current portion of refund liability to customer
                    13,681,000 14,247,000 16,500,000                                
        refund liability to customer, net of current portion
                    26,788,000 26,053,000 23,441,000                                
        accumulated other comprehensive loss
                    6,000 6,000 6,000  6,000 6,000 9,000  6,000 -9,000     -36,000 -261,000 -409,000 -459,000 -550,000  -181,000 -254,000 -179,000  -7,000  -27,000 -7,000 -27,000 -8,000 -56,000 -52,000 -8,216  
        available for sale securities
                          19,999,000 39,992,000 99,969,000 49,943,000  245,000 22,727,000 49,553,000 105,297,000 216,996,000 227,714,000 238,597,000 234,858,000 247,636,000 240,106,000 195,825,000 164,555,000 73,008,000 95,492,000 142,472,000 173,586,000 90,754,000 76,541,000 72,446,000 76,138,000 68,670,000   
        accrued expenses
                               129,071,000    150,917,000 94,616,000 81,012,000 54,947,000 52,441,000 21,427,000 28,851,000 34,272,000 30,261,000 17,615,000 15,789,000 10,994,000 8,893,000 3,491,000 4,512,000 4,864,000 3,490,000 3,277,593 4,042,007 
        deferred rent, net of current portion
                                   3,006,000 2,421,000 2,478,000 2,535,000 2,588,000 2,633,000 2,678,000     257,000        
        deferred tax liabilities
                                1,752,000 3,029,000 3,874,000 6,631,000                   
        debt
                                   15,000,000                   
        unbilled receivable
                                        281,000   33,823,000           
        short-term deferred rent
                                        194,000 182,000             
        deferred rent
                                          2,835,000 2,480,000 2,262,000 1,406,000         
        deferred offering costs
                                                 55,000     
        treasury stock
                                              -162,000 -162,000 -162,000 -161,000 -162,000 -79,000 -21,362  
        deferred revenue
                                            40,000,000 40,000,000         
        other liabilities
                                               10,000 10,000 9,000 32,000 34,000 29,532 30,434 
        liabilities, redeemable convertible preferred stock and stockholders' equity
                                                      
        redeemable convertible preferred stock; 0.00001 par value...
                                                      
        series a redeemable convertible preferred stock; 0 and 734,538 shares issued and outstanding at december 31, 2014 and december 31, 2013;
                                                      
        series b redeemable convertible preferred stock; 0 and 1,287,525 shares issued and outstanding at december 31, 2014 and december 31, 2013;
                                                      
        series c redeemable convertible preferred stock; 0 and 3,302,885 shares issued and outstanding at december 31, 2014 and december 31, 2013;
                                                      
        total redeemable convertible preferred stock
                                                      
        total liabilities, redeemable convertible preferred stock and stockholders' equity
                                                  110,995,000 120,170,000   
        series a redeemable convertible preferred stock; 0 and 734,538 shares issued and outstanding at september 30, 2014 and december 31, 2013;
                                                      
        series b redeemable convertible preferred stock; 0 and 1,287,525 shares issued and outstanding at september 30, 2014 and december 31, 2013;
                                                      
        series c redeemable convertible preferred stock; 0 and 3,302,885 shares issued and outstanding at september 30, 2014 and december 31, 2013;
                                                      
        investments
                                                    28,851,842 5,831,843 
        liabilities, redeemable convertible preferred stock and stockholders’ equity
                                                      
        current portion of capital lease obligation
                                                    3,939 3,911 
        capital lease obligation, net of current portion
                                                    6,369 7,364 
        series a redeemable convertible preferred stock; 0 and 734,538 shares issued and outstanding at june 30, 2014 and december 31, 2013;
                                                      
        series b redeemable convertible preferred stock; 0 and 1,287,525 shares issued and outstanding at june 30, 2014 and december 31, 2013;
                                                      
        series c redeemable convertible preferred stock; 0 and 3,302,885 shares issued and outstanding at june 30, 2014 and december 31, 2013;
                                                      
        stockholders’ equity
                                                      
        common stock; 0.00001 par value...
                                                    202 202 
        total stockholders’ equity
                                                    121,551,966 127,867,391 
        total liabilities, redeemable convertible preferred stock and stockholders’ equity
                                                    126,357,583 134,028,409 
        equipment
                                                     164,204 
        series a redeemable convertible preferred stock; 0 and 734,538 shares issued and outstanding at march 31, 2014 and december 31, 2013; (aggregate liquidation preference of 39,367,094 at december 31, 2013
                                                      
        series b redeemable convertible preferred stock; 0 and 1,287,525 shares issued and outstanding at march 31, 2014 and december 31, 2013;
                                                      
        series c redeemable convertible preferred stock; 0 and 3,302,885 shares issued and outstanding at march 31, 2014 and december 31, 2013; (aggregate liquidation preference of 97,202,997 at december 31, 2013
                                                      
        deficit accumulated during the development stage
                                                     -73,336,195 
      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-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 
                                                        
          operating activities:
                                                        
          net income
        -9,054,000  540,000 247,000 6,112,000                                            
          adjustments to reconcile net income to net cash from operating activities:
                                                        
          depreciation
        328,000 321,000 318,000 316,000 314,000 335,000 363,000 400,000 364,000                                        
          bad debt expense
        199,000 94,000 426,000 257,000 702,000                                            
          change in fair value of warrant liability
        -456,000 -2,262,000 -1,464,000 6,980,000 -155,000 1,675,000 856,000 -2,330,000 129,000                                        
          non-cash royalty revenue related to sale of future royalties
        -341,000 -443,000 -462,000 -494,000 -369,000 -505,000 -525,000 -474,000 -391,000  -487,000 -511,000 -425,000 -582,000 -431,000 -435,000 -329,000 -396,000 -309,000 -96,000 -20,000                            
          non-cash interest expense
        4,577,000 4,752,000 4,619,000 6,184,000 6,253,000 5,594,000 7,246,000 -97,000 326,000  335,000 481,000 502,000 654,000 551,000 670,000 246,000 313,000 313,000 310,000 229,000 279,000 383,000 435,000 437,000 278,000 169,000 170,000 169,000                    
          non-cash operating lease expense
        1,198,000 1,174,000 1,150,000 1,127,000 1,104,000  1,060,000 1,039,000 1,017,000  -266,000 -377,000 -578,000 -599,000 -620,000 -641,000 -557,000 -427,000 -450,000 -471,000 -494,000 -377,000 -496,000 -517,000 -647,000 -556,000 -576,000 -483,000 -614,000                    
          write-down of inventory
        3,216,000 1,860,000 530,000 -48,000 163,000 1,805,000 1,342,000 471,000 590,000  715,000 277,000 335,000 20,240,000 2,572,000 2,086,000 5,344,000 8,492,000 1,701,000 350,000 5,075,000 1,464,000 8,519,000 9,950,000 139,000                        
          gain on the sale of property and equipment
         -172,000                                            
          stock-based compensation expense
        3,668,000 3,199,000 3,221,000 2,676,000 2,187,000 1,697,000 1,646,000 2,072,000 2,360,000 1,514,000 1,824,000                              1,251,000 1,163,000 1,095,000 1,128,000 885,000 1,236,192 1,443,944 2,444,864 
          changes in operating assets and liabilities:
                                                        
          accounts receivable
        -15,704,000 19,098,000 6,160,000 -11,528,000 -27,872,000 -3,074,000 -2,405,000 -3,145,000 12,670,000 -16,698,000 -3,020,000 -687,000 21,399,000 -16,086,000 58,775,000 -17,287,000 -13,707,000 -1,185,000 -14,685,000 228,000 -8,380,000 -2,387,000 14,649,000 65,757,000 -66,008,000 -9,210,000 -766,000 19,547,000 -31,769,000 -144,000 -556,000 35,720,000 -1,636,000           -26,000 9,000 56,614 5,442 15,944 
          inventory
        -2,540,000 -17,418,000 6,899,000 -7,653,000 -4,953,000  -545,000 -14,926,000 -4,434,000  -1,590,000 3,481,000 7,347,000 18,388,000 246,000 6,406,000 -5,247,000 9,435,000 428,000 -16,517,000 -19,193,000 -252,000 12,095,000 2,483,000 -8,163,000 -577,000 -11,377,000 -1,124,000 -16,064,000                    
          prepaid expenses and other current assets
        170,000 1,560,000 2,501,000 1,306,000 2,212,000 2,088,000 5,523,000 -130,000 1,412,000 1,796,000 2,359,000 306,000 7,378,000 -8,750,000 8,570,000 -8,458,000 9,019,000 6,362,000 -28,321,000 1,033,000 2,268,000 -5,840,000 998,000 -1,379,000 -1,898,000 1,126,000 20,752,000 -12,654,000 1,317,000 -631,000 -1,532,000 2,682,000 -1,496,000 -2,396,000 7,222,000 -7,926,000 -1,093,000 1,691,000 48,000 -1,369,000 58,000 800,000 165,000 -775,000 -85,000 261,605 -230,071 -719,534 
          other long-term assets
        -749,000 -2,763,000 38,000 49,000 54,000 -3,000 173,000 1,065,000 -613,000 6,814,000 -2,299,000 -3,064,000 -2,812,000 -20,440,000 5,470,000 6,050,000 3,297,000 946,000 579,000 2,788,000 1,361,000 3,739,000 -6,575,000 11,000 46,000 1,772,000 -226,000 2,652,000 719,000 836,000 146,000   -987,000 75,000 -78,000 -1,000            
          accounts payable
        -7,792,000 10,419,000 -8,828,000 3,725,000 -2,234,000 2,394,000 -3,032,000 6,775,000 -7,501,000 4,503,000 2,311,000 -3,045,000 -9,013,000 18,921,000 -8,613,000 -1,449,000 -7,358,000 3,198,000 -13,813,000 3,792,000 -4,912,000 650,000 8,007,000 -25,449,000 20,470,000 -25,066,000 46,066,000 1,118,000 -20,746,000 8,031,000 7,889,000 -13,085,000 10,882,000 -1,707,000 -1,507,000 -4,871,000 13,044,000 -6,470,000 3,366,000 2,728,000 102,000        
          accrued expense and other current liabilities
        2,035,000 13,928,000 15,824,000 16,007,000 2,771,000 4,875,000 -3,126,000 519,000 -15,045,000 3,714,000 5,647,000                                      
          operating lease liabilities
        -1,422,000 -1,388,000 -1,364,000 -1,337,000 -1,310,000  -1,253,000 -1,228,000 -731,000  94,000 383,000 651,000 540,000 566,000 589,000 616,000 14,225,000 369,000 397,000 407,000 379,000 163,000 424,000 445,000 954,000 505,000 523,000 549,000                    
          deferred revenue
        1,815,000 -1,200,000 -1,651,000 4,291,000 1,241,000    695,000 -3,738,000 2,473,000 -3,782,000 -27,453,000 33,416,000 -1,277,000 15,190,000 -9,085,000 -3,007,000 -11,135,000 -6,377,000 -19,614,000 4,735,000 -3,079,000 -19,845,000 -10,597,000 -6,218,000 -38,834,000 -7,980,000 -10,730,000 -9,391,000 -22,865,000 -32,145,000 61,454,000 -20,866,000 157,289,000 40,000,000        
          other long-term liabilities
        -355,000 -365,000 -352,000 240,000 365,000 264,000 -2,990,000 -1,878,000 -1,600,000 1,536,000 -7,708,000                                      
          net cash from operating activities
        -21,207,000 31,129,000 28,105,000 22,345,000 -13,587,000 -4,466,000 -6,695,000 -10,066,000 -19,432,000 -2,308,000 -7,167,000 3,629,000 -17,538,000 -54,679,000 33,805,000 -30,660,000 -21,620,000 -62,808,000 -56,270,000 -63,141,000 -70,746,000 -30,782,000 -27,237,000 37,220,000 -89,589,000 -92,135,000 10,989,000 -38,366,000 -137,929,000 -73,699,000 -12,461,000 8,996,000 -20,330,000 -16,378,000 -54,617,000 24,364,000 -9,528,000 95,670,000 -28,243,000 -26,955,000 17,434,000 -9,031,000 -12,117,000 -8,347,000 -9,203,000 -5,602,934 -6,669,396 -6,007,670 
          capital expenditures
        -62,000 -77,000 -126,000 -18,000 -2,000 -141,956 
          free cash flows
        -21,269,000 31,129,000 28,028,000 22,219,000 -13,605,000 -4,466,000 -6,697,000 -10,066,000 -19,432,000 -2,308,000 -7,167,000 3,629,000 -17,538,000 -54,679,000 33,805,000 -30,660,000 -21,620,000 -62,808,000 -56,270,000 -63,141,000 -70,746,000 -30,782,000 -27,237,000 37,220,000 -89,589,000 -92,135,000 10,989,000 -38,366,000 -137,929,000 -73,699,000 -12,461,000 8,996,000 -20,330,000 -16,378,000 -54,617,000 24,364,000 -9,528,000 95,670,000 -28,243,000 -26,955,000 17,434,000 -9,031,000 -12,117,000 -8,347,000 -9,203,000 -5,602,934 -6,669,396 -6,149,626 
          investing activities:
                                                        
          purchases of equipment
        -62,000  -77,000 -126,000 -18,000  -2,000                                          
          proceeds from the sale of property and equipment
         172,000                                            
          net cash from investing activities
        -62,000 -7,877,000 -77,000 -126,000 154,000 -2,000 -2,000       -114,000 20,000,000 19,941,000 59,683,000 -49,937,000 -49,995,000 245,000 22,280,000 24,390,000 54,033,000 110,473,000 16,717,000 11,011,000 -3,568,000 12,434,000 -8,308,000 -44,959,000 -31,690,000 -92,303,000 22,306,000 45,567,000 29,787,000 -84,955,000 -14,455,000 -4,276,000 3,405,000 -7,637,000 -39,998,296 -23,074,748 5,358,044 
          financing activities:
                                                        
          proceeds from the issuance of debt
         10,000,000 8,000,000 37,000,000                                        
          payments of issuance costs related to blackrock credit agreement
         -63,000 -522,000 -750,000                                        
          proceeds from issuance of common stock, net of issuance costs
          1,542,000 64,907,000  1,662,000 18,740,000                                    35,000    
          proceeds from issuance of stock under employee stock purchase plan
        131,000  152,000 78,000  83,000 70,000                                        
          proceeds from the exercise of stock options
        20,000  961,000 178,000 482,000  14,000 141,000           405,000 409,000 412,000 195,000 365,000 92,000 58,000 314,000 183,000 204,000 930,000 110,000 68,000 -1,000 5,000 101,000 19,000 -3,000       
          repayment of wcf liability
        -492,000                                                
          repayment of liability related to settlement royalties
        -585,000                                                
          repayment of term debt
         -462,000 1,000 -374,000 -36,726,000                                        
          net cash from financing activities
        -926,000 -4,848,000 1,113,000 1,720,000 74,942,000 22,325,000 1,223,000 7,640,000 18,475,000 -1,290,000 50,000 -8,000,000 -15,966,000 -1,000 -32,937,000 -9,000 47,545,000 5,403,000 16,482,000 37,369,000 74,477,000 30,511,000 1,054,000 142,807,000 57,348,000 94,418,000 195,000 8,804,000 -14,447,000 85,000 354,000 212,000 95,911,000 5,243,000 63,785,000 45,466,000 1,746,000 3,529,000 2,329,000 -94,000 61,182,000 13,950,000 64,754,000 49,000 -48,000 -124,644 -1,181,211 105,753,855 
          increase in cash, cash equivalents and restricted cash
        -22,195,000 18,404,000 29,141,000 23,939,000 61,509,000                                            
          cash, cash equivalents and restricted cash — beginning of period
        186,543,000  53,550,000  44,579,000                                       
          cash, cash equivalents and restricted cash — end of period
        164,348,000  29,141,000 23,939,000 115,059,000  -5,474,000 -2,455,000 43,622,000  -7,117,000                                      
          non-cash financing activities
                                                        
          issuance of warrants in connection with blackrock credit agreement
         2,199,000 4,846,000                                        
          purchase of ipr&d asset included in accrued expenses and other current liabilities
        5,000,000                                                
          net loss
             -22,804,000 -20,039,000 -8,582,000 -17,985,000 614,000 -14,489,000 -11,833,000 -26,217,000 -7,552,000 -51,865,000 29,276,000 -62,421,000 -70,678,000 -59,544,000 -83,038,000 -69,580,000 -87,000,000 -59,959,000 -175,751,000 -60,747,000 -94,483,000 -54,585,000 -58,170,000 -72,421,000 -60,054,000 -26,047,000 -34,069,000 -23,418,000 12,280,000 -23,134,000 -21,517,000 -44,543,000 -37,862,000 -36,308,000 -35,779,000 -25,798,000 -19,475,000 -10,689,000 -10,695,000 -10,370,000 -9,348,562 -7,618,328 -9,697,110 
          adjustments to reconcile net loss to net cash from operating activities:
                                                        
          amortization of intangible asset
             9,010,000 9,011,000 9,010,000 9,011,000 9,010,000 9,011,000                                      
          non-cash research and development expense
                                                       
          non-cash loss on extinguishment of debt
              294,000                                       
          non-cash write-off on termination of lease
                                                        
          charge for purchase of ipr&d asset
                                                        
          change in excess inventory purchase commitments
                    -80,040,000 13,195,000 -773,000 18,015,000 -5,962,000 30,283,000 -8,945,000 14,810,000 -650,000                          
          change in fair value of embedded debt derivative
                                                        
          purchase of equipment
                      -114,000  -59,000      -2,529,000 -1,978,000 -1,928,000 -830,000 -307,000 -173,000 -296,000 -450,000 -597,000 -148,000 -427,000 -48,000 -1,256,000 -1,249,000 -109,000 -115,000 -27,000 -200,000 -21,000    
          purchase of ipr&d asset, including transaction costs
                                                        
          proceeds from the issuance of common stock, net of issuance costs
                     -1,000 20,000 -76,000 7,178,000 5,403,000 16,103,000 37,369,000 29,327,000 10,536,000 142,398,000 56,485,000 16,750,000   -1,000 38,000 -96,000 95,511,000 5,039,000 62,629,000 45,357,000 1,555,000 3,531,000 2,336,000 -297,000 61,166,000 13,955,000       
          proceeds from the sale of stock under employee stock purchase plan
                    34,000 43,000 367,000 379,000 367,000 649,000 451,000 195,000 188,000 265,000 -1,000 218,000 1,000 227,000 125,000 1,000          
          proceeds from the exercise of common stock options
                                                        
          cash, cash equivalents and restricted cash at beginning of the period
                                                        
          cash, cash equivalents and restricted cash at end of the period
                                                        
          supplemental cash flow information
                                                        
          cashless exercise of warrants in connection with blackrock credit agreement
                                                       
          cash paid for interest
                                                        
          unpaid issuance costs related to blackrock credit agreement
               522,000                                        
          amortization of right-of-use assets
                                                        
          loss on extinguishment of debt
                                                        
          change in firm purchase commitments
                                                        
          inventories
                                                        
          lease liabilities
                                                        
          purchase of property and equipment
                                                        
          supplemental disclosure of cash flow information:
                                                        
          non-cash write-off from termination of lease
                                                       
          decrease in cash, cash equivalents and restricted cash
              -5,474,000 -2,455,000 -957,000 -3,598,000 -7,117,000                                      
          depreciation expense
                                                32,000 35,000 31,000 19,000 16,000 12,908 11,974 8,118 
          interest expense related to sale of future royalties
                                                        
          accretion of interest expense and amortization of refund liability
                                                        
          royalty revenue from mtpc
                                                        
          collaboration revenue in connection with the termination of the otsuka agreement
                                                        
          r&d expense in connection with the termination of the otsuka agreement
                                                        
          write-off on termination of boston lease
                                                        
          provision of inventories
                                                        
          proceeds from refund liability to customer
                                                        
          principal payments on debt
                                                        
          non-cash interest expense related to sale of future royalties
                     -170,000 1,924,000 2,083,000 2,345,000 2,338,000 2,352,000 2,265,000 2,162,000                            
          non-cash collaboration revenue
                                                      
          proceeds from refund liabilities to customers
                     40,000,000                                
          proceeds from issuances of stock under employee stock purchase plan
                  50,000                                      
          repayments of term debt
                                                       
          depreciation and amortization
                   397,000 398,000 408,000 413,000 416,000 417,000 442,000 473,000 499,000 513,000 516,000 514,000 520,000 525,000 586,000 633,000 587,000 439,000 261,000 225,000 214,000 199,000 197,000 167,000 118,000 135,000 124,000 94,000          
          amortization of intangibles
                    9,011,000 9,011,000 9,011,000 9,010,000 9,011,000 9,011,000 9,011,000 9,010,000 9,011,000 7,208,000 6,106,000 9,101,000 9,100,000  9,101,000 9,100,000 9,100,000                    
          non-cash r&d expense
                    782,000                                    
          stock-based compensation
                    2,489,000 3,041,000 3,355,000 6,917,000 4,536,000 4,636,000 5,593,000 6,514,000 5,992,000 6,088,000 6,592,000 6,864,000 4,916,000 4,934,000 2,613,000 2,284,000 2,094,000 12,062,000 2,253,000 2,493,000 2,232,000     1,724,000 1,628,000          
          change in fair value of derivative liability
                     -350,000 -710,000 -110,000 -570,000 80,000 -54,000 100,000 150,000 90,000                        
          accrued expense
                    -25,047,000 -15,863,000 -3,739,000 -23,051,000 4,426,000 -39,779,000 30,805,000 -10,829,000 -4,877,000 12,428,000 -19,683,000 17,820,000 -4,209,000 1,825,000 -1,050,000 -10,626,000 -17,500,000 13,364,000 13,571,000 26,148,000 2,399,000 30,808,000 -7,287,000 -5,545,000 3,998,000 12,686,000 1,655,000          
          other non-current liabilities
                     16,900,000 -5,790,000 -5,839,000 -3,191,000                                
          payments on debt
                    -16,000,000            -15,000,000                    
          increase in cash, cash equivalents, and restricted cash
                    -33,504,000   -30,669,000 25,811,000 -57,405,000 -39,788,000 -5,772,000 23,672,000 59,412,000 -76,120,000 130,032,000 -31,996,000 24,563,000 35,574,000 24,471,000 -41,903,000 -56,897,000 -1,096,000 5,640,000 88,015,000                
          cash, cash equivalents, and restricted cash at beginning of the period
                    93,169,000 151,839,000 231,132,000 149,804,000 107,099,000 71,437,000                
          cash, cash equivalents, and restricted cash at end of the period
                    59,665,000 -54,680,000 868,000 -30,669,000 177,650,000 -57,405,000 -39,788,000 -5,772,000 254,804,000 59,412,000 -76,120,000 130,032,000 117,808,000 24,563,000 35,574,000 24,471,000 65,196,000 -56,897,000 -1,096,000 5,640,000 159,452,000                
          intangible asset impairment charge
                                                      
          amortization of premium/discount on investments
                         -4,000 -11,000 -16,000 -29,000   -24,000 -110,000 -208,000 -477,000 -534,000 -385,000 -253,000 -60,000 67,000 154,000 198,000 191,000 95,000 112,000 143,000 144,000 147,000 136,000 135,000 144,000 99,341   
          fair value step-up of inventory sold or written off
                         21,575,000 28,718,000 8,406,000                          
          operating lease assets
                                                        
          purchase of available for sale securities
                             -49,982,000       -51,778,000 -50,972,000 -72,867,000 -48,599,000   -61,170,000 -116,366,000 -14,871,000 -13,454,000          
          proceeds from the maturities of available for sale securities
                         20,000,000 20,000,000 60,000,000 245,000 22,500,000 26,919,000 25,000,000 78,691,000 63,178,000 57,288,000 66,473,000 56,330,000 52,130,000 43,750,000 29,628,000 24,490,000 37,225,000 60,277,000          
          proceeds from sale of future royalties
                         44,783,000                            
          unpaid offering costs
                         -55,000 -11,000 -103,000 171,000 25,000 -15,000 90,000                        
          cash paid for:
                                                        
          interest
                                                        
          (decrease) in cash, cash equivalents, and restricted cash
                                                        
          write-off of property and equipment
                                                        
          deferred income taxes
                                 -1,752,000 -1,277,000 -845,000 -2,757,000                    
          proceeds from sales of available for sale securities
                                 31,011,000 33,710,000 5,002,000 2,999,000 4,999,000                
          retirement of treasury stock
                                                      
          non-cash merger expense
                                                        
          deferred rent
                                     549,000 -45,000 -45,000 -41,000 -33,000 -33,000 25,000 355,000 218,000 856,000         30,434 
          acquisition of business, net of acquired cash and restricted cash
                                                        
          payments on capital lease obligations
                                     -6,000 -7,000 -5,000 -1,000 -1,000 -1,000 -1,000 -2,000 -1,000 -13,000 -3,000 -3,000 -2,000 -2,000 -1,000 -1,392 -967 -641 
          fair value of shares and equity awards issued in acquisition
                                                        
          fair value write-up of inventory sold
                                11,180,000 18,840,000 18,017,000 19,001,000 14,586,000                    
          amortization of intangible assets
                                                        
          fair value of warrants issued for license
                                                      
          write-down of inventory to net realizable value
                                  2,945,000 1,359,000 1,664,000                    
          unpaid follow-on offering costs
                                        95,000   127,000 10,000 -53,000 -66,000 111,000 20,000        
          loss on disposal of property and equipment
                                                       
          increase in cash and cash equivalents
                                         -19,443,000        -9,536,000 48,361,000 -4,893,000 -16,888,000 -45,725,874 -30,925,355 105,104,229 
          cash and cash equivalents at beginning of the period
                                         187,335,000          
          cash and cash equivalents at end of the period
                                         -19,443,000 -35,791,000 38,140,000 87,250,000 121,505,000 19,653,000          
          assets acquired under capital lease
                                                 12,000     
          stock-based compensation - equity awards
                                          2,152,000 2,506,000 2,016,000            
          unbilled receivable
                                          -281,000 33,823,000            
          purchases of available for sale securities
                                                -100,160,000 -29,097,000 -29,454,000 -5,980,000 -13,211,000    
          decrease in cash and cash equivalents
                                           38,140,000 -100,085,000  19,653,000 2,738,000 -6,339,000        
          stock-based compensation - warrants
                                            3,413,000            
          repurchase of treasury stock
                                                    -83,000 -57,638   
          payments received on promissory notes issued in exchange for shares of common stock
                                                        
          conversion of series a, series b and series c preferred stock into common stock
                                                        
          accretion of preferred stock to redemption value
                                                    -555   
          accrued expenses
                                                1,457,000        
          other liabilities
                                                188,000 2,000 3,000 -30,000 -1,000 -532   
          proceeds from maturities of available for sale securities
                                                15,314,000 14,757,000 25,205,000 9,585,000 5,595,000    
          proceeds from sale of stock under employee stock purchase plan
                                                        
          cash and cash equivalents at beginning of period
                                                49,778,000 32,780,000 -228 21,215,228 
          cash and cash equivalents at end of period
                                                43,439,000 -9,536,000 48,361,000 27,887,000 -16,888,000 -45,726,102 -30,925,355 126,319,457 
          non-cash financing activities:
                                                        
          accounts payable and accrued expenses
                                                 8,263,000 -2,884,000 1,897,000 378,000 2,079,500 -306,114 1,909,614 
          proceeds from employee stock purchase plan
                                                       
          unpaid initial public offering issuance costs
                                                     14,878,650 -1,047,418 1,168,768 
          proceeds from the issuance of common stock
                                                   50,000     
          proceeds from issuance of redeemable convertible preferred stock, net of issuance costs
                                                        
          unpaid follow-on offering issuance costs
                                                   55,000     
          gain on extinguishment of debt and other liabilities
                                                        
          amortization of debt issuance costs
                                                        
          other assets
                                                        
          proceeds from sale of available for sale securities
                                                        
          proceeds from issuance of 2012 series x preferred stock, net of issuance costs
                                                        
          proceeds from receipt of payment on promissory notes issued in exchange for shares of common stock
                                                       
          reclassification of 2012 series x preferred stock from debt to preferred stock
                                                        
          conversion of 2012 series x preferred stock into series c preferred stock
                                                        
          proceeds from maturities of short-term investments
                                                      1,245,000 5,500,000 
          purchases of investments
                                                        
          proceeds from issuance of preferred stock
                                                        
          preferred stock issuance costs
                                                        
          initial public offering issuance costs
                                                      -1,159,793 -9,199,504 
          proceeds from issuance of 2012 series x preferred stock
                                                        
          proceeds from issuance of common stock
                                                      911 114,954,000 
          issuance of series a preferred stock in settlement of convertible notes
                                                        
          amortization of debt discount and interest expense
                                                        
          gain on cancellation of preferred stock future tranche rights
                                                        
          issuance of 2007 series x preferred stock for licensing agreement
                                                        
          purchases of property and equipment
                                                       -141,956 
          proceeds from sale of short-term investments
                                                        
          purchases of short-term investments
                                                        
          debt issuance costs
                                                        
          proceeds from issuance of convertible debt
                                                        
          loss on extinguishment of 2007 series x preferred stock
                                                        
          book value of assets transferred in distribution of subsidiary
                                                        
          book value of liabilities transferred in distribution of subsidiary
                                                        
          exchange of convertible debt