Sequential analysis of transcript expression patterns improves survival prediction in multiple cancers