Giter VIP home page Giter VIP logo

phylocomr's Introduction

phylocomr

Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-check cran version codecov rstudio mirror downloads

phylocomr gives you access to the Phylocom C library, licensed under BSD 2-clause

Package API

  • ecovolve/ph_ecovolve - interface to ecovolve executable, and a higher level interface
  • phylomatic/ph_phylomatic - interface to phylomatic executable, and a higher level interface
  • phylocom - interface to phylocom executable
  • ph_aot - higher level interface to aot
  • ph_bladj - higher level interface to bladj
  • ph_comdist/ph_comdistnt - higher level interface to comdist
  • ph_comstruct - higher level interface to comstruct
  • ph_comtrait - higher level interface to comtrait
  • ph_pd - higher level interface to Faith’s phylogenetic diversity

A note about files

As a convenience you can pass ages, sample and trait data.frame’s, and phylogenies as strings, to phylocomr functions. However, phylocomr has to write these data.frame’s/strings to disk (your computer’s file system) to be able to run the Phylocom code on them. Internally, phylocomr is writing to a temporary file to run Phylocom code, and then the file is removed.

In addition, you can pass in files instead of data.frame’s/strings. These are not themselves used. Instead, we read and write those files to temporary files. We do this for two reasons. First, Phylocom expects the files its using to be in the same directory, so if we control the file paths that becomes easier. Second, Phylocom is case sensitive, so we simply standardize all taxon names by lower casing all of them. We do this case manipulation on the temporary files so that your original data files are not modified.

Installation

Stable version:

install.packages("phylocomr")

Development version:

remotes::install_github("ropensci/phylocomr")

library("phylocomr")
library("ape")

ecovolve

ph_ecovolve(speciation = 0.05, extinction = 0.005, time_units = 50)

phylomatic

taxa_file <- system.file("examples/taxa", package = "phylocomr")
phylo_file <- system.file("examples/phylo", package = "phylocomr")
(taxa_str <- readLines(taxa_file))

#> [1] "campanulaceae/lobelia/lobelia_conferta"          
#> [2] "cyperaceae/mapania/mapania_africana"             
#> [3] "amaryllidaceae/narcissus/narcissus_cuatrecasasii"

(phylo_str <- readLines(phylo_file))

#> [1] "(((((eliea_articulata,homalanthus_populneus)malpighiales,rosa_willmottiae),((macrocentrum_neblinae,qualea_clavata),hibiscus_pohlii)malvids),(((lobelia_conferta,((millotia_depauperata,(layia_chrysanthemoides,layia_pentachaeta)layia),senecio_flanaganii)asteraceae)asterales,schwenkia_americana),tapinanthus_buntingii)),(narcissus_cuatrecasasii,mapania_africana))poales_to_asterales;"

ph_phylomatic(taxa = taxa_str, phylo = phylo_str)

#> [1] "(lobelia_conferta:5.000000,(mapania_africana:1.000000,narcissus_cuatrecasasii:1.000000):1.000000)poales_to_asterales:1.000000;\n"
#> attr(,"taxa_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/taxa_577357322292"
#> attr(,"phylo_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/phylo_57731c7bcbf7"

use various different references trees

library(brranching)
library(ape)

r2 <- ape::read.tree(text=brranching::phylomatic_trees[['R20120829']])
smith2011 <- ape::read.tree(text=brranching::phylomatic_trees[['smith2011']])
zanne2014 <- ape::read.tree(text=brranching::phylomatic_trees[['zanne2014']])

# R20120829 tree
taxa_str <- c(
  "asteraceae/bidens/bidens_alba",
  "asteraceae/cirsium/cirsium_arvense",
  "fabaceae/lupinus/lupinus_albus"
)
ph_phylomatic(taxa = taxa_str, phylo = r2)

#> [1] "(((bidens_alba:13.000000,cirsium_arvense:13.000000):19.000000,lupinus_albus:27.000000):12.000000)euphyllophyte:1.000000;\n"
#> attr(,"taxa_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/taxa_577350fa1f1c"
#> attr(,"phylo_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/phylo_5773551090cc"

# zanne2014 tree
taxa_str <- c(
  "zamiaceae/dioon/dioon_edule",
  "zamiaceae/encephalartos/encephalartos_dyerianus",
  "piperaceae/piper/piper_arboricola"
)
ph_phylomatic(taxa = taxa_str, phylo = zanne2014)

#> [1] "(((dioon_edule:121.744843,encephalartos_dyerianus:121.744850)zamiaceae:230.489838,piper_arboricola:352.234711)spermatophyta:88.058670):0.000000;\n"
#> attr(,"taxa_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/taxa_577332926cb5"
#> attr(,"phylo_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/phylo_57732b1ef903"

# zanne2014 subtree
zanne2014_subtr <- ape::extract.clade(zanne2014, node='Loganiaceae')
zanne_subtree_file <- tempfile(fileext = ".txt")
ape::write.tree(zanne2014_subtr, file = zanne_subtree_file)
taxa_str <- c(
  "loganiaceae/neuburgia/neuburgia_corynocarpum",
  "loganiaceae/geniostoma/geniostoma_borbonicum",
  "loganiaceae/strychnos/strychnos_darienensis"
)
ph_phylomatic(taxa = taxa_str, phylo = zanne2014_subtr)

#> [1] "((neuburgia_corynocarpum:32.807743,(geniostoma_borbonicum:32.036335,strychnos_darienensis:32.036335):0.771406):1.635496)loganiaceae:0.000000;\n"
#> attr(,"taxa_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/taxa_57737ac12496"
#> attr(,"phylo_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/phylo_57731e4932d0"

ph_phylomatic(taxa = taxa_str, phylo = zanne_subtree_file)

#> [1] "((neuburgia_corynocarpum:32.807743,(geniostoma_borbonicum:32.036335,strychnos_darienensis:32.036335):0.771406):1.635496)loganiaceae:0.000000;\n"
#> attr(,"taxa_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/taxa_577357a70538"
#> attr(,"phylo_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/phylo_57731647cc7d"

aot

traits_file <- system.file("examples/traits_aot", package = "phylocomr")
phylo_file <- system.file("examples/phylo_aot", package = "phylocomr")
traitsdf_file <- system.file("examples/traits_aot_df", package = "phylocomr")
traits <- read.table(text = readLines(traitsdf_file), header = TRUE,
  stringsAsFactors = FALSE)
phylo_str <- readLines(phylo_file)
ph_aot(traits = traits, phylo = phylo_str)

