-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from Chris1221/devel
Bug checks and fixes
- Loading branch information
Showing
6 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
#' | ||
#' @keywords Text Mining, Gene Ontology, Databases | ||
#' | ||
#' @author Christopher B. Cole <[email protected]> | ||
#' @author Christopher B. Cole <chris.c.1221@@gmail.com> | ||
#' | ||
#' @references See ArXiv prepubliation. | ||
#' | ||
|
@@ -151,7 +151,7 @@ Note that any interactively created lists may be saved and inputed. | |
|
||
lims <- as.list(lims) | ||
|
||
flog.warn("Trying to coerce limits to list format.") | ||
flog.debug("Trying to coerce limits to list format.") | ||
flog.info("Printing your lims to log file. You can use this to recreate your list later:") | ||
|
||
flog.info("%s", capture.output(dput(lims))) | ||
|
@@ -460,12 +460,12 @@ Note that any interactively created lists may be saved and inputed. | |
|
||
# Clean this up after, it's really messy right now | ||
|
||
out %>% as.data.frame %>% data.matrix -> input_pdf_tdm | ||
suppressWarnings( out %>% as.data.frame %>% data.matrix ) -> input_pdf_tdm | ||
colnames(input_pdf_tdm) <- NULL | ||
row.names(input_pdf_tdm) <- NULL | ||
|
||
input_term_tdm <- as.matrix(TDM.go.df) | ||
input_term_tdm %<>% as.data.frame %>% data.matrix | ||
input_term_tdm %<>% as.data.frame %>% data.matrix %>% suppressWarnings() | ||
colnames(input_term_tdm) <- NULL | ||
row.names(input_term_tdm) <- NULL | ||
|
||
|
@@ -511,6 +511,8 @@ Note that any interactively created lists may be saved and inputed. | |
|
||
flog.info("Everything was successful. Ending logging now. Have a nice day.") | ||
|
||
colnames(terms) <- c("Identified Terms", "Context") | ||
|
||
if(!object){ | ||
|
||
flog.info("Returning as List, either for internal use or for testing.") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters