Pathway analysis and extension