#> $trait_conservatism
#> # A tibble: 124 × 28
#>    trait trait.n…¹  node name    age ntaxa n.nodes tip.mn tmn.r…² tmn.r…³ tip.sd
#>    <int> <chr>     <int> <chr> <dbl> <int>   <int>  <dbl>   <int>   <int>  <dbl>
#>  1     1 traitA        0 a         5    32       2   1.75    1000    1000  0.440
#>  2     1 traitA        1 b         4    16       2   1.75     647     660  0.447
#>  3     1 traitA        2 c         3     8       2   1.75     700     688  0.463
#>  4     1 traitA        3 d         2     4       2   1.5      264     959  0.577
#>  5     1 traitA        4 e         1     2       2   1         65    1000  0    
#>  6     1 traitA        7 f         1     2       2   2       1000     544  0    
#>  7     1 traitA       10 g         2     4       2   2       1000     294  0    
#>  8     1 traitA       11 h         1     2       2   2       1000     549  0    
#>  9     1 traitA       14 i         1     2       2   2       1000     542  0    
#> 10     1 traitA       17 j         3     8       2   1.75     648     716  0.463
#> # … with 114 more rows, 17 more variables: tsd.ranklow <int>, tsd.rankhi <int>,
#> #   node.mn <dbl>, nmn.ranklow <int>, nmn.rankhi <int>, nod.sd <dbl>,
#> #   nsd.ranklow <int>, nsd.rankhi <int>, sstipsroot <dbl>, sstips <dbl>,
#> #   percvaramongnodes <dbl>, percvaratnode <dbl>, contributionindex <dbl>,
#> #   sstipvnoderoot <dbl>, sstipvnode <dbl>, ssamongnodes <dbl>,
#> #   sswithinnodes <dbl>, and abbreviated variable names ¹​trait.name,
#> #   ²​tmn.ranklow, ³​tmn.rankhi
#> 
#> $independent_contrasts
#> # A tibble: 31 × 17
#>     node name    age n.nodes contrast1 contrast2 contr…¹ contr…² contr…³ lowval1
#>    <int> <chr> <dbl>   <int>     <dbl>     <dbl>   <dbl>   <dbl>   <dbl>   <dbl>
#>  1     0 a         5       2     0         0       0       0.254    1.97    1.75
#>  2     1 b         4       2     0         1.03    0       0.516    1.94    1.75
#>  3     2 c         3       2     0.267     0.535   0       0        1.87    1.5 
#>  4     3 d         2       2     0.577     0       1.15    0        1.73    1   
#>  5     4 e         1       2     0         0       0.707   0        1.41    1   
#>  6     7 f         1       2     0         0       0.707   0        1.41    2   
#>  7    10 g         2       2     0         0       1.15    0        1.73    2   
#>  8    11 h         1       2     0         0       0.707   0        1.41    2   
#>  9    14 i         1       2     0         0       0.707   0        1.41    2   
#> 10    17 j         3       2     0.267     0.535   0       0        1.87    1.5 
#> # … with 21 more rows, 7 more variables: hival1 <dbl>, lowval2 <dbl>,
#> #   hival2 <dbl>, lowval3 <dbl>, hival3 <dbl>, lowval4 <dbl>, hival4 <dbl>, and
#> #   abbreviated variable names ¹​contrast3, ²​contrast4, ³​contrastsd
#> 
#> $phylogenetic_signal
#> # A tibble: 4 × 5
#>   trait  ntaxa varcontr varcn.ranklow varcn.rankhi
#>   <chr>  <int>    <dbl>         <int>        <int>
#> 1 traitA    32    0.054             1         1000
#> 2 traitB    32    0.109             1         1000
#> 3 traitC    32    0.622            51          950
#> 4 traitD    32    0.011             1         1000
#> 
#> $ind_contrast_corr
#> # A tibble: 3 × 6
#>   xtrait ytrait ntaxa  picr  npos ncont
#>   <chr>  <chr>  <int> <dbl> <dbl> <int>
#> 1 traitA traitB    32 0.248  18.5    31
#> 2 traitA traitC    32 0.485  27.5    31
#> 3 traitA traitD    32 0      16.5    31

bladj

ages_file <- system.file("examples/ages", package = "phylocomr")
phylo_file <- system.file("examples/phylo_bladj", package = "phylocomr")
ages_df <- data.frame(
  a = c('malpighiales','salicaceae','fabaceae','rosales','oleaceae',
        'gentianales','apocynaceae','rubiaceae'),
  b = c(81,20,56,76,47,71,18,56)
)
phylo_str <- readLines(phylo_file)
(res <- ph_bladj(ages = ages_df, phylo = phylo_str))

#> [1] "((((((lomatium_concinnum:20.250000,campanula_vandesii:20.250000):20.250000,(((veronica_candidissima:10.125000,penstemon_paniculatus:10.125000)plantaginaceae:10.125000,justicia_oblonga:20.250000):10.125000,marsdenia_gilgiana:30.375000):10.125000):10.125000,epacris_alba-compacta:50.625000)ericales_to_asterales:10.125000,((daphne_anhuiensis:20.250000,syzygium_cumini:20.250000)malvids:20.250000,ditaxis_clariana:40.500000):20.250000):10.125000,thalictrum_setulosum:70.875000)eudicots:10.125000,((dendrocalamus_giganteus:27.000000,guzmania_densiflora:27.000000)poales:27.000000,warczewiczella_digitata:54.000000):27.000000)malpighiales:1.000000;\n"
#> attr(,"ages_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/ages"
#> attr(,"phylo_file")
#> [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpeMkOMc/phylo_577376efe8a"

plot(ape::read.tree(text = res))

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for phylocomr in R doing citation(package = 'phylocomr')
  • Please note that this package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

phylocomr's People

Contributors

daijiang avatar jeroen avatar lunasare avatar mtholder avatar sckott avatar snacktavish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

phylocomr's Issues

Warning message: package ‘phylocomr’ is not available

Ops,

