XML 62 R46.htm IDEA: XBRL DOCUMENT v3.22.0.1
Summary of significant accounting policies - Collaboration and Royalty Revenue (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Collaboration and royalty revenue      
Revenue $ 538,593 $ 380,766 $ 306,980
Collaboration and grant revenue      
Collaboration and royalty revenue      
Revenue 55,046 42,579 15,674
Royalty revenue      
Collaboration and royalty revenue      
Revenue 54,643 4,786  
SMA License Agreement | Collaboration and grant revenue      
Collaboration and royalty revenue      
Revenue 55,000 42,600 15,200
SMA License Agreement | Royalty revenue      
Collaboration and royalty revenue      
Revenue $ 54,600 $ 4,800 $ 0