Amgen is buying deCODE Genetics, an Icelandic firm, for $415 million in cash.