It seems to be an issue between remote and utils with older versions of windows (r-lib/remotes#130). I used install_github("ropensci/phylocomr") and it installed fine in my old pc.

Sorry for the inconvenience.

Hi there,

I am trying to install phylocomr in R versions 3.4.2 and 3.5 in two distinct computers but I am getting the following message:

install.packages("phylocomr")
--- Please select a CRAN mirror for use in this session ---
Warning message:
package ‘phylocomr’ is not available (for R version 3.4.2)

I tried to install locally by zip file, but it was not possible either. I could only install the development version using remotes (remotes::install_github("ropensci/phylocomr"), but in a Mac not Windows. Is there something happening or the problem is in my end?

Thanks

Session Info

windows build errors

Winbuilder install notes

* installing *source* package 'phylocomr' ...
** libs

*** arch - i386
rm -Rf nothing.o register.o libphylocom/*.o libphylocom.a phylocom ecovolve phylomatic
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/io.c -o libphylocom/io.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/new2fy.c -o libphylocom/new2fy.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/aot.c -o libphylocom/aot.o
libphylocom/aot.c: In function 'TipStats':
libphylocom/aot.c:274:9: warning: variable 'RXY' set but not used [-Wunused-but-set-variable]
   float RXY; 
         ^
libphylocom/aot.c:273:15: warning: variable 'y' set but not used [-Wunused-but-set-variable]
   int i,j,k,x,y,node;
               ^
libphylocom/aot.c: In function 'PIC':
libphylocom/aot.c:338:13: warning: variable 'upn' set but not used [-Wunused-but-set-variable]
   int node, upn;
             ^
libphylocom/aot.c: In function 'AOT':
libphylocom/aot.c:403:14: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
           if (pick > size)
              ^
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/traits.c -o libphylocom/traits.o
libphylocom/traits.c: In function 'PSigRun':
libphylocom/traits.c:22:16: warning: variable 'cx' set but not used [-Wunused-but-set-variable]
   int i, j, k, cx, run, depth, node, dtx, dtxlow, dtxhi, swap, tmp, bin;
                ^
libphylocom/traits.c: In function 'RandArrayT':
libphylocom/traits.c:1780:12: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
         if (pick > size) {
            ^
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/comstruct.c -o libphylocom/comstruct.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/nrutil.c -o libphylocom/nrutil.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/fy2new.c -o libphylocom/fy2new.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/bladj.c -o libphylocom/bladj.o
libphylocom/bladj.c: In function 'Bladj':
libphylocom/bladj.c:16:7: warning: variable 'matched' set but not used [-Wunused-but-set-variable]
   int matched;
       ^
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/comnode.c -o libphylocom/comnode.o
libphylocom/comnode.c: In function 'Comnode':
libphylocom/comnode.c:25:9: warning: variable 'Out' set but not used [-Wunused-but-set-variable]
   phylo Out[1];
         ^
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/prune.c -o libphylocom/prune.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/comtrait.c -o libphylocom/comtrait.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/stats.c -o libphylocom/stats.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/combase.c -o libphylocom/combase.o
mkdir -p ../inst/bin/i386
d:/Compiler/gcc-4.9.3/mingw_32/bin/ar rcs libphylocom.a libphylocom/io.o libphylocom/new2fy.o libphylocom/aot.o libphylocom/traits.o libphylocom/comstruct.o libphylocom/nrutil.o libphylocom/fy2new.o libphylocom/bladj.o libphylocom/comnode.o libphylocom/prune.o libphylocom/comtrait.o libphylocom/stats.o libphylocom/nrutil.o libphylocom/combase.o libphylocom/prune.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/main.c -o libphylocom/main.o
libphylocom/main.c: In function 'main':
libphylocom/main.c:193:13: warning: ISO C forbids zero-size array 'IntreeV' [-Wpedantic]
       phylo IntreeV[0];
             ^
libphylocom/main.c:205:13: warning: ISO C forbids zero-size array 'IntreeV' [-Wpedantic]
       phylo IntreeV[0];
             ^
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc   -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -o phylocom libphylocom/main.o -L. -lphylocom -lm
cp -f phylocom ../inst/bin/i386
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/ecomain.c -o libphylocom/ecomain.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc   -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -o ecovolve libphylocom/ecomain.o -L. -lphylocom -lm
cp -f ecovolve ../inst/bin/i386
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/phylomatic.c -o libphylocom/phylomatic.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc   -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -o phylomatic libphylocom/phylomatic.o -L. -lphylocom -lm
cp -f phylomatic ../inst/bin/i386
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c nothing.c -o nothing.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc  -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O3 -Wall  -std=gnu99 -mtune=core2 -c register.c -o register.o
d:/Compiler/gcc-4.9.3/mingw_32/bin/gcc -shared -s -static-libgcc -o phylocomr.dll tmp.def nothing.o register.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/i386 -lR
installing to d:/RCompile/CRANguest/R-devel/lib/phylocomr/libs/i386

*** arch - x64
rm -Rf nothing.o register.o libphylocom/*.o libphylocom.a phylocom ecovolve phylomatic
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/io.c -o libphylocom/io.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/new2fy.c -o libphylocom/new2fy.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/aot.c -o libphylocom/aot.o
libphylocom/aot.c: In function 'TipStats':
libphylocom/aot.c:274:9: warning: variable 'RXY' set but not used [-Wunused-but-set-variable]
   float RXY; 
         ^
libphylocom/aot.c:273:15: warning: variable 'y' set but not used [-Wunused-but-set-variable]
   int i,j,k,x,y,node;
               ^
libphylocom/aot.c: In function 'PIC':
libphylocom/aot.c:338:13: warning: variable 'upn' set but not used [-Wunused-but-set-variable]
   int node, upn;
             ^
libphylocom/aot.c: In function 'RandArray':
libphylocom/aot.c:403:14: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
           if (pick > size)
              ^
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/traits.c -o libphylocom/traits.o
libphylocom/traits.c: In function 'PSigRun':
libphylocom/traits.c:22:16: warning: variable 'cx' set but not used [-Wunused-but-set-variable]
   int i, j, k, cx, run, depth, node, dtx, dtxlow, dtxhi, swap, tmp, bin;
                ^
libphylocom/traits.c: In function 'RandArrayT':
libphylocom/traits.c:1780:12: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
         if (pick > size) {
            ^
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/comstruct.c -o libphylocom/comstruct.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/nrutil.c -o libphylocom/nrutil.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/fy2new.c -o libphylocom/fy2new.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/bladj.c -o libphylocom/bladj.o
libphylocom/bladj.c: In function 'Bladj':
libphylocom/bladj.c:16:7: warning: variable 'matched' set but not used [-Wunused-but-set-variable]
   int matched;
       ^
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/comnode.c -o libphylocom/comnode.o
libphylocom/comnode.c: In function 'Comnode':
libphylocom/comnode.c:25:9: warning: variable 'Out' set but not used [-Wunused-but-set-variable]
   phylo Out[1];
         ^
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/prune.c -o libphylocom/prune.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/comtrait.c -o libphylocom/comtrait.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/stats.c -o libphylocom/stats.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/combase.c -o libphylocom/combase.o
mkdir -p ../inst/bin/x64
d:/Compiler/gcc-4.9.3/mingw_64/bin/ar rcs libphylocom.a libphylocom/io.o libphylocom/new2fy.o libphylocom/aot.o libphylocom/traits.o libphylocom/comstruct.o libphylocom/nrutil.o libphylocom/fy2new.o libphylocom/bladj.o libphylocom/comnode.o libphylocom/prune.o libphylocom/comtrait.o libphylocom/stats.o libphylocom/nrutil.o libphylocom/combase.o libphylocom/prune.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/main.c -o libphylocom/main.o
libphylocom/main.c: In function 'main':
libphylocom/main.c:193:13: warning: ISO C forbids zero-size array 'IntreeV' [-Wpedantic]
       phylo IntreeV[0];
             ^
libphylocom/main.c:205:13: warning: ISO C forbids zero-size array 'IntreeV' [-Wpedantic]
       phylo IntreeV[0];
             ^
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64  -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -o phylocom libphylocom/main.o -L. -lphylocom -lm
cp -f phylocom ../inst/bin/x64
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/ecomain.c -o libphylocom/ecomain.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64  -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -o ecovolve libphylocom/ecomain.o -L. -lphylocom -lm
cp -f ecovolve ../inst/bin/x64
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c libphylocom/phylomatic.c -o libphylocom/phylomatic.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64  -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -o phylomatic libphylocom/phylomatic.o -L. -lphylocom -lm
cp -f phylomatic ../inst/bin/x64
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c nothing.c -o nothing.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -std=gnu99 -mtune=core2 -c register.c -o register.o
d:/Compiler/gcc-4.9.3/mingw_64/bin/gcc -m64 -shared -s -static-libgcc -o phylocomr.dll tmp.def nothing.o register.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/x64 -lR
installing to d:/RCompile/CRANguest/R-devel/lib/phylocomr/libs/x64
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* MD5 sums
packaged installation of 'phylocomr' as phylocomr_0.1.0.zip
* DONE (phylocomr)

and some of the check notes

* checking whether package 'phylocomr' can be installed ... WARNING
Found the following significant warnings:
  libphylocom/main.c:193:13: warning: ISO C forbids zero-size array 'IntreeV' [-Wpedantic]
  libphylocom/main.c:205:13: warning: ISO C forbids zero-size array 'IntreeV' [-Wpedantic]
See 'd:/RCompile/CRANguest/R-devel/phylocomr.Rcheck/00install.out' for details.

Error: call to 'phylomatic' failed with status -1073740940

I am getting the following error when I use the ph_phylomatic function in phylocomr;

tree_arctic<-ph_phylomatic(taxa = taxa_list_short, phylo = zanne2014)
Error: call to 'phylomatic' failed with status -1073740940

Here is my code. There is a list of 232 taxa (family/genus/genus_species) in species_list$family_genus_species (attached):
library("phylocomr")
library("ape")

zanne2014 <- ape::read.tree(text=brranching::phylomatic_trees[['zanne2014']])
species_list<-read.csv(file="species_list.csv",header = TRUE, stringsAsFactors=FALSE)
taxa_list<-unique(species_list$family_genus_species)
tree_arctic<-ph_phylomatic(taxa = taxa_list, phylo = zanne2014)

but if I use a much short taxa list it works and the phylogeny is created:
taxa_list_short<-taxa_list[1:6]
tree_arctic<-ph_phylomatic(taxa = taxa_list_short, phylo = zanne2014)
I am wondering if it is related to this issue ropensci/brranching#17 where this is mentioned "I traced down the error and in my case it lies within the phylomatic function. For some reason, the output called out is truncated. It can contain 8095 characters at maximum. If I add too many species, the output just cuts somewhere in the middle of a species name, and the final ";" is missing. This forces read.newick into an eternal loop." BTW I did also try using phylomatic_local in brranching and it just disappears down a black and never returns.

Session info is:

sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)

Matrix products: default

Session Info

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] brranching_0.7.0 taxize_0.9.99 ape_5.6-2 phylocomr_0.3.2

loaded via a namespace (and not attached):
[1] Rcpp_1.0.8.3 lattice_0.20-45
[3] prettyunits_1.1.1 ps_1.6.0
[5] zoo_1.8-9 rprojroot_2.0.2
[7] foreach_1.5.2 utf8_1.2.2
[9] R6_2.5.1 plyr_1.8.6
[11] sys_3.4 phytools_1.0-1
[13] coda_0.19-4 pillar_1.7.0
[15] rlang_1.0.2 curl_4.3.2
[17] uuid_1.0-4 data.table_1.14.2
[19] phangorn_2.8.1 callr_3.7.0
[21] Matrix_1.4-0 combinat_0.0-8
[23] desc_1.4.1 stringr_1.4.0
[25] igraph_1.2.11 compiler_4.1.1
[27] numDeriv_2016.8-1.1 pkgconfig_2.0.3
[29] mnormt_2.0.2 pkgbuild_1.3.1
[31] tmvnsim_1.0-2 conditionz_0.1.0
[33] tidyselect_1.1.2 tibble_3.1.4
[35] httpcode_0.3.0 expm_0.999-6
[37] quadprog_1.5-8 codetools_0.2-18
[39] reshape_0.8.8 fansi_0.5.0
[41] crayon_1.5.0 dplyr_1.0.8
[43] withr_2.5.0 MASS_7.3-55
[45] crul_1.2.0 grid_4.1.1
[47] nlme_3.1-155 jsonlite_1.8.0
[49] lifecycle_1.0.1 magrittr_2.0.1
[51] cli_3.0.1 stringi_1.7.6
[53] cachem_1.0.6 fs_1.5.0
[55] remotes_2.4.2 scatterplot3d_0.3-41
[57] testthat_3.0.4 xml2_1.3.3
[59] ellipsis_0.3.2 generics_0.1.2
[61] vctrs_0.3.8 fastmatch_1.1-3
[63] iterators_1.0.14 tools_4.1.1
[65] bold_1.2.0 glue_1.4.2
[67] purrr_0.3.4 maps_3.4.0
[69] plotrix_3.8-2 processx_3.5.2
[71] pkgload_1.2.4 parallel_4.1.1
[73] fastmap_1.1.0 memoise_2.0.1
[75] clusterGeneration_1.3.7

species_list.csv

gcc compiler warnings

R cran checks on gcc

Found the following significant warnings:
     libphylocom/io.c:129:36: warning: argument 2 of type ‘char[50]’ with mismatched bound [-Warray-parameter=]
     libphylocom/io.c:597:24: warning: argument 1 of type ‘char[50]’ with mismatched bound [-Warray-parameter=]
     libphylocom/io.c:767:24: warning: argument 1 of type ‘char[50]’ with mismatched bound [-Warray-parameter=]
     libphylocom/io.c:935:26: warning: argument 1 of type ‘char[50]’ with mismatched bound [-Warray-parameter=]
     libphylocom/new2fy.c:9:19: warning: argument 1 of type ‘char[50]’ with mismatched bound [-Warray-parameter=]
     libphylocom/ecomain.c:543:23: warning: argument 1 of type ‘char[11]’ with mismatched bound [-Warray-parameter=]
     libphylocom/phylomatic.c:298:27: warning: argument 1 of type ‘char[100]’ with mismatched bound [-Warray-parameter=]

fixed node ages in ph_bladj are apparently not taken into account

Session Info
Session info -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 setting  value                       
 version  R version 3.4.1 (2017-06-30)
 system   x86_64, darwin15.6.0        
 ui       AQUA                        
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       America/New_York            
 date     2017-10-04                  

Packages -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 package   * version date       source                             
 ape       * 4.1     2017-02-14 CRAN (R 3.4.0)                     
 base      * 3.4.1   2017-07-07 local                              
 coda        0.19-1  2016-12-08 CRAN (R 3.4.0)                     
 compiler    3.4.1   2017-07-07 local                              
 curl        2.8.1   2017-07-21 CRAN (R 3.4.1)                     
 datasets  * 3.4.1   2017-07-07 local                              
 deSolve     1.20    2017-07-14 CRAN (R 3.4.1)                     
 devtools    1.13.3  2017-08-02 CRAN (R 3.4.1)                     
 digest      0.6.12  2017-01-27 CRAN (R 3.4.0)                     
 geiger    * 2.0.6   2015-09-07 CRAN (R 3.4.0)                     
 git2r       0.19.0  2017-07-19 CRAN (R 3.4.1)                     
 graphics  * 3.4.1   2017-07-07 local                              
 grDevices * 3.4.1   2017-07-07 local                              
 grid        3.4.1   2017-07-07 local                              
 httr        1.3.1   2017-08-20 cran (@1.3.1)                      
 lattice     0.20-35 2017-03-25 CRAN (R 3.4.1)                     
 MASS        7.3-47  2017-02-26 CRAN (R 3.4.1)                     
 memoise     1.1.0   2017-04-21 CRAN (R 3.4.0)                     
 methods   * 3.4.1   2017-07-07 local                              
 mvtnorm     1.0-6   2017-03-02 CRAN (R 3.4.0)                     
 nlme        3.1-131 2017-02-06 CRAN (R 3.4.1)                     
 parallel    3.4.1   2017-07-07 local                              
 phylocomr * 0.1.0   2017-09-26 Github (ropensci/phylocomr@3d2eafa)
 R6          2.2.2   2017-06-17 CRAN (R 3.4.0)                     
 Rcpp        0.12.12 2017-07-15 CRAN (R 3.4.1)                     
 stats     * 3.4.1   2017-07-07 local                              
 subplex     1.4-1   2017-07-18 CRAN (R 3.4.1)                     
 sys         1.4     2017-06-24 CRAN (R 3.4.1)                     
 utils     * 3.4.1   2017-07-07 local                              
 withr       2.0.0   2017-07-28 CRAN (R 3.4.1)                     

Using the following commands, with three diferent values of fixed internal node ages, we get the same output trees:

devtools::install_github("ropensci/phylocomr")
library(phylocomr)
library(geiger)
Loading required package: ape
ages_file <- system.file("examples/ages", package = "phylocomr")
phylo_file <- system.file("examples/phylo_bladj", package = "phylocomr")
# from data.frame
ages_df <- data.frame(
   a = c('malpighiales','salicaceae','fabaceae','rosales','oleaceae',
         'gentianales','apocynaceae','rubiaceae'),
   b = c(81,20,56,76,47,71,18,56)
 )
phylo_str <- readLines(phylo_file)
res <- phylocomr::ph_bladj(ages = ages_df, phylo = phylo_str)
plot(read.tree(text = res))
nodelabels()
ape::axisPhylo()
ages_df_me <- data.frame(
   a = c('malpighiales','salicaceae','fabaceae','rosales','oleaceae',
         'gentianales','apocynaceae','rubiaceae'),
   b = c(81,120,156,176,147,171,118,156)
 )
res2 <- phylocomr::ph_bladj(ages = ages_df_me, phylo = phylo_str) # 
plot(read.tree(text = res2))
nodelabels()
ape::axisPhylo()
res
# [1] "((((((lomatium_concinnum:20.250000,campanula_vandesii:20.250000):20.250000,(((veronica_candidissima:10.125000,penstemon_paniculatus:10.125000)plantaginaceae:10.125000,justicia_oblonga:20.250000):10.125000,marsdenia_gilgiana:30.375000):10.125000):10.125000,epacris_alba-compacta:50.625000)ericales_to_asterales:10.125000,((daphne_anhuiensis:20.250000,syzygium_cumini:20.250000)malvids:20.250000,ditaxis_clariana:40.500000):20.250000):10.125000,thalictrum_setulosum:70.875000)eudicots:10.125000,((dendrocalamus_giganteus:27.000000,guzmania_densiflora:27.000000)poales:27.000000,warczewiczella_digitata:54.000000):27.000000)malpighiales:1.000000;\n"
# attr(,"ages_file")
# [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpaZxQEc/ages"
# attr(,"phylo_file")
# [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpaZxQEc/phylo_421b1322db5"
res2
# [1] "((((((lomatium_concinnum:20.250000,campanula_vandesii:20.250000):20.250000,(((veronica_candidissima:10.125000,penstemon_paniculatus:10.125000)plantaginaceae:10.125000,justicia_oblonga:20.250000):10.125000,marsdenia_gilgiana:30.375000):10.125000):10.125000,epacris_alba-compacta:50.625000)ericales_to_asterales:10.125000,((daphne_anhuiensis:20.250000,syzygium_cumini:20.250000)malvids:20.250000,ditaxis_clariana:40.500000):20.250000):10.125000,thalictrum_setulosum:70.875000)eudicots:10.125000,((dendrocalamus_giganteus:27.000000,guzmania_densiflora:27.000000)poales:27.000000,warczewiczella_digitata:54.000000):27.000000)malpighiales:1.000000;\n"
# attr(,"ages_file")
# [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpaZxQEc/ages"
# attr(,"phylo_file")
# [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpaZxQEc/phylo_421b3ff2e868"
ages_df_me <- data.frame(
   a = c('malpighiales','salicaceae','fabaceae','rosales','oleaceae',
         'gentianales','apocynaceae','rubiaceae'),
   b = c(81,12.0,15.6,17.6,14.7,17.1,11.8,15.6)
 )
res3 <- phylocomr::ph_bladj(ages = ages_df_me, phylo = phylo_str) # 
plot(read.tree(text = res3))
nodelabels()
ape::axisPhylo()
res3
# [1] "((((((lomatium_concinnum:20.250000,campanula_vandesii:20.250000):20.250000,(((veronica_candidissima:10.125000,penstemon_paniculatus:10.125000)plantaginaceae:10.125000,justicia_oblonga:20.250000):10.125000,marsdenia_gilgiana:30.375000):10.125000):10.125000,epacris_alba-compacta:50.625000)ericales_to_asterales:10.125000,((daphne_anhuiensis:20.250000,syzygium_cumini:20.250000)malvids:20.250000,ditaxis_clariana:40.500000):20.250000):10.125000,thalictrum_setulosum:70.875000)eudicots:10.125000,((dendrocalamus_giganteus:27.000000,guzmania_densiflora:27.000000)poales:27.000000,warczewiczella_digitata:54.000000):27.000000)malpighiales:1.000000;\n"
# attr(,"ages_file")
# [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpaZxQEc/ages"
# attr(,"phylo_file")
# [1] "/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T//RtmpaZxQEc/phylo_421b93ea06d"

Error: Program 'phylocom' terminated by SIGNAL (Segmentation fault) when running ph_pd

Hi,
I am trying to calculate Faith's PD in a sample of avian species.
When i run this code

library(ape)
library(readxl)
library(picante)
library(phylocomr)

samplepd <- read_excel('~/R_library/chapter4/sample_ph_pd.xlsx')
consensus_newick <- read.tree('~/R_library/chapter4/consensus_newick.txt')
samplepd <- as.data.frame(samplepd)

ph_pd(samplepd, consensus_newick)

I get this error:

Error: Program '/home/jovyan/R_library/phylocomr/bin//phylocom' terminated by SIGNAL (Segmentation fault)

These are my files:
consensus_newick.txt
sample_ph_pd.xlsx

An this is my session info:

Session info ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.1.3 (2022-03-10)
 os       Ubuntu 22.04.2 LTS
 system   x86_64, linux-gnu
 ui       RStudio
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       Etc/UTC
 date     2023-09-15
 rstudio  2022.07.1+554 Spotted Wakerobin (server)
 pandoc   2.19.2 @ /opt/conda/bin/pandocPackages ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package           * version    date (UTC) lib source
 ape               * 5.7-1      2023-03-13 [1] CRAN (R 4.1.3)
 cachem              1.0.6      2021-08-19 [2] CRAN (R 4.1.1)
 callr               3.7.2      2022-08-22 [2] CRAN (R 4.1.3)
 cellranger          1.1.0      2016-07-27 [2] CRAN (R 4.1.2)
 cli                 3.4.1      2022-09-23 [2] CRAN (R 4.1.3)
 cluster             2.1.4      2022-08-22 [1] CRAN (R 4.1.3)
 clusterGeneration   1.3.8      2023-08-16 [1] CRAN (R 4.1.3)
 coda                0.19-4     2020-09-30 [1] CRAN (R 4.1.3)
 codetools           0.2-18     2020-11-04 [2] CRAN (R 4.1.0)
 combinat            0.0-8      2012-10-29 [1] CRAN (R 4.1.3)
 crayon              1.5.1      2022-03-26 [2] CRAN (R 4.1.2)
 curl                4.3.2      2021-06-23 [2] CRAN (R 4.1.0)
 devtools            2.4.5      2022-10-11 [1] CRAN (R 4.1.3)
 digest              0.6.29     2021-12-01 [2] CRAN (R 4.1.1)
 doParallel          1.0.17     2022-02-07 [1] CRAN (R 4.1.3)
 ellipsis            0.3.2      2021-04-29 [2] CRAN (R 4.1.0)
 expm                0.999-7    2023-01-09 [1] CRAN (R 4.1.3)
 fansi               1.0.3      2022-03-24 [2] CRAN (R 4.1.2)
 fastmap             1.1.0      2021-01-25 [2] CRAN (R 4.1.0)
 fastmatch           1.1-4      2023-08-18 [1] CRAN (R 4.1.3)
 foreach             1.5.2      2022-02-02 [2] CRAN (R 4.1.2)
 fs                  1.5.2      2021-12-08 [2] CRAN (R 4.1.3)
 generics            0.1.3      2022-07-05 [2] CRAN (R 4.1.3)
 glue                1.6.2      2022-02-24 [2] CRAN (R 4.1.2)
 htmltools           0.5.3      2022-07-18 [2] CRAN (R 4.1.3)
 htmlwidgets         1.5.4      2021-09-08 [2] CRAN (R 4.1.1)
 httpuv              1.6.6      2022-09-08 [2] CRAN (R 4.1.3)
 igraph              1.5.1      2023-08-10 [1] CRAN (R 4.1.3)
 iterators           1.0.14     2022-02-05 [2] CRAN (R 4.1.2)
 later               1.2.0      2021-04-23 [2] CRAN (R 4.1.0)
 lattice           * 0.20-45    2021-09-22 [2] CRAN (R 4.1.1)
 lifecycle           1.0.2      2022-09-09 [2] CRAN (R 4.1.3)
 magrittr            2.0.3      2022-03-30 [2] CRAN (R 4.1.3)
 maps              * 3.4.1      2022-10-30 [1] CRAN (R 4.1.3)
 MASS                7.3-58.1   2022-08-03 [2] CRAN (R 4.1.3)
 Matrix              1.4-1      2022-03-23 [2] CRAN (R 4.1.2)
 memoise             2.0.1      2021-11-26 [2] CRAN (R 4.1.1)
 mgcv                1.8-40     2022-03-29 [2] CRAN (R 4.1.3)
 mime                0.12       2021-09-28 [2] CRAN (R 4.1.1)
 miniUI              0.1.1.1    2018-05-18 [2] CRAN (R 4.1.0)
 mnormt              2.1.1      2022-09-26 [1] CRAN (R 4.1.3)
 nlme              * 3.1-159    2022-08-09 [2] CRAN (R 4.1.3)
 numDeriv            2016.8-1.1 2019-06-06 [2] CRAN (R 4.1.0)
 optimParallel       1.0-2      2021-02-11 [1] CRAN (R 4.1.3)
 permute           * 0.9-7      2022-01-27 [1] CRAN (R 4.1.3)
 phangorn            2.11.1     2023-01-23 [1] CRAN (R 4.1.3)
 phylocomr         * 0.3.4      2023-04-22 [1] CRAN (R 4.1.3)
 phytools          * 1.9-16     2023-07-14 [1] CRAN (R 4.1.3)
 picante           * 1.8.2      2020-06-10 [1] CRAN (R 4.1.3)
 pillar              1.8.1      2022-08-19 [2] CRAN (R 4.1.3)
 pkgbuild            1.3.1      2021-12-20 [2] CRAN (R 4.1.2)
 pkgconfig           2.0.3      2019-09-22 [2] CRAN (R 4.1.0)
 pkgload             1.3.0      2022-06-27 [2] CRAN (R 4.1.3)
 plotrix             3.8-2      2021-09-08 [1] CRAN (R 4.1.3)
 prettyunits         1.1.1      2020-01-24 [2] CRAN (R 4.1.0)
 processx            3.7.0      2022-07-07 [2] CRAN (R 4.1.3)
 profvis             0.3.7      2020-11-02 [2] CRAN (R 4.1.0)
 promises            1.2.0.1    2021-02-11 [2] CRAN (R 4.1.0)
 ps                  1.7.1      2022-06-18 [2] CRAN (R 4.1.3)
 purrr               0.3.4      2020-04-17 [2] CRAN (R 4.1.0)
 quadprog            1.5-8      2019-11-20 [2] CRAN (R 4.1.0)
 R6                  2.5.1      2021-08-19 [2] CRAN (R 4.1.1)
 Rcpp                1.0.9      2022-07-08 [2] CRAN (R 4.1.3)
 readxl            * 1.4.2      2023-02-09 [1] CRAN (R 4.1.3)
 remotes             2.4.2      2021-11-30 [2] CRAN (R 4.1.1)
 rlang               1.1.1      2023-04-28 [1] CRAN (R 4.1.3)
 rprojroot           2.0.3      2022-04-02 [2] CRAN (R 4.1.3)
 rstudioapi          0.14       2022-08-22 [2] CRAN (R 4.1.3)
 scatterplot3d       0.3-44     2023-05-05 [1] CRAN (R 4.1.3)
 sessioninfo         1.2.2      2021-12-06 [2] CRAN (R 4.1.1)
 shiny               1.7.2      2022-07-19 [2] CRAN (R 4.1.3)
 stringi             1.7.8      2022-07-11 [2] CRAN (R 4.1.3)
 stringr             1.4.1      2022-08-20 [2] CRAN (R 4.1.3)
 sys                 3.4        2020-07-23 [2] CRAN (R 4.1.0)
 tibble              3.1.8      2022-07-22 [2] CRAN (R 4.1.3)
 urlchecker          1.0.1      2021-11-30 [2] CRAN (R 4.1.3)
 usethis             2.1.6      2022-05-25 [2] CRAN (R 4.1.3)
 utf8                1.2.2      2021-07-24 [2] CRAN (R 4.1.0)
 vctrs               0.4.1      2022-04-13 [2] CRAN (R 4.1.3)
 vegan             * 2.6-4      2022-10-11 [1] CRAN (R 4.1.3)
 withr               2.5.0      2022-03-03 [2] CRAN (R 4.1.2)
 xtable              1.8-4      2019-04-21 [2] CRAN (R 4.1.0)

 [1] /home/jovyan/R_library
 [2] /opt/conda/lib/R/library

Right now, I am working from in my institute's jupyter server (that's why there are so many loaded packages). When I work from my Mac (Monterey 12.5.1) the error message is the same. However, when I do it from my PC (Windows 11) the error message I get is

Error: call to 'phylocom' failed with status -1073741819

I can give the session info in these cases if needed, too.
I have been checking closed issues that are similar to mine and tried different solutions, checked if my newick have scientific notations (which seem to have been causing problems to other users) but I did not find a solution that worked for me.
Could be some error on my data formatting that I am not noticing?

Thank you so much in advance!

Segmentation fault with zanne2014 tree

Hi Scott,
I am using the phylocomr package to get a phylogeny for >10k species based on the R20120829 and zanne2014 phylogeny. I have a couple of questions, which are not actually related with the technical side of this package (I apology for this).

  1. I assume that the generated tree will be the same if I use phylocomr, or brranching::phylomatic_local or phylomatic (shell), correct?
  2. When I get the phylogeny from zanne2014, I got a Segmentation fault error when analyzing with a sample file; however, it is fine with the phylogeny from R20120829 with the same sample file. I am sure it is the phylogeny file problem, since the sample file is the same. However, the source code are written in C, which hinders me to figure out why. I wonder can you help me out with this? Thank you very much.

I attached the sample file (simplified) and the two phylogenies.

ph_pd(sample = "sample.txt", phylo = "zanne.txt")
## Error: Program '/Users/dli/R/phylocomr/bin//phylocom' terminated by SIGNAL (Segmentation fault: 11)
ph_pd(sample = "sample.txt", phylo = "apg.txt")
## A tibble: 3 x 5
## ...

sample.txt
zanne.txt
apg.txt

Thanks for all your work.
Daijiang

Error accessing phylocom from R

phylocomr-phylocom-from-R.txt
Thanks for making this package!

I have R version 3.4 on Windows 7.

I installed Rtools and downloaded phylocomR package as instructed.

However when I run the bladj line, I get the following error

Error: call to 'phylocom' failed with status -1073741819

This may be a problem with some program getting blocked, I can't say for sure.

As workaround, I've found two other ways to access phylocom-- directly from the .bat file and using the "rbladj" function written by Cam Webb.
These are options "1" and "2" in the script

Attached script--First part is to build tree. Acces to phylocom is at lines 56-86

issue with ph_aot with phylo files:

Session Info version R version 3.6.0 (2019-04-26) os macOS 10.15.1 system x86_64, darwin15.6.0 ui RStudio language (EN) collate en_AU.UTF-8 ctype en_AU.UTF-8 date 2019-11-19

I'm having an issue with ph_aot trying to import phylogenies from phylo files:

Error in seq.default(from = grep("Trait conservatism by node", out) + :
'from' must be of length 1

The example from the vignette - readLines(phylo_file) - works fine, but I can't figure out the issue importing phylo objects. Apologies in advance if this is something basic.

Example code below:

library(ape)
data(bird.orders)
tree <- (bird.orders)

traits <- data.frame("name" = 1:23)

traits$name <- tree$tip.label
traits$traitA <- rbinom(23, 1,.5)
traits$traitB <- rbinom(23, 1,.5)
traits$traitC <- rbinom(23, 1,.5)
traits$traitD <- as.integer(floor(runif(23, 1,5)))

tree$tip.label %in% traits$name
tree2 <- write.tree(tree)

ph_aot(traits = traits, phylo = tree)
ph_aot(traits = traits, phylo = tree2)

Example failure

When running cmd check. Did I cause this or was this not working before?

> ### Name: ph_ecovolve
> ### Title: ecovolve
> ### Aliases: ph_ecovolve
> 
> ### ** Examples
> 
> library(phytools)
Loading required package: ape
Loading required package: maps
> plo_t <- function(x) plot(phytools::read.newick(text = x))
> 
> plo_t(ph_ecovolve(speciation = 0.05))
balance: 0.327273, time: 100, lineages: 12
> plo_t(ph_ecovolve(speciation = 0.1))
Error in while (text[i] != ";") { : argument is of length zero
Calls: plo_t -> plot -> <Anonymous> -> newick
Execution halted
* DONE
Status: 1 ERROR
checking examples ... ERROR
Running examples in ‘phylocomr-Ex.R’ failed

ph_phylomatic function test failing

Simple devtools::check() gives error below, but running the functions outside the test does work:

══ Failed tests ════════════════════════════════════════════════════════════════
── Error (test-phylomatic.R:20:2): ph_phylomatic works with chr string input ───
Error: Program '/private/var/folders/ss/2tpkp325521_kfgn59g44vd80000gn/T/RtmptTM9Ev/phylocomr.Rcheck/phylocomr/bin//phylomatic' terminated by SIGNAL (Trace/BPT trap: 5)
Backtrace:1. └─phylocomr::ph_phylomatic(taxa = taxa_str, phylo = phylo_str) at test-phylomatic.R:20:1
 2.   ├─base::suppressWarnings(...)
 3.   │ └─base::withCallingHandlers(...)
 4.   └─phylocomr::phylomatic(...)
 5.     └─phylocomr:::run("phylomatic", args, intern)
 6.       └─sys::exec_internal(path, args, error = FALSE)
 7.         └─sys::exec_wait(...)
 8.           └─sys:::execute(...)

Running the following from RStudio or R command line works:

taxa_file <- system.file("examples/taxa", package = "phylocomr")
phylo_file <- system.file("examples/phylo", package = "phylocomr")

taxa_str <- readLines(taxa_file)
phylo_str <- readLines(phylo_file)

 aa <- ph_phylomatic(taxa = taxa_str, phylo = phylo_str)
Session Info
> sessionInfo()
R version 4.2.0 (2022-04-22)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.6

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.2.0

Error: Program '*/phylocom' terminated by SIGNAL (Segmentation fault)

Hi Scott, thanks for your work on {phylocomr} and {brranching}. These packages are amazing!

I have some trouble using phylocomr::ph_bladj. Specificaly: "Segmentation fault"

I filled this issue with the data I have using. Can you help with this?

if (!require("phylocomr")) install.packages("phylocomr")
#> Loading required package: phylocomr
if (!require("brranching")) install.packages("brranching")
#> Loading required package: brranching
#> 
#> Attaching package: 'brranching'
#> The following object is masked from 'package:phylocomr':
#> 
#>     phylomatic
if (!require("ape")) install.packages("ape")
#> Loading required package: ape

ages <- read.table(
  "https://gist.githubusercontent.com/kguidonimartins/47fe769de6ba0d194157afd8e52c3bb7/raw/c436728c90fcb6df5745b05a1ed87902273cb675/ages_for_issue.txt",
  header = TRUE,
  stringsAsFactors = FALSE
)

str(ages)
#> 'data.frame':    176 obs. of  2 variables:
#>  $ V1: chr  "euphyllophyte" "seedplants" "angiosperm" "nym2ast" ...
#>  $ V2: int  400 325 179 171 165 161 147 137 127 121 ...

spp <- read.table(
  "https://gist.githubusercontent.com/kguidonimartins/47fe769de6ba0d194157afd8e52c3bb7/raw/c9eb1072c10916ae6781a5a346901d82899e6bb6/species_for_issue.txt",
  header = TRUE,
  stringsAsFactors = FALSE
)

str(spp)
#> 'data.frame':    182 obs. of  1 variable:
#>  $ spp_names: chr  "Acer campestre" "Acer negundo" "Acer pseudoplatanus" "Acer rubrum" ...

phylomatic_tree <- brranching::phylomatic(taxa = spp$spp_names, storedtree = "zanne2014", outformat = "newick")

ape::write.tree(phylomatic_tree, "phylomatic_tree")

phylomatic_tree <- ape::read.tree("phylomatic_tree")

class(phylomatic_tree)
#> [1] "phylo"

phylocomr::ph_bladj(ages = ages, phylo = phylomatic_tree)
#> Error: Program '/home/karlo/R/x86_64-pc-linux-gnu-library/3.6/phylocomr/bin//phylocom' terminated by SIGNAL (Segmentation fault)

Created on 2019-11-06 by the reprex package (v0.3.0)

Session info
devtools::session_info()
#> ─ Session info ──────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 3.6.1 (2019-07-05)
#>  os       Ubuntu 16.04.6 LTS          
#>  system   x86_64, linux-gnu           
#>  ui       X11                         
#>  language en_US                       
#>  collate  en_US.UTF-8                 
#>  ctype    pt_BR.UTF-8                 
#>  tz       America/Sao_Paulo           
#>  date     2019-11-06                  
#> 
#> ─ Packages ──────────────────────────────────────────────────────────────
#>  package           * version    date       lib source        
#>  animation           2.6        2018-12-11 [1] CRAN (R 3.6.1)
#>  ape               * 5.3        2019-03-17 [1] CRAN (R 3.6.1)
#>  assertthat          0.2.1      2019-03-21 [1] CRAN (R 3.6.1)
#>  backports           1.1.5      2019-10-02 [1] CRAN (R 3.6.1)
#>  bold                0.9.0      2019-06-27 [1] CRAN (R 3.6.1)
#>  brranching        * 0.5.0      2019-07-27 [1] CRAN (R 3.6.1)
#>  callr               3.3.2      2019-09-22 [1] CRAN (R 3.6.1)
#>  cli                 1.1.0      2019-03-19 [1] CRAN (R 3.6.1)
#>  clusterGeneration   1.3.4      2015-02-18 [1] CRAN (R 3.6.1)
#>  coda                0.19-3     2019-07-05 [1] CRAN (R 3.6.1)
#>  codetools           0.2-16     2018-12-24 [4] CRAN (R 3.5.2)
#>  combinat            0.0-8      2012-10-29 [1] CRAN (R 3.6.1)
#>  conditionz          0.1.0      2019-04-24 [1] CRAN (R 3.6.1)
#>  crayon              1.3.4      2017-09-16 [1] CRAN (R 3.6.1)
#>  crul                0.8.4      2019-08-02 [1] CRAN (R 3.6.1)
#>  curl                4.2        2019-09-24 [1] CRAN (R 3.6.1)
#>  data.table          1.12.4     2019-10-03 [1] CRAN (R 3.6.1)
#>  desc                1.2.0      2018-05-01 [1] CRAN (R 3.6.1)
#>  devtools            2.2.1      2019-09-24 [1] CRAN (R 3.6.1)
#>  digest              0.6.22     2019-10-21 [1] CRAN (R 3.6.1)
#>  ellipsis            0.3.0      2019-09-20 [1] CRAN (R 3.6.1)
#>  evaluate            0.14       2019-05-28 [1] CRAN (R 3.6.1)
#>  expm                0.999-4    2019-03-21 [1] CRAN (R 3.6.1)
#>  fastmatch           1.1-0      2017-01-28 [1] CRAN (R 3.6.1)
#>  foreach             1.4.7      2019-07-27 [1] CRAN (R 3.6.1)
#>  fs                  1.3.1      2019-05-06 [1] CRAN (R 3.6.1)
#>  glue                1.3.1      2019-03-12 [1] CRAN (R 3.6.1)
#>  gtools              3.8.1      2018-06-26 [1] CRAN (R 3.6.1)
#>  highr               0.8        2019-03-20 [1] CRAN (R 3.6.1)
#>  htmltools           0.4.0      2019-10-04 [1] CRAN (R 3.6.1)
#>  httpcode            0.2.0      2016-11-14 [1] CRAN (R 3.6.1)
#>  igraph              1.2.4.1    2019-04-22 [1] CRAN (R 3.6.1)
#>  iterators           1.0.12     2019-07-26 [1] CRAN (R 3.6.1)
#>  jsonlite            1.6        2018-12-07 [1] CRAN (R 3.6.1)
#>  knitr               1.25       2019-09-18 [1] CRAN (R 3.6.1)
#>  lattice             0.20-38    2018-11-04 [4] CRAN (R 3.5.1)
#>  magrittr            1.5        2014-11-22 [1] CRAN (R 3.6.1)
#>  maps                3.3.0      2018-04-03 [1] CRAN (R 3.6.1)
#>  MASS                7.3-51.4   2019-04-26 [4] CRAN (R 3.6.1)
#>  Matrix              1.2-17     2019-03-22 [4] CRAN (R 3.6.1)
#>  memoise             1.1.0      2017-04-21 [1] CRAN (R 3.6.1)
#>  mnormt              1.5-5      2016-10-15 [1] CRAN (R 3.6.1)
#>  nlme                3.1-141    2019-08-01 [4] CRAN (R 3.6.1)
#>  numDeriv            2016.8-1.1 2019-06-06 [1] CRAN (R 3.6.1)
#>  phangorn            2.5.5      2019-06-19 [1] CRAN (R 3.6.1)
#>  phylocomr         * 0.1.4      2019-07-24 [1] CRAN (R 3.6.1)
#>  phytools            0.6-99     2019-06-18 [1] CRAN (R 3.6.1)
#>  pkgbuild            1.0.6      2019-10-09 [1] CRAN (R 3.6.1)
#>  pkgconfig           2.0.3      2019-09-22 [1] CRAN (R 3.6.1)
#>  pkgload             1.0.2      2018-10-29 [1] CRAN (R 3.6.1)
#>  plotrix             3.7-6      2019-06-21 [1] CRAN (R 3.6.1)
#>  plyr                1.8.4      2016-06-08 [1] CRAN (R 3.6.1)
#>  prettyunits         1.0.2      2015-07-13 [1] CRAN (R 3.6.1)
#>  processx            3.4.1      2019-07-18 [1] CRAN (R 3.6.1)
#>  ps                  1.3.0      2018-12-21 [1] CRAN (R 3.6.1)
#>  quadprog            1.5-7      2019-05-06 [1] CRAN (R 3.6.1)
#>  R6                  2.4.0      2019-02-14 [1] CRAN (R 3.6.1)
#>  Rcpp                1.0.2      2019-07-25 [1] CRAN (R 3.6.1)
#>  remotes             2.1.0      2019-06-24 [1] CRAN (R 3.6.1)
#>  reshape             0.8.8      2018-10-23 [1] CRAN (R 3.6.1)
#>  reshape2            1.4.3      2017-12-11 [1] CRAN (R 3.6.1)
#>  rlang               0.4.1      2019-10-24 [1] CRAN (R 3.6.1)
#>  rmarkdown           1.16       2019-10-01 [1] CRAN (R 3.6.1)
#>  rprojroot           1.3-2      2018-01-03 [1] CRAN (R 3.6.1)
#>  scatterplot3d       0.3-41     2018-03-14 [1] CRAN (R 3.6.1)
#>  sessioninfo         1.1.1      2018-11-05 [1] CRAN (R 3.6.1)
#>  stringi             1.4.3      2019-03-12 [1] CRAN (R 3.6.1)
#>  stringr             1.4.0      2019-02-10 [1] CRAN (R 3.6.1)
#>  sys                 3.3        2019-08-21 [1] CRAN (R 3.6.1)
#>  taxize              0.9.9      2019-10-17 [1] CRAN (R 3.6.1)
#>  testthat            2.3.0      2019-11-05 [1] CRAN (R 3.6.1)
#>  triebeard           0.3.0      2016-08-04 [1] CRAN (R 3.6.1)
#>  urltools            1.7.3      2019-04-14 [1] CRAN (R 3.6.1)
#>  usethis             1.5.1      2019-07-04 [1] CRAN (R 3.6.1)
#>  uuid                0.1-2      2015-07-28 [1] CRAN (R 3.6.1)
#>  withr               2.1.2      2018-03-15 [1] CRAN (R 3.6.1)
#>  xfun                0.10       2019-10-01 [1] CRAN (R 3.6.1)
#>  xml2                1.2.2      2019-08-09 [1] CRAN (R 3.6.1)
#>  yaml                2.2.0      2018-07-25 [1] CRAN (R 3.6.1)
#>  zoo                 1.8-6      2019-05-28 [1] CRAN (R 3.6.1)
#> 
#> [1] /home/karlo/R/x86_64-pc-linux-gnu-library/3.6
#> [2] /usr/local/lib/R/site-library
#> [3] /usr/lib/R/site-library
#> [4] /usr/lib/R/library

src libphylocom changes needed

from cran maintainers email:

fail to install with gcc trunk which is due to be released as gcc
10.0.x early in 2020. It defaults to -fno-common, which stricter on
some multiply-defined symbols -- see §1.6.4.1 of 'Writing R Extensions'
in current R-devel.

See https://www.stats.ox.ac.uk/pub/bdr/gcc10/ for the logs, which will
be linked from the CRAN results page under 'Additional issues'.

We expect the issues to also be seen when compiling with earlier
versions of gcc using the (non-default) flag -fno-common: this has been
confirmed for gcc 9 on Linux, and also for clang on macOS.

Please correct as soon as possible and before Jan 10 to safely retain on
CRAN. (This is after the CRAN shutdown from Dec 20 to Jan 6.)

Maintenance status / help needed?

👋 @LunaSare!

Do you still intend to become this package's maintainer?

If so do you need any help? For instance an aspect where you'd appreciate some tips, contributions, a PR review? Do you need an invitation to our friendly Slack workspace?

(yes this is a copy-paste of #47 😸)

feedback

@cboettig @fmichonneau @Pakillo @wcornwell (and let anyone else know that uses phylocom a lot)

curious to get feedback on this - if you use Phylocom that is, if not, nevermind :)

Jeroen was good enough to wrap Phylocom in R for us, - that is, it ships with the package, so works across operating systems. - no need to require users to install it separately. unfortunately, it's not ideal situation since we don't link to it via Rcpp like a proper C library, we just call the executables, but its best we can do, and better than shelling out separately.

I've been working on higher level interfaces to each of the things one can do with Phylocom. Look at the readme https://github.com/ropensci/phylocomr#phylocomr for some examples. Not all higher level things are done yet

Thoughts? Feedback?

one usecase I need it for right now is in the brranching package to call phylomatic locally for when users have massive species lists https://github.com/ropensci/brranching/blob/master/R/phylomatic_local.R

fread warning in C lib

libphylocom/new2fy.c:101:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result 

nodesig and nodesigl - different results in R and shell

Hi!
I am using the commands nodesig and nodesigl to calculate some "hotnodes".
I have some test files to learn how to do it and discovered that I get different results if I run these commands in R or in the shell.

  1. The rank and median are not exactly the same
  2. the node signals are different!!!

When I run it in R, the nexus file for nodsig has e.g. 6 nodes marked with "[%note = 'string:SIGMORE']". The command nodesigl gives me the table where significant nodes are marked with "+". However, in the table, there are 7 "+" - so one signal too much!

When I run it in the shell, exactly the opposite is happening: 7 nodes are marked with [%note = 'string:SIGMORE']" in the nexus file and only 6 nodes are labelled with "+".

I use R studio Version 1.0.136, (R version 3.3.2) - however I can not use phylocomr under this version. (OS X, Version 10.9.5)
Thus I run phylocom via R like this: system("./phylocom nodesigl phylo sample > HotNode_test.txt") - could this maybe cause a problem?

Attached you will find the test files.
Thank you in advance!!

Tree50_test.txt
sample50_test.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.