Skip to content

Commit d440242

Browse files
committed
1.13.3 update psmelt, pr/489
1 parent 193e691 commit d440242

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.DS_Store
22
*.Rhistory
33
*.Rproj
4+
*Rplots.pdf
45

56
cache/*
67
figure/*

DESCRIPTION

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: phyloseq
22
Version: 1.13.3
33
Date: 2015-06-17
44
Title: Handling and analysis of high-throughput microbiome
5-
census data.
5+
census data
66
Description: phyloseq provides a set of classes and tools
77
to facilitate the import, storage, analysis, and
88
graphical display of microbiome census data.
@@ -33,6 +33,7 @@ Depends:
3333
R (>= 3.1.0)
3434
Suggests:
3535
genefilter (>= 1.42.0),
36+
reshape (>= 0.8.5),
3637
testthat (>= 0.8),
3738
knitr (>= 1.3)
3839
VignetteBuilder: knitr

R/plot-methods.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ psmelt = function(physeq){
14691469
otutab = otu_table(physeq)
14701470
if(!taxa_are_rows(otutab)){otutab <- t(otutab)}
14711471
# Melt the OTU table: wide form to long form table
1472-
mdf = melt(as(otutab, "matrix"))
1472+
mdf = reshape2::melt(as(otutab, "matrix"))
14731473
colnames(mdf)[1] <- "OTU"
14741474
colnames(mdf)[2] <- "Sample"
14751475
colnames(mdf)[3] <- "Abundance"

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ Presubmission versions ahead of acceptance (2013):
1414

1515

1616
## Latest peer-reviewed article about phyloseq
17+
1718
[phyloseq: An R package for reproducible interactive analysis and graphics of microbiome census data](http://dx.plos.org/10.1371/journal.pone.0061217) (2013) PLoS ONE 8(4):e61217
1819

1920
## Interface with microbio.me/qiime
21+
2022
See the [microbio_me_qiime tutorial](http://joey711.github.io/phyloseq/download-microbio.me.html) for more details and examples downloading and importing into phyloseq/R directly from this public database.
2123

2224
## Other resources
25+
2326
The phyloseq project also has a number of supporting online resources, most of which can by found at [the phyloseq home page](http://joey711.github.com/phyloseq/), or from the phyloseq stable release [page on Bioconductor](http://bioconductor.org/packages/release/bioc/html/phyloseq.html).
2427

2528
To post feature requests or ask for help, try [the phyloseq Issue Tracker](https://github.com/joey711/phyloseq/issues).

tests/testthat/test-plot.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ test_that("psmelt doesn't break when the number of taxa is 1", {
499499
})
500500
test_that("psmelt doesn't break when package reshape is loaded", {
501501
data(GlobalPatterns)
502-
library(reshape)
502+
library("reshape")
503503
mdf1 <- psmelt(GlobalPatterns)
504504
detach(package:reshape)
505505
mdf2 <-psmelt(GlobalPatterns)
506-
expect_equivalent(mdf1,mdf2)
506+
expect_equivalent(mdf1, mdf2)
507507
})
508508
################################################################################

0 commit comments

Comments
 (0)