7Baggers

Ultragenyx Pharmaceutical Inc
(NASDAQ:RARE) 

RARE stock logo

Ultragenyx Pharmaceutical Inc., a biopharmaceutical company, focuses on the identification, acquisition, development, and commercialization of novel products for the treatment of rare and ultra-rare genetic diseases in the United States. Its biologic products include Crysvita (burosumab), an antibod...

Founded: 2010
Full Time Employees: 740
Sector: Healthcare
Industry: Biotechnology

Share this website to your friends
• Market Cap:
• Exchange:
• Shs Outstanding:
• Employees:
• Beta:
• Return on Equity (ROE) ttm:
• Return on Assets (ROA) ttm:
• EPS ttm:
• Book value per Share:
• Cash per Share:
• Current ast per Share:
• P/E ttm:
• P/E forward:
• P/E ttm high:
• P/E ttm low:
• P/S ttm:
• P/B ttm:
• P/FCF ttm:
• PEG ratio:
• Cash Ratio ttm:
• Quick Ratio ttm:
• Current Ratio ttm:
• Gross Mgn ttm:
• EBITDA Mgn ttm:
• Operating Mgn ttm:
• Net Income Mgn ttm:
• Trailing Div yield:
• Forward Div yield:
• Payout Ratio ttm:
• Ex-Dividend date:
• Target Price High:
• Target Price Low:
• Target Price Mean:
• Number of Analysts:
• Debt Ratio ttm:
• Debt to Equity ttm:
• Total Net Debt:
At a glance:
Bull Thesis:
Bear Thesis:
Main Competitors:
Moat:
Income Statements:
Quarterly
Annual
    Unit: USD2026-03-31 2025-12-31 2025-09-30 2025-06-30 2025-03-31 2024-12-31 2024-09-30 2024-06-30 2024-03-31 2023-12-31 2023-09-30 2023-06-30 2023-03-31 2022-12-31 2022-09-30 2022-06-30 2022-03-31 2021-12-31 2021-09-30 2021-06-30 2021-03-31 2020-12-31 2020-09-30 2020-06-30 2020-03-31 2019-12-31 2019-09-30 2019-06-30 2019-03-31 2018-12-31 2018-09-30 2018-06-30 2018-03-31 2017-12-31 2017-09-30 2017-06-30 2017-03-31 2016-12-31 2016-09-30 2016-06-30 2016-03-31 2015-12-31 2015-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 2013-12-31 
                                                      
      revenues:
                                                      
      product sales
    89,000,000 101,683,000 94,993,000 80,817,000 91,507,000 71,870,000 77,251,000 73,805,000 62,489,000 51,656,000 42,349,000 42,179,000 44,229,000 28,908,000 32,503,000 30,832,000 26,684,000 20,208,000 21,950,000 18,346,000 16,513,000 12,960,000 11,215,000 8,066,000 6,479,000 7,170,000 4,215,000 4,902,000 3,934,000 3,464,000 2,748,000 2,275,000 1,315,000                  
      royalty revenue
    47,000,000 105,596,000 64,940,000 85,679,000 47,785,000 93,007,000 62,243,000 73,221,000 46,344,000 75,736,000 55,703,000 46,331,000 4,882,000                                      
      total revenues
    136,000,000 207,279,000 159,933,000 166,496,000 139,292,000 164,877,000 139,494,000 147,026,000 108,833,000 127,392,000 98,052,000 108,309,000 100,496,000 103,348,000 90,703,000 89,343,000 79,935,000 83,389,000 81,647,000 86,975,000 99,395,000 91,542,000 81,470,000 61,709,000 36,309,000 35,593,000 25,800,000 24,149,000 18,172,000 16,261,000 11,763,000 12,794,000 10,677,000                  
      yoy
    -2.36% 25.72% 14.65% 13.24% 27.99% 29.42% 42.27% 35.75% 8.30% 23.27% 8.10% 21.23% 25.72% 23.93% 11.09% 2.72% -19.58% -8.91% 0.22% 40.94% 173.75% 157.19% 215.78% 155.53% 99.81% 118.89% 119.33% 88.75% 70.20%                      
      qoq
    -34.39% 29.60% -3.94% 19.53% -15.52% 18.20% -5.12% 35.09% -14.57% 29.92% -9.47% 7.77% -2.76% 13.94% 1.52% 11.77% -4.14% 2.13% -6.13% -12.50% 8.58% 12.36% 32.02% 69.96% 2.01% 37.96% 6.84% 32.89% 11.75% 38.24% -8.06% 19.83%                   
      operating expenses:
                                                      
      cost of sales
    30,000,000 29,345,000 27,991,000 23,002,000 28,662,000 16,894,000 21,021,000 21,280,000 17,533,000 12,051,000 10,987,000 9,914,000 12,257,000 5,319,000 8,631,000 8,270,000 6,100,000 3,509,000 4,175,000 3,136,000 5,188,000 5,481,000 2,348,000 1,803,000 -3,503,000 5,107,000 2,683,000 766,000 452,000 507,000 273,000 141,000 225,000                  
      research and development
    187,000,000 203,280,000 216,212,000 164,736,000 165,772,000 187,766,000 170,109,000 161,503,000 178,487,000 160,557,000 157,245,000 164,949,000 165,698,000 170,808,000 237,297,000 154,529,000 143,155,000 123,013,000 113,417,000 113,205,000 147,518,000 131,100,000 87,314,000 80,709,000 112,961,000 83,061,000 100,144,000 96,045,000 78,105,000 71,618,000 70,041,000 76,835,000 75,504,000 61,527,000 60,412,000 58,436,000 51,269,000 50,746,000 48,711,000 43,332,000 40,415,000 44,565,000 29,704,000 23,104,000 17,364,000 13,521,000 12,854,000 11,239,000 8,353,000  
      selling, general and administrative
    88,000,000 87,937,000 86,620,000 86,646,000 87,797,000 82,495,000 80,351,000 80,604,000 78,160,000 76,833,000 74,917,000 81,403,000 76,646,000 72,849,000 69,841,000 68,137,000 67,312,000 59,431,000 53,883,000 53,410,000 53,258,000 51,042,000 42,123,000 42,252,000 47,516,000 41,877,000 41,006,000 39,812,000 38,829,000 34,476,000 31,095,000 30,718,000 31,435,000                  
      total operating expenses
    305,000,000 320,562,000 330,823,000 274,384,000 282,231,000 287,155,000 271,481,000 263,387,000 274,180,000 249,441,000 243,149,000 256,266,000 254,601,000 248,976,000 315,769,000 230,936,000 216,567,000 185,953,000 171,475,000 169,751,000 205,964,000 187,623,000 131,785,000 124,764,000 156,974,000 130,045,000 143,833,000 136,623,000 117,386,000 106,601,000 101,409,000 107,694,000 107,164,000 99,248,000 83,911,000 78,441,000 69,954,000 70,554,000 65,894,000 58,070,000 53,622,000 56,158,000 39,936,000 30,142,000 21,502,000 16,943,000 15,835,000 13,661,000 10,339,000  
      income from operations
    -169,000,000 -113,283,000 -170,890,000 -107,888,000 -142,939,000 -122,278,000 -131,987,000 -116,361,000 -165,347,000 -122,049,000 -145,097,000 -147,957,000 -154,105,000 -145,628,000 -225,066,000 -141,593,000 -136,632,000 -102,564,000 -89,828,000 -82,776,000 -106,569,000 -96,081,000 -50,315,000 -63,055,000 -120,665,000 -94,452,000 -118,033,000 -112,474,000 -99,214,000 -90,340,000 -89,646,000 -94,900,000 -96,487,000 -96,834,000 -83,713,000 -78,441,000 -69,954,000 -70,549,000 -65,783,000 -58,053,000 -53,622,000 -56,158,000 -39,936,000 -30,142,000 -21,502,000 -16,943,000 -15,835,000 -13,661,000 -10,339,000  
      yoy
    18.23% -7.36% 29.47% -7.28% -13.55% 0.19% -9.04% -21.35% 7.30% -16.19% -35.53% 4.49% 12.79% 41.99% 150.55% 71.06% 28.21% 6.75% 78.53% 31.28% -11.68% 1.72% -57.37% -43.94% 21.62% 4.55% 31.67% 18.52% 2.83% -6.71% 7.09% 20.98% 37.93% 37.26% 27.26% 35.12% 30.46% 25.63% 64.72% 92.60% 149.38% 231.45% 152.20% 120.64% 107.97%      
      qoq
    49.18% -33.71% 58.40% -24.52% 16.90% -7.36% 13.43% -29.63% 35.48% -15.88% -1.93% -3.99% 5.82% -35.30% 58.95% 3.63% 33.22% 14.18% 8.52% -22.33% 10.92% 90.96% -20.20% -47.74% 27.75% -19.98% 4.94% 13.37% 9.82% 0.77% -5.54% -1.64% -0.36% 15.67% 6.72% 12.13% -0.84% 7.25% 13.32% 8.26% -4.52% 40.62% 32.49% 40.18% 26.91% 7.00% 15.91% 32.13%   
      operating margin %
    -124.26% -54.65% -106.85% -64.80% -102.62% -74.16% -94.62% -79.14% -151.93% -95.81% -147.98% -136.61% -153.34% -140.91% -248.14% -158.48% -170.93% -122.99% -110.02% -95.17% -107.22% -104.96% -61.76% -102.18% -332.33% -265.37% -457.49% -465.75% -545.97% -555.56% -762.10% -741.75% -903.69% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity%  
      interest income
    6,000,000 6,512,000 5,863,000 5,794,000 6,831,000 9,550,000 10,731,000 7,401,000 8,824,000 8,553,000 5,881,000 5,964,000 6,290,000 6,198,000 3,483,000 899,000 494,000 440,000 408,000 441,000 639,000 984,000 1,338,000 1,797,000 2,919,000 2,770,000 3,319,000 4,063,000 3,086,000 2,627,000 2,730,000 2,448,000 1,737,000 724,000 1,117,000 1,151,000 1,082,000 912,000 922,000 971,000 984,000 918,000 673,000 456,000 273,000 195,000 171,000 149,000 93,000  
      non-cash interest expense on liabilities for sales of future royalties
    -21,000,000 -19,469,000 -14,148,000 -14,041,000 -14,342,000 -15,522,000 -15,712,000 -15,960,000 -15,847,000 -17,328,000 -17,665,000 -15,375,000 -15,636,000                                      
      income before income taxes
    -184,000,000 -127,686,000 -179,540,000 -114,004,000 -149,770,000 -133,404,000 -133,213,000 -130,740,000 -170,229,000 -126,892,000 -158,999,000 -159,096,000 -163,477,000 -153,284,000 -238,819,000 -157,860,000 -151,762,000 -122,438,000 -72,816,000 -121,965,000 -135,762,000 -23,941,000 -68,532,000 25,730,000 -118,616,000 -91,244,000 -112,701,000 -98,959,000 -96,540,000 -87,700,000 -87,063,000 -52,626,000 30,292,000 -97,948,000 -79,223,000 -72,877,000               
      provision for income taxes
    -1,000,000 -782,500 -873,000 -947,000 -1,310,000 -404,000 -303,000 -858,000 -455,000 -469,250 -650,000 -732,000 -495,000 1,451,000 -6,287,000 -302,000 -558,000 -20,000 -182,000 -463,000 -379,000 -70,000 -313,000 -415,000                           
      net income
    -185,000,000 -128,556,000 -180,413,000 -114,951,000 -151,080,000 -133,385,000 -133,516,000 -131,598,000 -170,684,000 -123,190,000 -159,649,000 -159,828,000 -163,972,000 -151,833,000 -245,106,000 -158,162,000 -152,320,000 -122,458,000 -72,998,000 -122,428,000 -136,141,000 -24,011,000 -68,845,000 25,315,000 -119,025,000 -93,805,000 -112,994,000 -99,172,000 -96,756,000 -87,826,000 -87,310,000 -52,728,000 30,253,000 -81,731,000 -79,227,000 -72,891,000 -68,290,000 -71,287,000 -64,907,000 -56,923,000 -52,757,000 -55,220,000 -39,232,000 -29,787,000 -21,379,000 -16,738,000 -15,849,000 -13,585,000 -13,630,000  
      yoy
    22.45% -3.62% 35.12% -12.65% -11.49% 8.28% -16.37% -17.66% 4.09% -18.86% -34.87% 1.05% 7.65% 23.99% 235.77% 29.19% 11.88% 410.01% 6.03% -583.62% 14.38% -74.40% -39.07% -125.53% 23.02% 6.81% 29.42% 88.08% -419.82% 7.46% 10.20% -27.66% -144.30% 14.65% 22.06% 28.05% 29.44% 29.10% 65.44% 91.10% 146.77% 229.91% 147.54% 119.26% 56.85%      
      qoq
    43.91% -28.74% 56.95% -23.91% 13.27% -0.10% 1.46% -22.90% 38.55% -22.84% -0.11% -2.53% 7.99% -38.05% 54.97% 3.84% 24.39% 67.76% -40.37% -10.07% 466.99% -65.12% -371.95% -121.27% 26.89% -16.98% 13.94% 2.50% 10.17% 0.59% 65.59% -274.29% -137.02% 3.16% 8.69% 6.74% -4.20% 9.83% 14.03% 7.90% -4.46% 40.75% 31.71% 39.33% 27.73% 5.61% 16.67% -0.33%   
      net income margin %
    -136.03% -62.02% -112.81% -69.04% -108.46% -80.90% -95.71% -89.51% -156.83% -96.70% -162.82% -147.57% -163.16% -146.91% -270.23% -177.03% -190.55% -146.85% -89.41% -140.76% -136.97% -26.23% -84.50% 41.02% -327.81% -263.55% -437.96% -410.67% -532.45% -540.10% -742.24% -412.13% 283.35% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity% -Infinity%  
      net income per share
    -1.84 -1.28 -1.81 -1.17 -1.57 -1.38 -1.4 -1.52 -2.03 -1.44 -2.23 -2.25 -2.33 -2.16 -3.5 -2.26 -2.19 -1.79 -1.08  -2.03 -0.34 -1.13  -2.05 -1.62 -1.96 -1.72  -1.75 -1.74 -1.06  -1.9 -1.87 -1.72 -1.63 -1.75 -1.64 -1.46 -1.35 -1.45 -1.03 -0.83 -0.63 -0.52 -0.5 -0.45 -0.85  
      shares used in computing net loss per share, basic and diluted
    100.6 -98,186,334.4 99,771,297 98,460,445 96,288,650 1,726,961 95,493,996 86,580,516 84,286,292                                          
      change in fair value of equity investments
     128,000 678,000 -9,000 -157,000 -1,548,000 678,000 -3,991,000 3,746,000 1,889,000 -1,419,000 261,000 -334,000 1,840,000 -1,626,000 -10,184,000 -9,329,000 -16,100,000 25,702,000 -31,046,000 -20,619,000                              
      other income
     -934,000 -1,043,000 2,140,000 837,000 -89,250 3,077,000  -1,605,000    308,000    289,000 -410,000 -415,000 -67,000  299,000 547,000 217,000 -456,000 154,000 -153,000 -376,000 -412,000 13,000 -147,000 -496,000 -4,958,000 -1,838,000 3,373,000 4,413,000 582,000 -1,615,000 -46,000 159,000 -119,000 20,000 31,000 -101,000 -150,000 10,000 -185,000 -73,000   
      collaboration and license
               19,799,000 51,385,000 68,382,000 52,827,000 53,088,000 48,413,000 58,440,000 55,048,000 63,940,000 79,010,000 75,015,000 66,924,000 50,161,000 27,215,000 28,423,000 21,585,000 19,247,000 14,238,000 12,797,000 9,015,000 10,519,000 9,362,000                  
      other expense
           -1,829,000  2,043,000 -699,000 -1,989,000  -436,500 -1,105,000 -930,000     -795,000                            -3,384,000  
      weighted-average shares used for eps calculation
              71,664,493 70,897,991 70,368,478 69,914,225 70,054,173 69,925,358 69,516,668 67,795,540 67,875,363  67,102,342  60,687,177                            
      non-cash collaboration royalty revenue
                 6,058,000 5,373,000 5,423,000 4,838,000 4,741,000 4,649,000 4,689,000 3,872,000 3,567,000 3,331,000 3,482,000 2,615,000                          
      non-cash interest expense on liabilities related to the sale of future royalties
                 -6,785,250 -14,505,000                                    
      non-cash interest expense on liability related to the sale of future royalties
                   -6,052,000 -6,584,000 -3,804,000 -8,683,000 -8,517,000 -8,418,000 -8,198,000 -8,582,000 -8,429,000 -8,082,000                          
      net income per share
    -1.84 -1.28 -1.81 -1.17 -1.57 -1.38 -1.4 -1.52 -2.03 -1.44 -2.23 -2.25 -2.33 -2.16 -3.5 -2.26 -2.19 -1.79 -1.08  -2.03 -0.34 -1.13  -2.05 -1.62 -1.96 -1.72  -1.75 -1.74 -1.06  -1.9 -1.87 -1.72 -1.63 -1.75 -1.64 -1.46 -1.35 -1.45 -1.03 -0.83 -0.63 -0.52 -0.5 -0.45 -0.85  
      basic
                       -1.81    0.42     -1.82    0.63                  
      diluted
                       -1.81    0.41     -1.82    0.62                  
      weighted-average shares used for eps calculation
              71,664,493 70,897,991 70,368,478 69,914,225 70,054,173 69,925,358 69,516,668 67,795,540 67,875,363  67,102,342  60,687,177                            
      basic
                       67,607,752    59,995,617                           
      diluted
                       67,607,752    61,146,231                           
      change in fair value of investments in equity securities
                         22,837,000 -11,520,000                            
      change in fair value of investment in arcturus equity securities
                           95,200,000 7,668,000 1,419,000 2,166,000 9,828,000                       
      benefit from income taxes
                            -409,000 -2,561,000 -293,000 -213,000 -216,000 -126,000 -247,000 -102,000 -39,000                  
      shares used in computing net income per share, basic and diluted
                            57,995,999 414,889 57,707,694 57,519,308  327,334 50,319,772 49,819,528  230,722 42,471,606 42,346,830 41,841,612 9,796,248.5 39,551,923 39,028,701 38,970,151          
      gain from sale of priority review vouchers
                                   40,322,000                   
      gain from sale of priority review voucher
                                    130,000,000                  
      shares used in computing net income per share:
                                                      
      basic
                                53,209,215    48,190,511                  
      diluted
                                53,209,215    49,077,742                  
      other income, net:
                                                      
      revenue
                                     49,500 198,000   5,000 111,000 17,000           
      general and administrative
                                     15,547,250 23,499,000 20,005,000 18,685,000 19,808,000 17,183,000 14,738,000 13,207,000 11,593,000 10,232,000 7,038,000 4,138,000 3,422,000 2,981,000 2,422,000 1,986,000  
      total other income
                                     2,929,500 4,490,000 5,564,000 1,664,000 -703,000 876,000 1,130,000 865,000 938,000 704,000 355,000 123,000 205,000 -14,000 76,000 -3,291,000  
      income tax provision
                                     -4,500 -4,000 -14,000               
      net income attributable to common stockholders
                                             -55,220,000 -39,232,000 -29,787,000 -21,379,000 -16,738,000 -15,849,000 -13,585,000   
      shares used in computing net income per share attributable to common stockholders, basic and diluted
                                             696,005 38,268,632 35,937,442 34,008,830 1,058,621 31,631,385 30,055,943   
      interest expense
                                                      
      net loss attributable to common stockholders
                                                    -18,438,000  
      shares used in computing net loss per share attributable to common stockholders, basic and diluted
                                                    21,582,435  
    Balance Sheets:
    Quarterly
    Annual
      Unit: USD2026-03-31 2025-12-31 2025-09-30 2025-06-30 2025-03-31 2024-12-31 2024-09-30 2024-06-30 2024-03-31 2023-12-31 2023-09-30 2023-06-30 2023-03-31 2022-12-31 2022-09-30 2022-06-30 2022-03-31 2021-12-31 2021-09-30 2021-06-30 2021-03-31 2020-12-31 2020-09-30 2020-06-30 2020-03-31 2019-12-31 2019-09-30 2019-06-30 2019-03-31 2018-12-31 2018-09-30 2018-06-30 2018-03-31 2017-12-31 2017-09-30 2017-06-30 2017-03-31 2016-12-31 2016-09-30 2016-06-30 2016-03-31 2015-12-31 2015-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 2013-12-31 
                                                        
        assets
                                                        
        current assets:
                                                        
        cash and cash equivalents
      175,000,000 421,000,000 202,510,000 176,306,000 127,055,000 173,729,000 150,619,000 480,693,000 112,250,000 213,584,000 72,575,000 102,059,000 85,768,000 132,944,000 391,651,000 159,868,000 153,988,000 307,584,000 197,538,000 290,875,000 383,794,000 713,526,000 197,486,000 335,639,000 298,190,000 433,584,000 122,577,000 131,337,000 269,712,000 113,432,000 82,956,000 110,854,000 226,730,000 100,488,000 60,407,000 90,751,000 159,501,000 161,120,000 142,280,000 55,069,000 70,763,000 93,569,000 166,686,000 52,351,000 178,040,000 24,324,000 53,387,000 17,452,000 55,447,000 7,427,000 
        marketable securities
      238,000,000 259,000,000                                                 
        accounts receivable
      121,000,000 158,000,000 112,543,000 124,464,000 98,839,000 121,801,000 93,301,000 105,982,000 100,253,000 73,390,000 79,263,000 70,523,000 42,991,000 40,445,000 31,164,000 37,207,000 28,369,000 28,432,000 25,383,000 24,720,000 25,032,000 23,093,000 27,762,000 14,893,000 29,327,000 32,844,000 23,121,000 20,901,000 15,628,000 12,740,000 9,155,000 17,425,000 3,671,000 5,172,000                 
        inventory
      55,000,000 52,000,000 52,200,000 46,498,000 46,031,000 45,007,000 43,334,000 40,137,000 35,907,000 33,969,000 31,802,000 28,256,000 26,616,000 26,766,000 21,849,000 21,079,000 17,809,000 16,231,000 15,191,000 15,083,000 12,462,000 13,048,000 14,457,000 11,061,000 11,375,000 11,546,000 14,138,000 13,632,000 10,948,000 7,065,000 5,556,000 3,342,000 2,068,000 757,000                 
        prepaid expenses and other assets
      68,000,000 61,000,000 53,215,000 61,241,000 59,845,000 40,290,000                                             
        total current assets
      657,000,000 951,000,000 643,206,000 719,788,000 699,155,000 817,123,000 799,608,000 964,640,000 595,967,000 732,184,000 599,188,000 702,137,000 766,336,000 883,899,000 1,012,668,000 678,542,000 707,519,000 856,604,000 846,884,000 949,492,000 1,070,936,000 1,295,304,000 872,003,000 906,039,000 894,318,000 851,017,000 613,486,000 699,431,000 786,887,000 522,369,000 567,480,000 604,743,000 581,580,000 269,583,000 390,903,000 419,794,000 444,685,000 401,695,000 416,785,000 411,084,000 430,234,000 450,207,000 460,707,000 336,530,000 350,514,000 193,416,000 206,741,000 158,216,000 169,636,000 55,225,000 
        property, plant, and equipment
      239,000,000 244,000,000 249,961,000 255,763,000 260,906,000 265,929,000 272,448,000 278,707,000 285,111,000 290,566,000 296,811,000 288,990,000 277,873,000 259,726,000 234,614,000 207,381,000 177,073,000 141,247,000 119,069,000 104,568,000  73,515,000                             
        intangible assets
      174,000,000 176,000,000 172,943,000 174,733,000 176,524,000 178,314,000 164,942,000 166,243,000 165,045,000 166,271,000 157,302,000 158,237,000 159,171,000 160,105,000 158,401,000 159,196,000 159,992,000 130,788,000 130,869,000 130,950,000 131,031,000 131,113,000 131,194,000 131,275,000 129,000,000 129,000,000 129,020,000 129,069,000 129,086,000 129,223,000 130,232,000 132,776,000 137,122,000 141,545,000                 
        goodwill
      44,000,000 44,000,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000 44,406,000                 
        other assets
      61,000,000 60,000,000 57,862,000 60,121,000 62,373,000 62,680,000 41,365,000 54,700,000 47,727,000 47,616,000 27,896,000 26,489,000 22,259,000 16,846,000 18,285,000 21,144,000 21,218,000 20,558,000 16,419,000 12,668,000 8,929,000 8,812,000 5,092,000 2,627,000 4,862,000 3,471,000 3,111,000 3,181,000 2,660,000 3,514,000 3,199,000 3,239,000 1,574,000 1,315,000 1,345,000 1,736,000 1,762,000 1,837,000 1,868,000 1,446,000 2,063,000 595,000 734,000 790,000 781,000 774,000 825,000 1,129,000 550,000 2,648,000 
        total assets
      1,296,000,000 1,532,000,000 1,190,445,000 1,306,265,000 1,311,927,000 1,503,456,000 1,538,363,000 1,618,437,000 1,307,080,000 1,491,013,000 1,238,140,000 1,311,310,000 1,383,404,000 1,545,444,000 1,618,474,000 1,320,627,000 1,384,029,000 1,522,397,000 1,484,801,000 1,512,444,000 1,597,763,000 1,759,555,000 1,268,385,000 1,314,041,000 1,233,140,000 1,135,496,000 879,944,000 958,927,000 1,007,759,000 719,558,000 765,145,000 806,022,000 817,350,000 490,753,000 435,047,000 497,542,000 545,822,000 540,626,000 515,166,000 481,951,000 524,184,000 559,569,000 602,130,000 343,004,000 355,840,000 197,967,000 210,931,000 162,586,000 172,707,000 59,649,000 
        liabilities, noncontrolling interest and stockholders' equity
                                                        
        current liabilities:
                                                        
        accounts payable
      42,000,000 31,000,000 40,573,000 34,242,000 47,450,000 38,756,000 35,990,000 59,807,000 40,972,000 42,114,000 33,357,000 42,115,000 58,981,000 43,274,000 23,533,000 34,213,000 23,685,000 17,138,000 15,575,000 21,790,000 15,744,000 12,923,000 10,850,000 9,014,000 14,405,000 12,871,000 13,460,000 8,743,000 12,664,000 12,275,000 8,198,000 10,314,000 7,569,000 8,886,000 9,288,000 11,876,000 8,345,000 5,364,000 6,616,000 6,954,000 6,012,000 2,942,000 4,422,000 10,171,000 5,755,000 4,857,000 4,161,000 3,590,000 3,495,000 1,437,000 
        accrued liabilities
      194,000,000 265,000,000 220,526,000 180,792,000 173,007,000 240,973,000 185,028,000 154,421,000 149,133,000 196,486,000 178,622,000 167,656,000 144,404,000 204,678,000 189,051,000 170,355,000 126,356,000 145,555,000 109,660,000 91,060,000 82,699,000 108,491,000 79,653,000 71,887,000 67,719,000 83,194,000 69,557,000 59,264,000 48,957,000 62,450,000 58,483,000 55,735,000 49,291,000 61,427,000 54,278,000 50,130,000 42,773,000 54,554,000 43,487,000 24,714,000 23,565,000 24,784,000 20,148,000 12,716,000 8,398,000 7,575,000 6,831,000 5,278,000 3,238,000 4,406,000 
        liabilities for sales of future royalties
      72,000,000 69,000,000 65,545,000 63,863,000 57,376,000 49,847,000 48,731,000 46,921,000 42,689,000 29,242,000 29,932,000 23,724,000 3,533,000 875,439,000                                     
        other liabilities
      17,000,000 7,000,000 1,236,000 2,581,000 3,348,000 4,280,000 4,835,000 15,197,000 14,479,000 12,205,000 10,230,000 10,392,000 9,257,000 4,820,000 4,050,000 3,768,000 3,392,000 1,005,000 471,000           4,759,000 4,702,000 4,836,000 4,944,000 5,119,000 5,228,000 5,414,000 5,589,000 6,393,000 8,845,000 6,073,000 4,480,000 561,000 634,000 684,000 478,000 505,000 533,000 560,000 182,000 200,000 
        total current liabilities
      325,000,000 384,000,000 340,022,000 293,244,000 291,668,000 344,153,000 285,008,000 272,866,000 245,575,000 280,437,000 253,978,000 244,379,000 218,179,000 261,210,000 227,361,000 220,636,000 167,231,000 181,368,000 135,933,000 127,067,000 127,044,000 189,609,000 201,186,000 219,729,000 196,858,000 103,300,000 90,307,000 75,006,000 66,880,000 74,725,000 66,681,000 66,049,000 57,583,000 71,014,000 64,261,000 62,675,000 51,755,000 60,259,000 50,431,000 31,983,000 29,880,000 27,918,000 24,733,000 23,042,000 14,243,000 12,517,000 11,072,000 8,943,000 6,811,000 5,921,000 
        deferred tax liabilities
      30,000,000 30,000,000 30,058,000 30,058,000 30,058,000 30,058,000 30,058,000 30,058,000 30,058,000 30,058,000 31,667,000 31,667,000 31,667,000 31,667,000 33,306,000 33,306,000 33,306,000 33,306,000 33,306,000 33,306,000 33,306,000 33,306,000 33,306,000 33,306,000 33,306,000 33,306,000 31,166,000 31,166,000 31,166,000 31,166,000 31,166,000 31,166,000 31,166,000 31,166,000                 
        total liabilities
      1,525,000,000 1,605,000,000 1,174,286,000 1,147,979,000 1,160,681,000 1,241,159,000 1,184,536,000 1,186,019,000 1,166,816,000 1,215,599,000 1,206,426,000 1,182,280,000 1,162,923,000 1,192,950,000 1,149,645,000 642,554,000 587,605,000 599,836,000 551,127,000 540,273,000 543,181,000 605,180,000 602,194,000 618,454,000 623,994,000 481,732,000 152,679,000 139,140,000 121,030,000 110,650,000 102,549,000 102,051,000 93,693,000 107,299,000 69,489,000 68,089,000 57,344,000 66,652,000 59,276,000 38,056,000 34,360,000 28,479,000 25,367,000 23,726,000 14,721,000 13,022,000 11,605,000 9,503,000 6,993,000 9,540,000 
        noncontrolling interest
      7,000,000 7,000,000 7,000,000 7,000,000 7,000,000 7,000,000 7,000,000                                            
        stockholders’ equity
                                                        
        preferred stock, par value of 0.001 per share—25.0 shares authorized; nil outstanding in 2026 and in 2025
                                                        
        common stock
        96,000 96,000 94,000 92,000 92,000 92,000 83,000 82,000    70,000    69,000    67,000    58,000    51,000    44,000    41,000    39,000 39,000 36,000 36,000 32,000 32,000 30,000 30,000  
        treasury stock
      -10,000,000 -8,000,000 -7,991,000 -7,991,000 -7,566,000 -3,593,000 -3,555,000 -3,395,000 -3,332,000 -432,000 -381,000 -381,000 -356,000                                      
        deferred compensation obligation
      10,000,000 8,000,000 7,991,000 7,991,000 7,566,000 3,593,000 3,555,000 3,395,000 3,332,000 432,000 381,000 381,000 356,000                                      
        additional paid-in capital
      4,481,000,000 4,451,000,000 4,411,531,000 4,374,333,000 4,252,417,000 4,212,692,000 4,169,298,000 4,123,364,000 3,698,957,000 3,662,346,000 3,298,357,000 3,236,879,000 3,169,371,000 3,140,019,000 3,108,170,000 3,071,000,000 3,028,829,000 2,997,497,000 2,884,695,000 2,850,016,000 2,810,176,000 2,773,195,000 2,260,682,000 2,220,963,000 2,162,667,000 2,086,863,000 2,066,483,000 2,045,685,000 2,013,859,000 1,639,773,000 1,605,412,000 1,559,722,000 1,526,972,000 1,221,762,000 1,123,861,000 1,105,348,000 1,087,028,000 1,003,561,000 915,084,000 837,943,000 827,109,000 816,578,000 806,202,000 509,658,000 501,597,000 324,128,000 321,714,000 259,555,000 258,599,000  
        accumulated other comprehensive loss
         -268,000 -341,000      -2,244,000 -3,098,000 -3,967,000 -6,573,000 -10,222,000 -8,914,000 -6,554,000        -1,545,000 -147,000 -71,000  -148,000 -633,000 -410,000 -654,000 -946,000         -868,000 -39,000 -209,000 -94,000      
        accumulated deficit
      -4,717,000,000 -4,532,000,000 -4,403,288,000 -4,222,875,000 -4,107,924,000 -3,956,844,000 -3,823,459,000 -3,689,943,000 -3,558,345,000 -3,387,661,000 -3,264,471,000 -3,104,822,000 -2,944,994,000 -2,781,022,000 -2,629,189,000 -2,384,083,000 -2,225,921,000 -2,073,601,000 -1,951,143,000 -1,878,145,000 -1,755,717,000 -1,619,576,000 -1,595,565,000 -1,526,720,000 -1,552,035,000 -1,433,010,000 -1,339,205,000 -1,226,211,000 -1,127,039,000 -1,030,283,000 -942,457,000 -855,147,000 -802,419,000 -832,672,000 -750,941,000 -671,714,000 -598,823,000 -530,533,000 -459,246,000 -394,339,000 -337,416,000 -284,659,000 -229,439,000 -190,207,000 -160,420,000 -139,041,000 -122,302,000 -106,454,000   
        total stockholders’ equity
      -236,000,000 -80,000,000 9,159,000 151,286,000 144,246,000 255,297,000 346,827,000 432,418,000 140,264,000 275,414,000 31,714,000 129,030,000 220,481,000 352,494,000 468,829,000 678,073,000 796,424,000 922,561,000 933,674,000 972,171,000 1,054,582,000 1,154,375,000 666,191,000 695,587,000 609,146,000 653,764,000 727,265,000 819,787,000 886,729,000 608,908,000 662,596,000 703,971,000 723,657,000 383,454,000 365,558,000 429,453,000 488,478,000 473,974,000 455,890,000 443,895,000 489,824,000 531,090,000 576,763,000 319,278,000 341,119,000 184,945,000 199,326,000 153,083,000 165,714,000  
        total liabilities, noncontrolling interest and stockholders’ equity
      1,296,000,000 1,532,000,000 1,190,445,000 1,306,265,000 1,311,927,000 1,503,456,000 1,538,363,000                                            
        liabilities and stockholders' equity
                                                        
        lease liabilities
       12,000,000 12,142,000 11,766,000 10,487,000 10,297,000 10,424,000 11,717,000 12,781,000 12,595,000 12,067,000 10,884,000 11,261,000 11,779,000 11,819,000 11,631,000 11,323,000 11,066,000 10,698,000 10,305,000 9,380,000 8,976,000                             
        commitments and contingencies
                                                        
        preferred stock, par value of 0.001 per share—25.0 shares authorized; nil outstanding in 2025 and in 2024
                                                        
        accumulated other comprehensive income
       1,000,000 820,000   -643,000 896,000 -1,095,000 -431,000 647,000        -1,404,000 54,000 232,000 56,000 689,000 1,013,000 1,284,000    255,000      -5,680,000 -7,404,000 -4,223,000 231,000 905,000 12,000 252,000 92,000     -174,000 -118,000 -48,000 -46,000 11,000 
        marketable debt securities
        222,738,000 311,279,000 367,385,000 436,296,000 470,989,000 283,128,000 299,830,000 363,625,000 369,519,000 449,922,000 543,586,000 614,818,000 497,024,000 382,927,000 444,333,000 432,612,000 539,579,000 554,881,000 581,614,000 488,007,000                             
        stockholders’ equity:
                                                        
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding in 2025 and in 2024
                                                        
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding in 2024 and in 2023
                                                        
        total liabilities and stockholders’ equity
             1,618,437,000 1,307,080,000 1,491,013,000 1,238,140,000 1,311,310,000 1,383,404,000 1,545,444,000 1,618,474,000 1,320,627,000 1,384,029,000 1,522,397,000 1,484,801,000 1,512,444,000 1,597,763,000 1,759,555,000 1,268,385,000 1,314,041,000 1,233,140,000 1,135,496,000 879,944,000 958,927,000 1,007,759,000 719,558,000 765,145,000 806,022,000 817,350,000 490,753,000 435,047,000 497,542,000 545,822,000 540,626,000 515,166,000 481,951,000 524,184,000 559,569,000 602,130,000 343,004,000 355,840,000      
        contract liabilities
                   1,479,000 2,958,000 4,437,000 5,867,000 7,609,000  3,912,000 19,221,000 59,219,000 102,898,000                            
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding in 2023 and in 2022
                                                        
        prepaid expenses and other current assets
                46,029,000 51,377,000 67,375,000 68,926,000 70,980,000 77,461,000 63,020,000 71,745,000 69,193,000 63,933,000 68,034,000 57,630,000 64,264,000 58,196,000 64,788,000 51,397,000 49,169,000 46,612,000 44,995,000 42,858,000 49,671,000 36,844,000 33,953,000 28,700,000 19,376,000 19,685,000 19,224,000 20,136,000 18,944,000 17,799,000 17,088,000 13,060,000 12,324,000 9,430,000 6,877,000 5,929,000 5,547,000 4,945,000 4,239,000 1,848,000 
        equity investments
                4,039,000 5,458,000 5,197,000 5,531,000 13,786,000 15,412,000 25,596,000 34,925,000 86,215,000 103,710,000 134,756,000 155,375,000                             
        right-of-use assets
                26,427,000 19,222,000 22,949,000 25,961,000 28,751,000 31,245,000 32,699,000 34,936,000 36,696,000 38,619,000 38,511,000 40,524,000 37,597,000 37,067,000 35,827,000  31,711,000 33,356,000 23,024,000                      
        preferred stock — 25,000,000 shares authorized; nil outstanding as of september 30, 2023 and december 31, 2022
                                                        
        common stock — 250,000,000 shares authorized; 72,174,307 and 70,197,297 shares issued and outstanding as of september 30, 2023 and december 31, 2022, respectively
                72,000                                        
        preferred stock — 25,000,000 shares authorized; nil outstanding as of june 30, 2023 and december 31, 2022
                                                        
        common stock — 250,000,000 shares authorized; 71,465,424 and 70,197,297 shares issued and outstanding as of june 30, 2023 and december 31, 2022, respectively
                 71,000                                       
        preferred stock — 25,000,000 shares authorized; nil outstanding as of march 31, 2023 and december 31, 2022
                                                        
        common stock — 250,000,000 shares authorized; 70,660,249 and 70,197,297 shares issued and outstanding as of march 31, 2023 and december 31, 2022, respectively
                  71,000                                      
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of december 31, 2022 and december 31, 2021
                                                        
        liabilities and stockholders’ equity
                                                        
        liabilities related to the sale of future royalties
                    862,063,000                                    
        preferred stock — 25,000,000 shares authorized; nil outstanding as of september 30, 2022 and december 31, 2021
                                                        
        common stock — 250,000,000 shares authorized; 70,079,777 and 69,344,998 shares issued and outstanding as of september 30, 2022 and december 31, 2021, respectively
                    70,000                                    
        liability related to the sale of future royalties
                     358,942,000 355,633,000 351,786,000 348,073,000 344,039,000 340,211,000 335,665,000 331,034,000 325,783,000 320,836,000 315,369,000                         
        preferred stock — 25,000,000 shares authorized; nil outstanding as of june 30, 2022 and december 31, 2021
                                                        
        common stock — 250,000,000 shares authorized; 70,010,398 and 69,344,998 shares issued and outstanding as of june 30, 2022 and december 31, 2021, respectively
                     70,000                                   
        preferred stock — 25,000,000 shares authorized; nil outstanding as of march 31, 2022 and december 31, 2021
                                                        
        common stock — 250,000,000 shares authorized; 69,796,940 and 69,344,998 shares issued and outstanding as of march 31, 2022 and december 31, 2021, respectively
                      70,000                                  
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of december 31, 2021 and december 31, 2020
                                                        
        preferred stock — 25,000,000 shares authorized; nil outstanding as of september 30, 2021 and december 31, 2020
                                                        
        common stock — 250,000,000 shares authorized; 67,961,963 and 66,818,520 shares issued and outstanding as of september 30, 2021 and december 31, 2020, respectively
                        68,000                                
        preferred stock — 25,000,000 shares authorized; nil outstanding as of june 30, 2021 and december 31, 2020
                                                        
        common stock — 250,000,000 shares authorized; 67,764,950 and 66,818,520 shares issued and outstanding as of june 30, 2021 and december 31, 2020, respectively
                         68,000                               
        property and equipment
                          87,570,000  48,773,000 48,339,000 47,596,000 44,348,000 31,877,000 25,317,000 21,696,000 20,046,000 19,828,000 20,858,000 20,830,000 21,837,000 16,030,000 16,405,000 16,517,000 17,055,000 18,226,000 17,054,000 13,418,000 7,373,000 6,285,000 4,772,000 3,514,000 3,033,000 2,621,000 2,497,000 1,777,000 1,325,000 
        preferred stock — 25,000,000 shares authorized; nil outstanding as of march 31, 2021 and december 31, 2020
                                                        
        common stock — 250,000,000 shares authorized; 67,439,477 and 66,818,520 shares issued and outstanding as of march 31, 2021 and december 31, 2020, respectively
                          67,000                              
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of december 31, 2020 and 2019
                                                        
        short-term investments
                            568,034,000 477,777,000 365,088,000 321,646,000 404,481,000 486,949,000 445,604,000 346,274,000 420,142,000 436,278,000 314,616,000 134,005,000 310,659,000 308,897,000 265,689,000 219,028,000 254,150,000 336,734,000 341,092,000 343,428,000 281,697,000 273,678,000 164,526,000 163,163,000 147,807,000 135,819,000 109,950,000 45,950,000 
        investments in equity securities
                            129,320,000                            
        long-term investments
                             4,068,000 41,711,000 5,174,000       29,907,000 9,975,000 24,964,000 57,802,000 80,862,000 117,963,000 76,211,000 50,021,000 75,932,000 99,259,000 133,492,000        
        short-term lease liabilities
                            7,785,000 7,258,000 7,487,000 7,235,000 7,290,000 6,999,000 5,259,000                      
        long-term lease liabilities
                            36,668,000 36,308,000 34,958,000 29,757,000 31,206,000 32,968,000 22,984,000                      
        preferred stock — 25,000,000 shares authorized; nil outstanding as of september 30, 2020 and december 31, 2019
                                                        
        common stock — 250,000,000 shares authorized; 60,815,690 and 57,838,220 shares issued and outstanding as of september 30, 2020 and december 31, 2019, respectively
                            61,000                            
        receivable related to daiichi sankyo license agreements
                             8,473,000                           
        investment in arcturus equity securities
                             140,220,000 35,420,000 27,752,000 26,333,000 24,167,000                       
        short-term contract liability
                             131,570,000 107,247,000                          
        long-term contract liability
                             3,328,000 38,036,000                          
        preferred stock — 25,000,000 shares authorized; nil outstanding as of june 30, 2020 and december 31, 2019
                                                        
        common stock — 250,000,000 shares authorized; 60,413,756 and 57,838,220 shares issued and outstanding as of june 30, 2020 and december 31, 2019, respectively
                             60,000                           
        receivable related to daiichi sankyo license agreement
                              125,550,000                          
        preferred stock — 25,000,000 shares authorized; nil outstanding as of march 31, 2020 and december 31, 2019
                                                        
        common stock — 250,000,000 shares authorized; 59,488,873 and 57,838,220 shares issued and outstanding as of march 31, 2020 and december 31, 2019, respectively
                              59,000                          
        right-of-use lease assets
                               30,328,000                         
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of december 31, 2019 and 2018
                                                        
        preferred stock — 25,000,000 shares authorized; nil outstanding as of september 30, 2019 and december 31, 2018
                                                        
        common stock — 250,000,000 shares authorized; 57,749,890 and 50,860,588 shares issued and outstanding as of september 30, 2019 and december 31, 2018, respectively
                                58,000                        
        preferred stock — 25,000,000 shares authorized; nil outstanding as of june 30, 2019 and december 31, 2018
                                                        
        common stock — 250,000,000 shares authorized; 57,665,375 and 50,860,588 shares issued and outstanding as of june 30, 2019 and december 31, 2018, respectively
                                 58,000                       
        preferred stock — 25,000,000 shares authorized; nil outstanding as of march 31, 2019 and
                                                        
        december 31, 2018
                                                        
        common stock — 250,000,000 shares authorized; 57,303,888 and 50,860,588 shares issued
                                                        
        and outstanding as of march 31, 2019 and december 31, 2018, respectively
                                  57,000                      
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of december 31, 2018 and 2017
                                                        
        preferred stock — 25,000,000 shares authorized; nil outstanding as of september 30, 2018 and
                                                        
        december 31, 2017
                                                        
        common stock — 250,000,000 shares authorized; 50,533,070 and 44,167,071 shares issued
                                                        
        and outstanding as of september 30, 2018 and december 31, 2017, respectively
                                    51,000                    
        preferred stock — 25,000,000 shares authorized; nil outstanding as of june 30, 2018 and
                                                        
        common stock — 250,000,000 shares authorized; 50,116,056 and 44,167,071 shares issued
                                                        
        and outstanding as of june 30, 2018 and december 31, 2017, respectively
                                     50,000                   
        restricted cash
                                      542,000 461,000 461,000 461,000 271,000 1,411,000 1,411,000 1,482,000 1,291,000 150,000 912,000 1,071,000 1,071,000 744,000 744,000 744,000 744,000 451,000 
        deferred rent—current portion
                                      723,000 701,000 695,000 669,000 637,000 341,000 328,000 315,000 303,000 192,000 163,000 155,000 90,000 85,000 80,000 75,000 78,000 78,000 
        preferred stock — 25,000,000 shares authorized; nil outstanding as of march 31, 2018 and
                                                        
        common stock — 250,000,000 shares authorized; 49,665,203 and 44,167,071 shares issued
                                                        
        and outstanding as of march 31, 2018 and december 31, 2017, respectively
                                      50,000                  
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of december 31, 2017 and 2016
                                                        
        preferred stock — 25,000,000 shares authorized; nil outstanding as of september 30, 2017 and
                                                        
        december 31, 2016
                                                        
        common stock — 250,000,000 shares authorized; 42,488,312 and 41,240,230 shares issued
                                                        
        and outstanding as of september 30, 2017 and december 31, 2016, respectively
                                        42,000                
        preferred stock — 25,000,000 shares authorized; nil outstanding as of june 30, 2017 and
                                                        
        common stock — 250,000,000 shares authorized; 42,428,124 and 41,240,230 shares issued
                                                        
        and outstanding as of june 30, 2017 and december 31, 2016, respectively
                                         42,000               
        preferred stock — 25,000,000 shares authorized; nil outstanding as of march 31, 2017 and
                                                        
        common stock — 250,000,000 shares authorized; 42,273,429 and 41,240,230 shares issued
                                                        
        and outstanding as of march 31, 2017 and december 31, 2016, respectively
                                          42,000              
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of december 31, 2016 and 2015
                                                        
        preferred stock — 25,000,000 shares authorized; nil outstanding as of september 30, 2016 and
                                                        
        december 31, 2015
                                                        
        common stock — 250,000,000 shares authorized; 40,052,032 and 38,882,394 shares issued
                                                        
        and outstanding as of september 30, 2016 and december 31, 2015, respectively
                                            40,000            
        preferred stock — 25,000,000 shares authorized; nil outstanding as of june 30, 2016 and december 31, 2015
                                                        
        common stock — 250,000,000 shares authorized; 39,046,247 and 38,882,394 shares issued and outstanding as of june 30, 2016 and december 31, 2015, respectively
                                             39,000           
        preferred stock — 25,000,000 shares authorized; nil outstanding as of march 31, 2016 and december 31, 2015
                                                        
        common stock — 250,000,000 shares authorized; 38,992,346 and 38,882,394 shares issued and outstanding as of march 31, 2016 and december 31, 2015, respectively
                                              39,000          
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of december 31, 2015 and 2014
                                                        
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of september 30, 2015 and december 31, 2014
                                                        
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of june 30, 2015 and december 31, 2014
                                                        
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of march 31, 2015 and december 31, 2014
                                                        
        liabilities, convertible preferred stock and stockholders’ equity
                                                        
        convertible preferred stock warrant liability
                                                       3,419,000 
        series a redeemable convertible preferred stock, par value of 0.001 per share — nil and 35,377,556 shares authorized as of december 31, 2014 and 2013; nil and 34,349,894 shares issued and outstanding as of december 31, 2014 and 2013
                                                        
        series b convertible preferred stock, par value of 0.001 per share—nil and 27,081,680 shares authorized, issued and outstanding as of december 31, 2014 and 2013
                                                        
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of december 31, 2014 and 2013
                                                        
        total liabilities, convertible preferred stock and stockholders’ equity
                                                   197,967,000 210,931,000 162,586,000 172,707,000  
        series a redeemable convertible preferred stock, par value of 0.001 per share—nil and 35,377,556 shares authorized; nil and 34,349,894 shares issued and outstanding as of september 30, 2014 and december 31, 2013
                                                        
        series b convertible preferred stock, par value of 0.001 per share—nil and 27,081,680 shares authorized, issued and outstanding as of september 30, 2014 and december 31, 2013
                                                        
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of september 30, 2014 and december 31, 2013
                                                        
        series a redeemable convertible preferred stock, par value of 0.001 per share—nil and 35,377,566 shares authorized; nil and 34,349,894 shares issued and outstanding as of june 30, 2014 and december 31, 2013
                                                        
        series b convertible preferred stock, par value of 0.001 per share—nil and 27,081,680 shares authorized, issued and outstanding as of june 30, 2014 and december 31, 2013
                                                        
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of june 30, 2014 and december 31, 2013
                                                        
        series a redeemable convertible preferred stock, par value of 0.001 per share—nil and 35,377,566 shares authorized; nil and 34,349,894 shares issued and outstanding as of march 31, 2014 and december 31, 2013
                                                        
        series b convertible preferred stock, par value of 0.001 per share—nil and 27,081,680 shares authorized, issued and outstanding as of march 31, 2014 and december 31, 2013
                                                        
        preferred stock, par value of 0.001 per share—25,000,000 shares authorized; nil outstanding as of march 31, 2014 and december 31, 2013
                                                        
        deficit accumulated during the development stage
                                                      -92,869,000 -74,836,000 
        liabilities, convertible preferred stock and stockholders’ deficit
                                                        
        series a redeemable convertible preferred stock, par value of 0.001 per share—35,377,556
                                                        
        shares authorized as of december 31, 2012 and 2013; 34,349,894 shares issued and outstanding as of december 31, 2012 and 2013; redemption value of 138,155 as of december 31, 2013
                                                       51,001,000 
        series b convertible preferred stock, par value of 0.001 per share—27,081,680 shares
                                                        
        authorized, issued and outstanding as of december 31, 2012 and 2013; aggregate liquidation preference of 76,739 as of december 31, 2013
                                                       73,929,000 
        stockholders’ deficit:
                                                        
        and 3,766,289 shares issued and outstanding as of december 31, 2012 and 2013
                                                       4,000 
        total stockholders’ deficit
                                                       -74,821,000 
        total liabilities, convertible preferred stock and stockholders’ deficit
                                                       59,649,000 
      Cashflow Statements:
      Quarterly
      Annual
        Unit: USD2025-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-30 2019-12-31 2019-09-30 2019-06-30 2019-03-31 2018-12-31 2018-09-30 2018-06-30 2018-03-31 2017-12-31 2017-09-30 2017-06-30 2017-03-31 2016-12-31 2016-09-30 2016-06-30 2016-03-31 2015-12-31 2015-09-30 2015-06-30 2015-03-31 2014-12-31 2014-09-30 2014-06-30 2014-03-31 
                                                        
          operating activities:
                                                        
          net loss
        -128,556,000 -180,413,000 -114,951,000 -151,080,000 -133,385,000 -133,516,000 -131,598,000 -170,684,000 -123,190,000 -159,649,000 -159,828,000 -163,972,000 -151,833,000 -245,106,000 -158,162,000 -152,320,000 -122,458,000 -72,998,000 -122,428,000 -136,141,000 -24,011,000 -68,845,000                          -13,630,000 
          adjustments to reconcile net loss to net cash from operating activities:
                                                        
          stock-based compensation
        37,289,000 37,265,000 38,529,000 39,917,000 40,164,000 41,569,000 39,371,000 36,926,000 33,744,000 34,877,000 34,654,000 31,952,000 29,355,000 35,762,000 35,864,000 29,396,000 26,819,000 26,788,000 27,091,000 24,254,000 22,838,000 20,339,000 22,403,000 20,155,000 19,660,000 19,907,000 22,207,000 20,221,000 21,080,000 20,667,000 19,563,000 18,797,000 19,541,000 17,180,000 16,794,000 14,499,000 13,538,000 13,694,000 10,860,000 10,217,000 9,489,000 7,896,000 5,091,000 2,408,000 2,001,000 1,652,000 946,000 795,000 
          amortization of discount on marketable securities
                                                        
          depreciation and amortization
        8,785,000 8,606,000 8,619,000 8,990,000 9,079,000 8,757,000 8,862,000 8,845,000 8,218,000 7,191,000 5,361,000 5,236,000 4,957,000 4,694,000 4,481,000 4,088,000 3,534,000 3,217,000 3,121,000 3,367,000 3,133,000 3,092,000 3,184,000 2,852,000 2,169,000 2,145,000 2,106,000 2,119,000 2,943,000 4,355,000 6,080,000 6,160,000 2,514,000 1,095,000 1,055,000 1,161,000 1,157,000 1,031,000 692,000 544,000 480,000 441,000 262,000 201,000 212,000 194,000 161,000 117,000 
          non-cash royalty revenue
        -37,581,000 -24,911,000 -30,321,000 -19,187,000  -23,054,000 -26,289,000 -18,063,000  -20,543,000 -17,270,000 -4,882,000                                     
          non-cash interest expense on liabilities for sales of future royalties
        19,469,000 14,148,000 14,041,000 14,342,000 15,522,000 15,712,000 15,960,000 15,847,000 17,328,000 17,665,000 15,375,000 15,636,000                                     
          other
        693,000 -273,000 -1,172,000 -1,248,000 757,000 -3,498,000 -671,000 -77,000 -802,000 1,047,000 1,868,000 187,000 -794,000 178,000 351,000 35,000 -198,000 -78,000 186,000 325,000 1,195,000 -62,000   337,000 352,000   -11,000                   
          changes in operating assets and liabilities:
                                                        
          accounts receivable
        -33,834,000 5,425,000 -12,653,000 10,062,000 -20,640,000 9,792,000 2,158,000 -24,908,000 1,012,000 -6,204,000 -15,078,000 -2,508,000 -9,095,000 5,929,000 -8,935,000 33,000 -3,070,000 -693,000 324,000 -1,993,000 4,714,000 -12,829,000 14,455,000 3,500,000 -9,702,000 -2,241,000 -5,262,000 -2,899,000 1,572,000                    
          inventory
        150,000 -5,595,000 208,000 -763,000 -2,456,000 -2,500,000 -4,127,000 -2,124,000 -1,956,000 -3,467,000 -1,657,000 150,000 -4,205,000 -791,000 -3,230,000 -1,475,000 -990,000 47,000 -2,648,000 474,000 1,289,000 -3,156,000 372,000 149,000 2,153,000 -564,000 -2,393,000 -3,647,000                     
          prepaid expenses and other assets
        -2,740,000 9,905,000 313,000 -17,478,000      4,990,000 12,113,000 -519,000 3,240,000 7,351,000 -15,919,000 9,126,000 -22,529,000 2,023,000 1,654,000 -10,656,000 15,209,000 -6,325,000 8,960,000 -15,096,000                         
          accounts payable, accrued, and other liabilities
        37,012,000 45,124,000 -9,682,000 -48,454,000 46,385,000 10,818,000 25,329,000 -35,540,000 17,126,000 7,481,000 11,781,000 -34,008,000 35,026,000 11,156,000 57,424,000 -16,164,000 30,393,000 13,446,000 12,076,000 -23,602,000 24,031,000 11,655,000 -3,450,000 -5,383,000                         
          net cash from operating activities
        -99,829,000 -91,423,000 -108,273,000 -166,475,000 -79,503,000 -66,995,000 -76,963,000 -190,727,000 -83,904,000 -117,874,000 -116,161,000 -156,867,000 -90,342,000 -95,345,000 -77,257,000 -117,521,000 -54,344,000 -59,649,000 -65,356,000 -159,346,000 -62,452,000 -61,967,000 87,351,000 -95,152,000 -72,039,000 -88,506,000 -89,063,000 -95,775,000 -55,853,000 -69,157,000 -76,078,000 -89,478,000 -81,823,000 -61,993,000 -48,822,000 -61,205,000 -47,680,000 -28,745,000 -39,655,000 -44,895,000 -40,444,000 -30,601,000 -17,273,000 -17,659,000 -14,739,000 -11,030,000 -10,529,000 -8,336,000 
          capital expenditures
        -938,000 -1,278,000 -2,460,000 -1,324,000 -654,000 -1,617,000 -2,009,000 -3,211,000 -1,600,000 -3,695,000 -13,938,000 -25,034,000 -26,970,000 -26,046,000 -30,923,000 -32,184,000 -16,048,000 -20,560,000 -16,414,000 -3,780,000 -4,083,000 -14,096,000 -11,500,000 -5,033,000 -5,240,000 -3,059,000 -1,192,000 -1,032,000 -1,377,000 -475,000 -899,000 -1,033,000 -376,000 -485,000 -666,000 -3,001,000 -5,044,000 -1,477,000 -1,923,000 -1,978,000 -595,000 -459,000 -453,000 -439,000 -688,000 -569,000 
          free cash flows
        -100,767,000 -92,701,000 -110,733,000 -167,799,000 -80,157,000 -68,612,000 -78,972,000 -193,938,000 -85,504,000 -121,569,000 -130,099,000 -181,901,000 -117,312,000 -121,391,000 -108,180,000 -149,705,000 -70,392,000 -80,209,000 -65,356,000 -175,760,000 -62,452,000 -65,747,000 83,268,000 -109,248,000 -83,539,000 -93,539,000 -94,303,000 -98,834,000 -57,045,000 -70,189,000 -77,455,000 -89,953,000 -82,722,000 -63,026,000 -49,198,000 -61,690,000 -48,346,000 -31,746,000 -44,699,000 -46,372,000 -42,367,000 -32,579,000 -17,868,000 -18,118,000 -15,192,000 -11,469,000 -11,217,000 -8,905,000 
          investing activities:
                                                        
          purchase of property, plant, and equipment
        -938,000 -1,278,000 -2,460,000 -1,324,000 -654,000 -1,617,000 -2,009,000 -3,211,000 -1,600,000 -3,695,000 -13,938,000 -25,034,000 -26,970,000 -26,046,000 -30,923,000 -32,184,000 -16,048,000 -20,560,000                               
          purchase of marketable securities
                                                        
          proceeds from sale of marketable securities
                                                        
          proceeds from maturities of marketable securities
                                                        
          payments for intangible asset
        -15,000,000                                            
          net cash from investing activities
        -72,247,000 117,182,000 71,175,000 119,890,000 102,735,000 -275,502,000 60,564,000 94,435,000 -107,017,000 64,295,000 99,418,000 111,304,000 -171,599,000 -161,859,000 79,168,000 -37,362,000 69,057,000 -40,759,000 -41,246,000 -182,424,000 97,901,000 -95,758,000 -86,139,000 -95,125,000 67,266,000 79,314,000 -58,426,000 -101,193,000 73,561,000 16,205,000 -52,069,000 -71,028,000 57,104,000 29,788,000 -21,076,000 -9,400,000 -8,355,000 52,509,000 23,986,000 21,775,000 -33,560,000 -143,715,000 -111,011,000 -4,065,000 -17,021,000 -13,545,000 -27,476,000 -65,398,000 
          financing activities:
                                                        
          proceeds from the sale of future royalties
                                                        
          proceeds from the issuance of common stock and pre-funded warrants in connection with underwritten public offerings
                                                        
          proceeds from the issuance of common stock in connection with at-the-market offering
        272,000        24,792,000             5,523,000 19,305,000                     
          proceeds from the issuance of common stock under equity plans
                                                        
          proceeds from issuance of equity from noncontrolling interest
                                                        
          net cash from financing activities
        394,192,000 2,000 83,649,000 157,000 3,186,000 11,174,000 384,939,000 -58,000 330,610,000 25,234,000 33,020,000 -722,000 1,882,000 491,877,000 5,837,000 1,612,000 85,725,000 7,550,000 12,628,000 12,649,000 489,711,000 19,135,000 35,811,000 55,615,000 315,443,000 904,000 9,342,000 353,617,000 12,242,000 25,024,000 13,168,000 286,419,000 64,439,000 1,333,000 1,526,000 68,969,000 74,940,000 63,447,000 -25,000 314,000 887,000 288,651,000 2,595,000 175,440,000 2,697,000 60,510,000 10,000 121,754,000 
          effect of exchange rate changes on cash
        -656,000 294,000 2,914,000 1,448,000 -2,473,000 1,275,000 -648,000 -679,000 1,103,000 -716,000 -136,000 211,000 1,352,000 -1,081,000 -1,238,000 -108,000 -392,000 -479,000 448,000 -771,000 880,000 437,000 425,000 -623,000 337,000 -472,000 168,000 -198,000 145,000 30,000 -896,000 249,000 361,000 528,000 -378,000 17,000             
          net increase in cash, cash equivalents, and restricted cash
                                                        
          cash, cash equivalents, and restricted cash at beginning of year
                                                        
          cash, cash equivalents, and restricted cash at end of year
                                                        
          amortization of discount on marketable debt securities
         -704,000 -1,047,000 -1,733,000  -3,115,000 -2,947,000 -3,756,000                                         
          purchase of marketable debt securities
         -16,942,000   -15,933,000 -367,379,000 -3,373,000 -21,928,000 -221,593,000 -139,484,000 -103,281,000 -62,024,000 -198,574,000 -210,883,000 -1,568,000 -203,710,000 -94,778,000 -253,062,000 -259,117,000 -405,230,000                             
          proceeds from sale of marketable debt securities
         51,000 92,000 99,000 126,000 177,000 2,845,000 3,152,000 32,893,000 3,912,000 10,715,000 1,309,000 40,016,000 3,528,000 39,422,000 9,578,000 12,770,000 55,568,000 14,980,000                             
          proceeds from maturities of marketable debt securities
         135,587,000 89,395,000 136,902,000 119,350,000 93,571,000 68,310,000 128,794,000 113,295,000 175,009,000 215,623,000 191,598,000 42,780,000 110,622,000 108,314,000 188,990,000 134,114,000 177,383,000 182,374,000 224,240,000                             
          proceeds from the issuance of common stock and pre-funded warrants in connection with the underwritten public offering
             117,000                                           
          proceeds from the issuance of common stock under equity plan awards, net of tax
         2,000 3,921,000 157,000  4,057,000 4,073,000 -58,000  442,000 4,569,000 -750,000                                     
          net increase in cash, cash equivalents and restricted cash
         26,055,000                    -138,153,000 37,448,000 -135,285,000  -8,760,000 -137,979,000 156,451,000   -115,875,000 126,162,000                 
          cash, cash equivalents and restricted cash at beginning of period
         184,159,000  219,399,000  137,601,000  309,585,000  726,294,000  436,244,000  115,525,000  103,041,000                 
          cash, cash equivalents and restricted cash at end of period
         26,055,000 49,465,000 139,179,000  -330,048,000 367,892,000 122,370,000  -29,061,000 16,141,000 91,527,000  233,592,000 6,510,000 156,206,000  -93,337,000 -93,526,000 396,402,000  -138,153,000 37,448,000 300,959,000  -8,760,000 -137,979,000 271,976,000  -27,898,000 -115,875,000 229,203,000                 
          supplemental disclosures of non-cash information:
                                                        
          stock-based compensation capitalized into ending inventory
         -30,000 -189,000 2,999,000  198,000 218,000 2,786,000  259,000 27,000 2,276,000                                     
          costs of property, plant and equipment included in accounts payable, accrued, and other liabilities
          -544,000 1,566,000   -381,000 1,280,000                                         
          change in fair value of equity investments
           157,000 1,548,000 -678,000 3,991,000 -3,746,000 -1,889,000 1,419,000 -261,000 334,000 -1,840,000 1,626,000 10,184,000 9,329,000 16,100,000 -25,702,000 31,046,000 20,619,000                             
          net decrease in cash, cash equivalents and restricted cash
           -44,980,000    -97,029,000   16,141,000 -46,074,000   6,510,000 -153,379,000  -93,337,000 -93,526,000 -329,892,000                             
          acquired in-process research and development
                    -201,000                                    
          amortization of premium (discount) on marketable debt securities
                          1,571,000 940,000                             
          non-cash collaboration royalty revenue
                    -6,058,000 -5,373,000 -5,423,000 -4,838,000 -4,741,000 -4,649,000 -4,689,000 -3,872,000 -3,567,000 -3,331,000 -3,482,000 -2,615,000                         
          deferred tax liabilities
                                                        
          acquisition, net of cash acquired
                    366,000                                    
          proceeds from sale of equity investments
                        36,646,000                                
          payment for intangible asset
               -10,000,000   -30,000,000                                 
          proceeds from the issuance of common stock and pre-funded warrants in connection with underwritten public offerings, net of issuance costs
                                                        
          proceeds from the issuance of common stock in connection with at-the-market offering, net of issuances costs
                                                        
          proceeds from the issuance of common stock from exercise of equity plan awards
                                                        
          proceeds from issuance of equity interest in noncontrolling interest
                                                        
          other assets
             12,718,000 -7,002,000 6,553,000                  70,000 65,000 945,000 -315,000 40,000 157,000 -259,000 30,000 391,000 26,000 75,000 31,000 -422,000 617,000 -1,468,000 139,000 56,000 -9,000 -7,000 -2,234,000 304,000 -579,000 2,098,000 
          acquired lease liabilities arising from obtaining right-of-use assets and property, plant, and equipment
                                                        
          non-cash interest expense on liabilities for sales of future royalties capitalized during the year into ending property, plant and equipment
                 1,461,000 4,149,000 3,820,000                                     
          contract liabilities
                -1,479,000 -1,479,000 -1,479,000 -1,430,000 -3,209,000   -21,177,000 -41,479,000 -36,330,000 -32,000,000 -10,385,000 145,283,000                         
          proceeds from the issuance of common stock from exercise of warrants and equity plan awards
                        6,924,000 7,674,000 12,742,000 12,761,000 54,242,000 19,193,000 15,478,000 380,000                         
          amortization of (discount) premium on marketable debt securities
                 -2,681,000 -3,219,000 -2,994,000                                     
          costs of pp&e included in ap, accrued, and other liabilities
                 -4,636,000 -3,074,000 9,137,000                                     
          acquired lease liabilities arising from obtaining right-of-use assets
                     132,000 904,000 132,000  309,000    9,733,000 -3,935,000 7,397,000  13,235,000 8,280,000                     
          purchase of equity investments
                                                        
          proceeds from the issuance of common stock in connection with underwritten public offerings
                                330,415,000                     
          proceeds from the issuance of common stock in connection with the license agreement
                            55,268,000                         
          amortization of premium on marketable debt securities
                     969,000 1,486,000 1,894,000                                 
          non-cash interest expense on liabilities related to the sale of future royalties
                                                        
          proceeds from sale of future royalties
                                                        
          proceeds from the issuance of common stock from equity plan awards
                     1,074,000 5,983,000 1,755,000                                 
          non-cash interest expense on liabilities related to the sale of future royalties capitalized into ending property, plant and equipment
                                                        
          non-cash interest expense on liability related to the sale of future royalties
                      6,052,000 6,584,000 3,804,000 8,683,000 8,517,000 8,418,000 8,198,000 8,582,000 8,429,000 8,082,000                         
          non-cash interest expense on liability related to the sale of future royalties capitalized into ending property, plant and equipment
                      2,680,000 2,101,000                                 
          purchase of mutual funds related to nonqualified deferred compensation plan
                       -2,458,000                                 
          contract assets and liabilities
                                                        
          receivable related to the daiichi sankyo license agreement
                              117,077,000 -125,550,000                         
          purchase of property and equipment
                           -16,414,000  -3,780,000 -4,083,000 -14,096,000 -11,500,000 -5,033,000 -5,240,000 -3,059,000 -1,192,000 -1,032,000 -1,377,000 -475,000 -899,000 -1,033,000 -376,000 -485,000 -666,000 -3,001,000 -5,044,000 -1,477,000 -1,923,000 -1,978,000 -595,000 -459,000 -453,000 -439,000 -688,000 -569,000 
          foreign currency remeasurement loss
                            -388,000 142,000 -449,000 474,000  358,000 -22,000 589,000                     
          gain from sale of priority review vouchers
                                                       
          proceeds from sale of equity investment
                                                        
          proceeds from sale of priority review vouchers
                                                      
          amortization of premium (discount) on investment securities
                                    -809,000 -919,000 -674,000 -239,000      1,015,000 1,387,000 1,828,000  1,467,000 1,268,000 965,000  1,048,000 917,000 479,000 
          change in fair value of investments in equity securities
                                                        
          right-of-use assets
                             -508,000 -1,231,000 -5,522,000  1,619,000 -10,320,000 -6,880,000                     
          lease liabilities
                             920,000 1,169,000 5,511,000 -1,519,000 -1,451,000 11,710,000 6,812,000                     
          purchase of investments
                             -192,193,000 -171,102,000 -285,229,000 -82,557,000 -149,179,000 -200,354,000 -260,734,000 -9,747,000 -91,366,000 -147,853,000 -260,830,000 3,000 -23,282,000 -119,681,000 -87,527,000 -130,967,000 -88,400,000 -104,993,000 -118,130,000 -146,905,000 -234,917,000 -165,150,000 -77,254,000 -48,030,000 -31,644,000 -41,300,000 -87,998,000 
          purchase of investments in equity securities
                                                        
          purchase of convertible notes receivable
                                                        
          proceeds from the sale of investments
                             11,540,000 12,250,000 16,600,000  12,500,000 22,600,000  2,701,000    6,000,000 9,227,000 12,415,000  39,957,000 42,838,000 11,494,000  43,047,000 7,497,000 12,766,000     
          proceeds from maturities of investments
                             93,450,000 86,396,000 187,600,000 153,705,000 221,026,000 161,507,000 140,000,000 84,500,000 105,902,000 51,885,000 60,277,000 70,799,000 48,103,000 89,753,000 64,977,000 77,011,000 103,612,000 91,185,000 131,431,000 90,630,000 49,062,000 47,118,000 62,240,000 29,463,000 15,535,000 14,512,000 23,462,000 
          payment for intangible assets
                                                        
          principal repayments of financing leases
                             -58,000 -58,000 -33,000                         
          amortization of discount on investment securities
                              150,000 -299,000  -1,971,000 -2,121,000 -839,000                     
          change in fair value of investment in arcturus equity securities
                              -95,200,000 -7,668,000 -1,419,000 -2,166,000                       
          purchase of investment in arcturus equity securities
                                                      
          net income
                               -119,025,000 -93,805,000 -112,994,000 -99,172,000 -96,756,000 -87,826,000 -87,310,000 -52,728,000 30,253,000 -81,731,000 -79,227,000 -72,891,000 -68,290,000 -71,287,000 -64,907,000 -56,923,000 -52,757,000 -55,220,000 -39,232,000 -29,787,000 -21,379,000 -16,738,000 -15,849,000   
          adjustments to reconcile net income to net cash from operating activities:
                                                        
          foreign currency remeasurement (gain) loss
                                    -544,000 7,000 1,073,000 4,773,000                 
          right-of-use lease assets
                                                        
          proceeds from sale of investments
                                                        
          proceeds from the issuance of common stock under equity plan awards
                                                        
          repayment of note payable
                                                        
          supplemental disclosures of non-cash investing and financing information:
                                                        
          acquired lease liabilities arising from obtaining right-of-use lease assets
                                                        
          costs of property and equipment included in accounts payable and other liabilities
                                                        
          fair value of vested stock options assumed in acquisition
                                                        
          prepaid expenses and other current assets
                                 -2,689,000 -1,906,000 -2,359,000 6,099,000 2,375,000 -17,319,000 -5,063,000 -4,098,000 291,000 -461,000 930,000 -1,314,000 -1,279,000 -526,000 -4,028,000 -736,000 -2,894,000 -2,553,000 -948,000 -382,000 -602,000 -706,000 -2,391,000 
          accounts payable
                                 3,910,000 -3,493,000 -151,000 3,965,000 -1,969,000 2,693,000 -1,317,000 -420,000 -2,474,000 3,364,000 2,989,000 -1,340,000 1,017,000 187,000 2,638,000 -1,438,000 -5,321,000 4,340,000 437,000 484,000 733,000 -98,000 2,058,000 
          accrued liabilities and other liabilities
                                 7,209,000 9,498,000 -12,930,000 3,276,000 2,752,000 5,544,000 -12,583,000 -3,081,000 4,178,000 6,745,000 -12,470,000 9,601,000 20,406,000 4,051,000 -1,869,000  6,986,000 4,115,000 664,000  1,490,000 2,415,000 -1,186,000 
          proceeds from the issuance of common stock from equity plan awards, net of tax
                                 904,000 3,819,000 3,897,000                     
          gain from sale of priority review voucher
                                       -130,000,000                 
          proceeds from sale of priority review voucher
                                       130,000,000                 
          gain on sale of priority review voucher
                                                        
          proceeds from the issuance of common stock in connection with collaboration agreement
                                                        
          stock-based compensation capitalized into inventory
                                                        
          costs of property and equipment included in accounts payable and accrued liabilities
                                                        
          tenant improvement allowance
                                                        
          proceeds from issuance of common stock in connection with a public offering
                                     270,969,000                 
          proceeds from issuance of common stock in connection with at-the-market offering
                                     15,837,000 -19,000 11,808,000  25,000 67,591,000             
          proceeds from issuance of common stock from equity awards
                                     9,187,000 13,187,000 3,642,000  1,333,000 1,501,000 1,378,000             
          amortization of premium on investment securities
                                        255,000 400,000 502,000 549,000             
          non-cash license fee from collaboration arrangement
                                                       
          decrease (increase) in restricted cash
                                                       
          net increase in cash and cash equivalents
                                        40,081,000    18,840,000 87,211,000 -15,694,000 -22,806,000 -73,117,000 114,335,000 -125,689,000 153,716,000 -29,063,000 35,935,000 -37,995,000 48,020,000 
          cash and cash equivalents at beginning of year
                                                        
          cash and cash equivalents at end of year
                                                        
          foreign currency remeasurement gain
                                         -3,827,000 -3,956,000 -648,000             
          increase in restricted cash
                                         1,000 1,220,000 341,000 -1,543,000  1,071,000 119,000 -1,358,000   -293,000 
          proceeds from issuance of common stock in connection with collaboration agreement
                                                        
          cash and cash equivalents at beginning of period
                                         161,120,000  93,569,000  24,324,000  7,427,000 
          cash and cash equivalents at end of period
                                         -30,344,000 -68,750,000 159,501,000  87,211,000 -15,694,000 70,763,000  114,335,000 -125,689,000 178,040,000  35,935,000 -37,995,000 55,447,000 
          net decrease in cash and cash equivalents
                                          -68,750,000 -1,619,000             
          revaluation of convertible preferred stock warrant liability
                                                    3,324,000 
          proceeds from the issuance of common stock from equity awards
                                                        
          payment of preferred stock dividend
                                                    -4,346,000 
          reclassification of warrant liability to equity upon conversion to common stock warrants
                                                        
          conversion of series a and series b preferred stock to common stock
                                                    129,360,000 
          proceeds from issuance of common stock in connection with underwritten public offerings
                                                        
          proceeds from issuance of common stock
                                              -25,000 314,000 887,000        
          accrued expenses and other liabilities
                                                        
          costs of fixed assets included in accounts payable and accrued liabilities
                                                        
          costs of fixed assets included in accounts payable
                                                        
          and accrued liabilities
                                                 -24,000       
          reclassification of warrant liability to equity upon conversion to
                                                        
          common stock warrants
                                                     6,743,000 
          proceeds from issuance of common stock, net of issuance costs
                                                  2,595,000 175,440,000     
          accrued expenses, deferred rent and other liabilities
                                                        
          proceeds from issuance of convertible preferred stock
                                                        
          proceeds from issuance of promissory notes
                                                        
          issuance of series a redeemable convertible preferred stock in lieu of cash dividend
                                                        
          sale of investments
                                                        
          net proceeds from issuance of common stock, net of issuance costs
                                                        
          net proceeds from issuance of common stock
                                                      10,000 126,100,000 
          noncash interest expense
                                                        
          net proceeds from issuance of convertible preferred stock
                                                        
          issuance of convertible preferred stock warrants
                                                        
          issuance of series a redeemable convertible preferred stock in lieu
                                                        
          of cash dividend
                                                        
          conversion of interest accrued on promissory notes into series a
                                                        
          redeemable convertible preferred stock
                                                        
          conversion of promissory notes into series a redeemable
                                                        
          convertible preferred stock
                                                        
          decrease in restricted cash