1 | FindPathwayToCsv(puchem, name, kegg)
|
puchem |
|
name |
|
kegg |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (puchem, name, kegg)
{
result <- FindPathway(puchem, name, kegg)
for (i in 1:dim(result)[2]) {
result[, i]$KeggPathway <- paste(result[, i]$KeggPathway,
collapse = "__")
result[, i]$SmpdbPathway <- paste(result[, i]$SmpdbPathway,
collapse = "__")
result[, i]$HmdbPathway <- paste(result[, i]$HmdbPathway,
collapse = "__")
result[, i]$BiocycPathway <- paste(result[, i]$BiocycPathway,
collapse = "__")
}
write.csv(t(as.matrix(result)), "result.csv", row.names = TRUE,
col.names = FALSE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.