Skip to content

Commit

Permalink
Renamed function getReactionsList and improvements in gapFill and
Browse files Browse the repository at this point in the history
documentation
  • Loading branch information
nmendozam committed Dec 5, 2020
1 parent 7e9d120 commit e1e6746
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: Find and Fill Gaps in Metabolic Networks
Version: 0.3
Authors@R: c(person("Kelly","Botero",role=c("aut")),
person("Daniel","Osorio",email="[email protected]",role=c("aut","cre")),
person("Nicolas","Mendoza",role=c("aut")),
person("Nicolas","Mendoza-Mejia",role=c("aut")),
person("Felipe","Rojas-Rodriguez",role=c("aut")),
person("Janneth","Gonzalez",role=c("aut","ths")),
person("Andres","Pinzon", role=c("aut","ths"))
Expand Down
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

export(additionCost)
export(blockedReactions)
export(extractModelReact)
export(gapFill)
export(gapFind)
export(getReactionsList)
export(getReference)
importFrom("KEGGREST","keggGet")
importFrom("KEGGREST","keggLink")
Expand Down
2 changes: 2 additions & 0 deletions R/gapFill.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#' )
#' }
gapFill <- function(reactionList, reference, limit = 0.25, nRun = 5, woCompartment = FALSE, consensus = FALSE) {
reactionList <- gsub("->", "_>", reactionList)
reference <- gsub("->", "_>", reference)
reference_reactants <- reactants(reference)
reference_products <- products(reference)
newR <- data.frame("addCost" = numeric(),"react" = character())
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion R/getReference.R
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ getReference <- function(organism = "all", sep = ";") {
lines <- unlist(strsplit(b, "\n"))
rx_obj <- lines[grepl("\\<reaction[[:space:]]+", lines)]
if (length(rx_obj) > 0) {
message(b)
rx_df <- do.call(rbind.data.frame, strsplit(rx_obj, '\"'))[, c(4, 6)]
colnames(rx_df) <- c("rxn", "rev")
return(rx_df)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ Available functions:
Citation
--------
Kelly Botero, Daniel Osorio, Janneth Gonzalez and Andres Pinzon-Velasco (2016). **g2f: Find and Fill Gaps in Metabolic Networks**. R package version 0.1.

Daniel Osorio, Andres Pinzon-Velasco, Nicolas Mendoza-Mejia, Felipe Rojas-Rodriguez and Janneth Gonzalez (2020). **g2f as a Novel Tool to Find and Fill Gaps in Metabolic Networks**. R package version 0.1.
10 changes: 5 additions & 5 deletions man/extractModelReact.Rd → man/getReactionsList.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1e6746

Please sign in to comment.