Closed joey711 closed 7 years ago
Note that installing ape from source on mac requires the lgfortran library installed:
binaries available here: http://gcc.gnu.org/wiki/GFortranBinaries#MacOS
I am running into an issue with using phyloseq after I updated ape. I am newbie to R, so am not sure what to do. This is an example of the code I'm trying to run:
my.ord <- ordinate( physeq = BV.101.113.L.ra, method = "PCoA", distance = "wunifrac" )
ord.plot <- (plot_ordination( physeq = BV.101.113.L.ra, ordination = my.ord, color = "Protection2",
title = "PCoA of lung microbial communities from experiments 101 and 113 (unweighted unifrac)" ) + geom_point(aes(color = Protection2), size = 4) + geom_point(colour = "grey90", size = 1))
And I keep getting the following error: Error in .C(ape:::node_depth_edgelength, PACKAGE = "ape", as.integer(Ntip), : Incorrect number of arguments (7), expecting 5 for 'node_depth_edgelength'
Can you help me?
I'm just a user, so @joey711 can correct me if there is a preferred alternative solution, but for the moment I have been able to work around this error by using the in-development ape-update branch of phyloseq. It may or may not work in your particular case, but is perhaps worth a try.
# run these at the R console
install.packages("devtools")
devtools::install_github("joey711/phyloseq", ref = "ape-update")
library("phyloseq")
# then try re-running your code...
@naupaka that was the right solution while that branch was still in development. I've finished testing/fixing it, and it is now merged into master, so the normal github install command should now work while I work to get this implemented into the Bioconductor branches.
devtools::install_github("joey711/phyloseq")
I'll close this issue once they are pushed into BioC so that the typical release installation provide a working version of phyloseq.
@joey711 Much appreciated. Over the last couple of days I've been trying to figure out how to install from the update branch during a Travis CI build but now that the fixes are on master it's much easier. Thanks again!
@spholmes fyi
Great news, I'll retest... for the book.
On Sat, Nov 4, 2017 at 3:13 PM, Paul J. McMurdie notifications@github.com wrote:
@spholmes https://github.com/spholmes fyi
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joey711/phyloseq/issues/829#issuecomment-341933537, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJcvTy-IV1-4vPJ3G9inULRfocm2de_ks5szOGFgaJpZM4PuQ47 .
-- Susan Holmes John Henry Samter Fellow in Undergraduate Education Professor, Statistics 2017-2018 CASBS Fellow, Sequoia Hall, 390 Serra Mall Stanford, CA 94305 http://www-stat.stanford.edu/~susan/
This is included in master. I also merged with official bioconductor devel and release branches and pushed upward, so as far as I know, these fixes should appear soon in both. I'll close for now, and re-open or post a new ticket if a problem arises. Should appear within one more day or so.
update: the release branch is showing the version update with an all-OS-pass result, including binaries.
http://bioconductor.org/checkResults/release/bioc-LATEST/phyloseq/malbec1-buildsrc.html
this issue definitely closed. any related issues with ape/trees should be posted as a new ticket.
Thanks Joey : a relief that BioC allowed the real update to the release, this is essential... have a good day.
On Mon, Nov 6, 2017 at 1:14 PM, Paul J. McMurdie notifications@github.com wrote:
update: the release branch is showing the version update with an all-OS-pass result, including binaries.
http://bioconductor.org/checkResults/release/bioc-LATEST/phyloseq/malbec1- buildsrc.html
this issue definitely closed. any related issues with ape/trees should be posted as a new ticket.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joey711/phyloseq/issues/829#issuecomment-342288977, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJcvYweVnrk3fvlv3FnPzh4fwmgAJr2ks5sz3bLgaJpZM4PuQ47 .
-- Susan Holmes John Henry Samter Fellow in Undergraduate Education Professor, Statistics 2017-2018 CASBS Fellow, Sequoia Hall, 390 Serra Mall Stanford, CA 94305 http://www-stat.stanford.edu/~susan/
@linneakh did your issue get resolved? also encountering the same issue
Error in .C(ape:::node_depth_edgelength, PACKAGE = "ape", as.integer(Ntip), : Incorrect number of arguments (7), expecting 5 for 'node_depth_edgelength'
in a similar application
Thanks!
that error means you have not updated to the latest version of phyloseq. Please update.
Thanks @joey711, that did the trick!
Thank you @joey711! This issue is all cleared up for me now.
Hi,
I tried updating phyloseq as well and it says all packages are up to date, but I am still receiving the same error as mentioned above
Error in .C(ape:::node_depth_edgelength, PACKAGE = "ape", as.integer(Ntip), : Incorrect number of arguments (7), expecting 5 for 'node_depth_edgelength'
Help Please
@fauzinisha what's your version of phyloseq?
packageVersion('phyloseq')
I think the latest version is 1.22.3. I thought I was running the latest version but I wasn't before I updated!
1.19.1 :( but I ran update packages for ape and phyloseq and it gives me the same ol' "all packages are up to date" My life is a lie. :(
This update seems to have removed ape::pcoa "Y" argument, which took metadata in. I think this may be why vegan::scores doesn't work with phyloseq::ordinate PCoA outputs anymore. Reproducible example below:
data("GlobalPatterns")
GlobalPatterns.r = transform_sample_counts(GlobalPatterns, function(x) x/sum(x))
GlobalPatterns.r.pcoa <- ordinate(
physeq = GlobalPatterns.r,
method = "PCoA",
distance = "jsd",
k=3, trymax=1e3, weighted=TRUE,
formula = ~ Primer + Final_Barcode + SampleType
)
>vegan::scores(GlobalPatterns.r.pcoa, display = "bp")
Error in match.arg(display) : 'arg' should be one of “sites”, “species”
>vegan::scores(GlobalPatterns.r.pcoa, display = "sites")
Error in scores.default(GlobalPatterns.r.pcoa, display = "sites") :
Can't find scores
Could this be it? Is there an alternative to now check the contribution of each metadata variable towards changes in community composition?
This may not be the place for this discussion, so I've also posted the issue here.
Thanks in advance!
Hi! I'm trying to update phyloseq using R version 3.4.4 and it doesn't work (it's not available). I've seen no problems in other computers with R version 3.4.3.
Could anyone help me with this?
The testing development version of ape can be obtained with the following.
Some specific changes have been flagged by the ape developers.
Known failures
The update causes a known break to phyloseq via the following internal function.
This was an internal C-encoded function in ape "borrowed" by phyloseq in order to speed up some tree-specific algorithms.
From the ape author:
Additional details
Ape update details: https://www.mail-archive.com/r-sig-phylo@r-project.org/msg05046.html
Ape versions: http://ape-package.ird.fr/ape_installation.html#versions