Skip to content

Commit 063cee7

Browse files
Merge branch 'master' of github.com:grunwaldlab/metacoder
2 parents e1e0091 + aeea7bc commit 063cee7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/parsers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ parse_phyloseq <- function(obj, class_regex = "(.*)",
6161
# Parse sample data
6262
if (! is.null(obj@sam_data)) {
6363
sam_data <- as.data.frame(as.list(obj@sam_data), stringsAsFactors = FALSE)
64-
if (! is.null(rownames(obj@sam_data))) {
64+
if (! is.null(rownames(obj@sam_data)) & !"sample_id" %in% colnames(obj@sam_data)) {
6565
sam_data <- cbind(sample_id = rownames(obj@sam_data), sam_data)
6666
}
6767
sam_data[] <- lapply(sam_data, as.character)

R/startup.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
startup_msg <- function() {
77
my_version <- utils::packageVersion("metacoder")
88
is_devel <- stringr::str_count(as.character(my_version), "\\.") == 3
9-
paste0('This is metacoder verison ', my_version, ' ',
9+
paste0('This is metacoder version ', my_version, ' ',
1010
ifelse(is_devel, crayon::bold("(development version)"), "(stable)"))#,
1111
# '. If you use metacoder for published research, please cite our paper:\n\n',
1212
# 'Foster Z, Sharpton T and Grunwald N (2017). "Metacoder: An R package for',

0 commit comments

Comments
 (0)