dynverse / dyno

Inferring, interpreting and visualising trajectories using a streamlined set of packages 🦕
https://dynverse.github.io/dyno
Other
167 stars 32 forks source link

Error with pCreode = TypeError: slice indices must be integers or None or have an __index__ method #60

Closed semmrich closed 5 years ago

semmrich commented 5 years ago

Hi Dynverse Team,

First and foremost, you created sth formidable here - I am a huge fan of your platform!! Up to now I could resolve a couple of issues by myself, but this one is beyond my horizon:

model.tree.pcreode <- infer_trajectory(dataset, ti_pcreode(n_pca_components = 10, num_runs = 10L), seed = 7, verbose = TRUE)
docker.io/dynverse/ti_pcreode:v0.9.9.01
Executing 'pcreode' on '20190808_144935__data_wrapper__GQCmdkdhU4' With parameters: list(n_pca_components = 10, num_runs = 10L),
inputs: expression, and
priors : 
Input saved to C:\Users\FUCHSD~1\AppData\Local\Temp\Rtmpslaedt\file2eac2c0f391d/ti
Running method using babelwhale
Running "C:\PROGRA~1\Docker\Docker\RESOUR~1\bin\docker.exe" run --name 20190808_154412__container__DJeLusmOdl -e "TMPDIR=/tmp2" \
  --workdir /ti/workspace -v "/c/Users/FUCHSD~1/AppData/Local/Temp/Rtmpslaedt/file2eac2c0f391d/ti:/ti" -v \
  "/c/Users/FUCHSD~1/AppData/Local/Temp/Rtmpslaedt/file2eac1ad32718/tmp:/tmp2" "dynverse/ti_pcreode:v0.9.9.01" --dataset /ti/input.h5 \
  --output /ti/output.h5
Traceback (most recent call last):
  File "/code/run.py", line 34, in <module>
    pca_reduced_data = data_pca.pca_set_components(min(parameters["n_pca_components"],expression.shape[1]))
  File "/pCreode/pcreode/pcreode.py", line 83, in pca_set_components
    return( self.pca[:,:n_components])
TypeError: slice indices must be integers or None or have an __index__ method
Traceback (most recent call last):
  File "/code/run.py", line 34, in <module>
    pca_reduced_data = data_pca.pca_set_components(min(parameters["n_pca_components"],expression.shape[1]))
  File "/pCreode/pcreode/pcreode.py", line 83, in pca_set_components
    return( self.pca[:,:n_components])
TypeError: slice indices must be integers or None or have an __index__ method
Error: Error during trajectory inference, see output above <U+2191><U+2191><U+2191>

Here is my dataset:

> str(dataset)
List of 11
 $ id                  : chr "20190808_144935__data_wrapper__GQCmdkdhU4"
 $ cell_ids            : chr [1:1654] "BM_1_GTATCTTAGGGCTTGA.1" "BM_1_TCATTTGTCTTATCTG.1" "BM_1_GATCGATGTAACGACG.1" "BM_1_ATCCGAACAGTGACAG.1" ...
 $ cell_info           : NULL
 $ counts              :Formal class 'dgCMatrix' [package "Matrix"] with 6 slots
  .. ..@ i       : int [1:2322752] 12 16 104 114 120 122 130 152 159 171 ...
  .. ..@ p       : int [1:10442] 0 42 45 427 434 601 602 606 653 981 ...
  .. ..@ Dim     : int [1:2] 1654 10441
  .. ..@ Dimnames:List of 2
  .. .. ..$ : chr [1:1654] "BM_1_GTATCTTAGGGCTTGA.1" "BM_1_TCATTTGTCTTATCTG.1" "BM_1_GATCGATGTAACGACG.1" "BM_1_ATCCGAACAGTGACAG.1" ...
  .. .. ..$ : chr [1:10441] "A2M" "A3GALT2" "AAAS" "AACS" ...
  .. ..@ x       : num [1:2322752] 1 1 1 1 1 2 1 2 1 1 ...
  .. ..@ factors : list()
 $ expression          :Formal class 'dgCMatrix' [package "Matrix"] with 6 slots
  .. ..@ i       : int [1:2322752] 12 16 104 114 120 122 130 152 159 171 ...
  .. ..@ p       : int [1:10442] 0 42 45 427 434 601 602 606 653 981 ...
  .. ..@ Dim     : int [1:2] 1654 10441
  .. ..@ Dimnames:List of 2
  .. .. ..$ : chr [1:1654] "BM_1_GTATCTTAGGGCTTGA.1" "BM_1_TCATTTGTCTTATCTG.1" "BM_1_GATCGATGTAACGACG.1" "BM_1_ATCCGAACAGTGACAG.1" ...
  .. .. ..$ : chr [1:10441] "A2M" "A3GALT2" "AAAS" "AACS" ...
  .. ..@ x       : num [1:2322752] 1 1 1 1 1 2 1 2 1 1 ...
  .. ..@ factors : list()
 $ expression_projected: NULL
 $ feature_info        :Classes ‘tbl_df’, ‘tbl’ and 'data.frame':   10441 obs. of  1 variable:
  ..$ feature_id: chr [1:10441] "A2M" "A3GALT2" "AAAS" "AACS" ...
 $ feature_ids         : chr [1:10441] "A2M" "A3GALT2" "AAAS" "AACS" ...
 $ prior_information   :List of 5
  ..$ start_id : chr [1:100] "BM_1_GTATCTTAGGGCTTGA.1" "BM_1_TCATTTGTCTTATCTG.1" "BM_1_GATCGATGTAACGACG.1" "BM_1_ATCCGAACAGTGACAG.1" ...
  ..$ end_id   : chr [1:500] "PB_TACGGATGTAGAGCTG.1" "PB_ACCCACTTCCGCATCT.1" "BM_1_GACCAATAGCTACCTA.1" "BM_1_GACCAATGTGCAGACA.1" ...
  ..$ groups_id:'data.frame':   1654 obs. of  2 variables:
  .. ..$ cell_id : chr [1:1654] "BM_1_GTATCTTAGGGCTTGA.1" "BM_1_TCATTTGTCTTATCTG.1" "BM_1_GATCGATGTAACGACG.1" "BM_1_ATCCGAACAGTGACAG.1" ...
  .. ..$ group_id: chr [1:1654] "HSC" "HSC" "HSC" "HSC" ...
  ..$ start_n  : num 1
  ..$ end_n    : num 5
 $ group_ids           : chr [1:19] "HSC" "MPP" "BCP" "BC" ...
 $ grouping            : Named chr [1:1654] "HSC" "HSC" "HSC" "HSC" ...
  ..- attr(*, "names")= chr [1:1654] "BM_1_GTATCTTAGGGCTTGA.1" "BM_1_TCATTTGTCTTATCTG.1" "BM_1_GATCGATGTAACGACG.1" "BM_1_ATCCGAACAGTGACAG.1" ... - attr(*, "class")= chr [1:5] "dynwrap::with_grouping" "dynwrap::with_prior" "dynwrap::with_expression" "dynwrap::data_wrapper" ...
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)

Matrix products: default

Random number generation:
 RNG:     Mersenne-Twister 
 Normal:  Inversion 
 Sample:  Rounding 

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

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

other attached packages:
 [1] dyno_0.1.1                  dynwrap_1.1.4.9000          dynplot_1.0.2.9000          dynmethods_1.0.5           
 [5] dynguidelines_1.0.0         dynfeature_1.0.0.9000       scran_1.12.1                scater_1.12.2              
 [9] futile.matrix_1.2.7         Matrix_1.2-18               data.table_1.12.2           gplots_3.0.3               
[13] Seurat_3.0.2                forcats_0.4.0               stringr_1.4.0               dplyr_0.8.3                
[17] purrr_0.3.2                 readr_1.3.1                 tidyr_0.8.3                 tibble_2.1.3               
[21] ggplot2_3.2.0               tidyverse_1.2.1             SingleCellExperiment_1.6.0  SummarizedExperiment_1.14.1
[25] DelayedArray_0.10.0         BiocParallel_1.18.0         matrixStats_0.54.0          Biobase_2.44.0             
[29] GenomicRanges_1.36.0        GenomeInfoDb_1.20.0         IRanges_2.18.1              S4Vectors_0.22.0           
[33] BiocGenerics_0.30.0        

loaded via a namespace (and not attached):
  [1] reticulate_1.13          R.utils_2.9.0            tidyselect_0.2.5         htmlwidgets_1.3          grid_3.6.1              
  [6] ranger_0.11.2            Rtsne_0.15               munsell_0.5.0            codetools_0.2-16         ica_1.0-2               
 [11] statmod_1.4.32           future_1.14.0            withr_2.1.2              colorspace_1.4-1         rstudioapi_0.10         
 [16] ROCR_1.0-7               gbRd_0.4-11              listenv_0.7.0            labeling_0.3             Rdpack_0.11-0           
 [21] GenomeInfoDbData_1.2.1   polyclip_1.10-0          bit64_0.9-8              farver_1.1.0             vctrs_0.2.0             
 [26] generics_0.0.2           lambda.r_1.2.3           R6_2.4.0                 GA_3.2                   ggbeeswarm_0.6.0        
 [31] rsvd_1.0.2               locfit_1.5-9.1           hdf5r_1.2.0              bitops_1.0-6             assertthat_0.2.1        
 [36] promises_1.0.1           SDMTools_1.1-221.1       scales_1.0.0             ggraph_1.0.2             beeswarm_0.2.3          
 [41] gtable_0.3.0             babelwhale_1.0.0.9000    npsurv_0.4-0             globals_0.12.4           processx_3.4.1          
 [46] tidygraph_1.1.2          rlang_0.4.0              zeallot_0.1.0            scatterplot3d_0.3-41     splines_3.6.1           
 [51] lazyeval_0.2.2           broom_0.5.2              yaml_2.2.0               reshape2_1.4.3           modelr_0.1.4            
 [56] backports_1.1.4          httpuv_1.5.1             tools_3.6.1              RColorBrewer_1.1-2       dynamicTreeCut_1.63-1   
 [61] ggridges_0.5.1           Rcpp_1.0.2               plyr_1.8.4               lambda.tools_1.0.9       zlibbioc_1.30.0         
 [66] RCurl_1.95-4.12          ps_1.3.0                 pbapply_1.4-1            viridis_0.5.1            cowplot_1.0.0           
 [71] dynparam_1.0.0.9000      zoo_1.8-6                haven_2.1.1              ggrepel_0.8.1            cluster_2.1.0           
 [76] magrittr_1.5             futile.options_1.0.1     carrier_0.1.0            lmtest_0.9-37            RANN_2.6.1              
 [81] fitdistrplus_1.0-14      patchwork_0.0.1          hms_0.5.0                lsei_1.2-0               mime_0.7.1              
 [86] xtable_1.8-4             RMTstat_0.3              readxl_1.3.1             gridExtra_2.3            testthat_2.2.1          
 [91] compiler_3.6.1           KernSmooth_2.23-15       crayon_1.3.4             rje_1.9                  R.oo_1.22.0             
 [96] htmltools_0.3.6          proxyC_0.1.5             later_0.8.0              RcppParallel_4.4.3       lubridate_1.7.4         
[101] diffusionMap_1.1-0.1     tweenr_1.0.1             formatR_1.7.1            MASS_7.3-51.4            cli_1.1.0               
[106] R.methodsS3_1.7.1        gdata_2.18.0             metap_1.1                igraph_1.2.4.1           pkgconfig_2.0.2         
[111] plotly_4.9.0             foreach_1.5.1            xml2_1.2.1               vipor_0.4.5              dqrng_0.2.1             
[116] dynutils_1.0.4.9000      XVector_0.24.0           bibtex_0.4.2             rvest_0.3.4              dyndimred_1.0.2.9000    
[121] digest_0.6.20            sctransform_0.2.0        tsne_0.1-3               cellranger_1.1.0         edgeR_3.26.6            
[126] DelayedMatrixStats_1.6.0 shiny_1.3.2              gtools_3.8.1             nlme_3.1-141             jsonlite_1.6            
[131] BiocNeighbors_1.2.0      futile.logger_1.4.3      viridisLite_0.3.0        limma_3.40.6             pillar_1.4.2            
[136] lattice_0.20-38          httr_1.4.1               survival_2.44-1.1        glue_1.3.1               remotes_2.1.0           
[141] iterators_1.0.12         png_0.1-7                bit_1.1-14               ggforce_0.2.2            stringi_1.4.3           
[146] BiocSingular_1.0.0       caTools_1.17.1.2         irlba_2.3.3              future.apply_1.3.0       ape_5.3

Thanks in advance for any suggestions!

rcannood commented 5 years ago

Hi @semmrich!

There is probably not a whole lot we can do -- some errors are really method-specific and would require the authors of the software to fix. Just to make sure -- methods like ti_paga, ti_slingshot, etc work fine?

Robrecht

semmrich commented 5 years ago

Hi Robrecht, I understand. Well, I have tried 14 Dynmethods with tree-building Dynguideline by now, can give you a quick recap how powerful Dynverse is:

My dataset is 10X libraries of total ~18k cells x ~10k genes, all I did up to now is using a downsampled test set of 1.6k cells x ~10k genes for performance reasons. I have a complete hematopoietic hierarchy of sorted naked mole rat cells, expecting a multi-furcated tree, and supplied clustering, start group and several end groups.

Results are split into 4 major categories:

1) Uninformative results (low quality clustering, squished cell groups, contracted axis etc) example: slingshot by default params dimred.slingshot.clara.cosine.pdf slingshot merlot URD (takes forever and is a huge effort to plot due to dropouts) Mpath (drops out >50% of input cells) Cellrouter (very nice cyclic clustering but trajectory condensed to one point) SLICER (no trajectory at all?!)

Especially SLICER was disappointing, since I tried the standalone version by the script from the Hemberg lab (), which performs well with a nice and valid pseudotime on my test set but runs out of mem on a Linux Cluster (BlueHive CIRC University of Rochester, 372 nodes, 8,972 CPU cores, 44 TB RAM, 420 TeraFLOPS) where I had 250GB and 12h runtime!

2) Memory issues Container was killed, possibly because it ran out of memory (error code 137)Error: Error during trajectory inference, see output above <U+2191><U+2191><U+2191> RaceID_stemID Sincell SLICE Celltree_maptpx

3) Tool-specific Error codes, probably depending on make-up of user datasets pcreode Traceback (most recent call last): File "/code/run.py", line 34, in <module> pca_reduced_data = data_pca.pca_set_components(min(parameters["n_pca_components"],expression.shape[1])) File "/pCreode/pcreode/pcreode.py", line 83, in pca_set_components return( self.pca[:,:n_components]) TypeError: slice indices must be integers or None or have an __index__ method Traceback (most recent call last): File "/code/run.py", line 34, in <module> pca_reduced_data = data_pca.pca_set_components(min(parameters["n_pca_components"],expression.shape[1])) File "/pCreode/pcreode/pcreode.py", line 83, in pca_set_components return( self.pca[:,:n_components]) TypeError: slice indices must be integers or None or have an __index__ method Error: Error during trajectory inference, see output above <U+2191><U+2191><U+2191>

ElPiGraph Error in H5File.open(filename, mode, file_create_pl, file_access_pl) : HDF5-API Errors: error #000: ../../../src/H5F.c in H5Fcreate(): line 491: unable to create file class: HDF5 major: File accessibilty minor: Unable to open file error #001: ../../../src/H5Fint.c in H5F_open(): line 1111: unable to open file: time = Thu Aug 8 21:49:57 2019 , name = '/ti/output.h5', tent_flags = 13 class: HDF5 major: File accessibilty minor: Unable to open file error #002: ../../../src/H5FD.c in H5FD_open(): line 812: open failed class: HDF5 major: Virtual File Layer minor: Unable to initialize object error #003: ../../../src/H5FDsec2.c in H5FD_sec2_open(): line 348: unable to open file: name = '/ti/output.h5', errno = 112, error message = 'Host is down', flags = 13, o_flags = 242 class: HDF5 major: File accessibilty minor: Unable to open file Calls: %>% ... <Anonymous> -> <Anonymous> -> <Anonymous> -> H5File.open Execution halted sh: 0: getcwd() failed: No such file or directory rm: cannot remove '/tmp2/RtmpYrIFX3': Host is down Error: Error during trajectory inference, see output above <U+2191><U+2191><U+2191>

SCUBA Traceback (most recent call last): File "/code/run.py", line 56, in <module> min_percentage_split = p["min_percentage_split"]) File "/usr/local/lib/python3.7/site-packages/PySCUBA/SCUBA_core.py", line 105, in initialize_tree X = np.compress(condition, data, axis = 0) File "/usr/local/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 1896, in compress return _wrapfunc(a, 'compress', condition, axis=axis, out=out) File "/usr/local/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc return getattr(obj, method)(*args, **kwds) ValueError: condition must be a 1-d array Traceback (most recent call last): File "/code/run.py", line 56, in <module> min_percentage_split = p["min_percentage_split"]) File "/usr/local/lib/python3.7/site-packages/PySCUBA/SCUBA_core.py", line 105, in initialize_tree X = np.compress(condition, data, axis = 0) File "/usr/local/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 1896, in compress return _wrapfunc(a, 'compress', condition, axis=axis, out=out) File "/usr/local/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc return getattr(obj, method)(*args, **kwds) ValueError: condition must be a 1-d array Error: Error during trajectory inference, see output above <U+2191><U+2191><U+2191>

4) ...and the winners are: paga dimred.paga.pdf paga_tree (outperforms paga on my data by connecting all clusters by one trajectory) mst (no brachings but a quite meaningful curvature through all clusters) monocle_ICA (a big surprise, because THAT one provides least quality in the standalone version vs TSCAN, SLICER and co, see the Hemberg script above)

Overall I guess its all very dependent on the users data. One thing I did not like was the Container kills. Do those depend on the performance of the user PC or is it a Docker thing that users cannot manipulate? Because if I use my real data set being 10x larger I would expect some of the "good" Dynmethods to be killed as well, which would be very frustrating - but hope dies last...

Anyways, great work! On a scale from 1 to 10 I give you guys 11!! ;) If you have time and like this job, just keep adding tools, because the community likes playing with their data...

All the best, Stephan

semmrich commented 5 years ago

UPDATE:

Previously I had 4 categories of results for various Dynmethods with my test set of 1.6k cells x ~10k genes. By now I ramped up the Docker settings to CPUs: 10 Memory: 44544MB Swap: 3072MB

with these device specs Processor: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz RAM: 64GB System Type: 64-bit Windows 10 Pro v1809

Now there are no more Docker kills! :)

Revised results with the test data set:

  1. Uninformative results (low quality clustering, squished cell groups, contracted axis etc) slingshot Merlot URD (takes forever and is a huge effort to plot due to dropouts) Mpath (drops out >50% of input cells) Cellrouter (very nice cyclic clustering but trajectory condensed to one point) SLICER (no trajectory at all?!) SLICE (no tree but curve, projects trajectory in space between clusters => totally unstructured dendrogram) Sincell (finds >50 milestones and fragments dendrogram to chaotic pieces) RaceID_StemID (>100 dropouts, fails in plot_dendro by Error in density.default(y, n = nbins, adjust = adjust) : 'x' contains missing values

  2. Tool-specific Error codes, probably depending on make-up of user datasets pcreode (see previous) ElPiGraph (see previous) SCUBA (see previous)

PAGA Gives good trajectory and dimred but fails to plot dendrogram due to Error in density.default(y, n = nbins, adjust = adjust) : 'x' contains missing values

monocle_DDRTree Removing 61 outliers Warning messages: 1: In log(ifelse(y == 0, 1, y/mu)) : NaNs produced 2: step size truncated due to divergence 3: In log(ifelse(y == 0, 1, y/mu)) : NaNs produced 4: step size truncated due to divergence Error: sort(unique(c(cell_graph$from, cell_graph$to))) not equal to sort(names(to_keep)). Lengths differ: 123 is not 1654 Execution halted Error: Error during trajectory inference, see output above <U+2191><U+2191><U+2191>

MFA Error in prcomp.default(y, scale = TRUE) : cannot rescale a constant/zero column to unit variance Calls: <Anonymous> -> prcomp -> prcomp.default Execution halted Sampling for 1654 cells and 10441 genes Error in prcomp.default(y, scale = TRUE) : cannot rescale a constant/zero column to unit variance Calls: <Anonymous> -> prcomp -> prcomp.default Execution halted Error: Error during trajectory inference, see output above <U+2191><U+2191><U+2191>

GradPrix (crazy error code!) `WARNING: Logging before flag parsing goes to stderr. W0810 22:22:53.273715 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/session_manager.py:31: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead. W0810 22:22:53.274524 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/misc.py:27: The name tf.GraphKeys is deprecated. Please use tf.compat.v1.GraphKeys instead. W0810 22:22:53.505279 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/saver/coders.py:80: The name tf.data.Iterator is deprecated. Please use tf.compat.v1.data.Iterator instead. W0810 22:22:55.097220 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/core/node.py:109: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead. W0810 22:22:55.108478 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/params/parameter.py:388: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead. W0810 22:22:55.109590 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/params/parameter.py:394: The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable instead. 2019-08-10 22:22:55.123844: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2019-08-10 22:22:55.128676: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3119690000 Hz 2019-08-10 22:22:55.128883: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x561f23b6af50 executing computations on platform Host. Devices: 2019-08-10 22:22:55.128904: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): , 2019-08-10 22:22:55.135468: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile. Traceback (most recent call last): File "/code/run.py", line 59, in latent_var = parameters["latent_var"] File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrix.py", line 27, in fit_model latent_prior_mean, latent_prior_var, latent_mean, latent_var, inducing_inputs, dtype) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 76, in init self.set_X_prior_mean(latent_prior_mean) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 222, in set_X_prior_mean self.X_prior_mean = np.zeros((self.N, self.Q)) TypeError: 'float' object cannot be interpreted as an integer E0810 22:22:55.360252 140611656627200 tf_should_use.py:71] Object was never used (type <class 'tensorflow.python.framework.ops.Tensor'>): <tf.Tensor 'SquaredExponential-af5a7d16-0/variance/IsVariableInitialized:0' shape=() dtype=bool> If you want to mark it as used call its "mark_used()" method. It was originally created here: File "/code/run.py", line 59, in latent_var = parameters["latent_var"] File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrix.py", line 27, in fit_model latent_prior_mean, latent_prior_var, latent_mean, latent_var, inducing_inputs, dtype) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 76, in init self.set_X_prior_mean(latent_prior_mean) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 213, in set_kern self.kern = k File "</usr/local/lib/python3.7/site-packages/decorator.py:decorator-gen-10>", line 2, in init File "/usr/local/lib/python3.7/site-packages/gpflow/core/compilable.py", line 157, in init_wrapper self.initialize(force=True) File "/usr/local/lib/python3.7/site-packages/gpflow/core/node.py", line 156, in build self._build() File "/usr/local/lib/python3.7/site-packages/gpflow/params/parameterized.py", line 302, in _build self._prior_tensor = self._build_prior(priors) File "/usr/local/lib/python3.7/site-packages/gpflow/core/node.py", line 156, in build self._build() File "/usr/local/lib/python3.7/site-packages/gpflow/params/parameter.py", line 373, in _build self._prior_tensor = prior File "/usr/local/lib/python3.7/site-packages/tensorflow/python/util/tf_should_use.py", line 193, in wrapped return _add_should_use_warning(fn(*args, kwargs)) E0810 22:22:55.360756 140611656627200 tf_should_use.py:71] Object was never used (type <class 'tensorflow.python.framework.ops.Tensor'>): <tf.Tensor 'SquaredExponential-af5a7d16-0/lengthscales/IsVariableInitialized:0' shape=() dtype=bool> If you want to mark it as used call its "mark_used()" method. It was originally created here: File "/code/run.py", line 59, in latent_var = parameters["latent_var"] File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrix.py", line 27, in fit_model latent_prior_mean, latent_prior_var, latent_mean, latent_var, inducing_inputs, dtype) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 76, in init self.set_X_prior_mean(latent_prior_mean) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 213, in set_kern self.kern = k File "</usr/local/lib/python3.7/site-packages/decorator.py:decorator-gen-10>", line 2, in init File "/usr/local/lib/python3.7/site-packages/gpflow/core/compilable.py", line 157, in init_wrapper self.initialize(force=True) File "/usr/local/lib/python3.7/site-packages/gpflow/core/node.py", line 156, in build self._build() File "/usr/local/lib/python3.7/site-packages/gpflow/params/parameterized.py", line 302, in _build self._prior_tensor = self._build_prior(priors) File "/usr/local/lib/python3.7/site-packages/gpflow/core/node.py", line 156, in build self._build() File "/usr/local/lib/python3.7/site-packages/gpflow/params/parameter.py", line 373, in _build self._prior_tensor = prior File "/usr/local/lib/python3.7/site-packages/tensorflow/python/util/tf_should_use.py", line 193, in wrapped return _add_should_use_warning(fn(*args, *kwargs)) WARNING: Logging before flag parsing goes to stderr. W0810 22:22:53.273715 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/session_manager.py:31: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead. W0810 22:22:53.274524 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/misc.py:27: The name tf.GraphKeys is deprecated. Please use tf.compat.v1.GraphKeys instead. W0810 22:22:53.505279 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/saver/coders.py:80: The name tf.data.Iterator is deprecated. Please use tf.compat.v1.data.Iterator instead. W0810 22:22:55.097220 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/core/node.py:109: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead. W0810 22:22:55.108478 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/params/parameter.py:388: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead. W0810 22:22:55.109590 140611656627200 deprecation_wrapper.py:119] From /usr/local/lib/python3.7/site-packages/gpflow/params/parameter.py:394: The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable instead. 2019-08-10 22:22:55.123844: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA 2019-08-10 22:22:55.128676: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 3119690000 Hz 2019-08-10 22:22:55.128883: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x561f23b6af50 executing computations on platform Host. Devices: 2019-08-10 22:22:55.128904: I tensorflow/compiler/xla/service/service.cc:175] StreamExecutor device (0): , 2019-08-10 22:22:55.135468: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set. If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU. To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile. Traceback (most recent call last): File "/code/run.py", line 59, in latent_var = parameters["latent_var"] File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrix.py", line 27, in fit_model latent_prior_mean, latent_prior_var, latent_mean, latent_var, inducing_inputs, dtype) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 76, in init self.set_X_prior_mean(latent_prior_mean) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 222, in set_X_prior_mean self.X_prior_mean = np.zeros((self.N, self.Q)) TypeError: 'float' object cannot be interpreted as an integer E0810 22:22:55.360252 140611656627200 tf_should_use.py:71] Object was never used (type <class 'tensorflow.python.framework.ops.Tensor'>): <tf.Tensor 'SquaredExponential-af5a7d16-0/variance/IsVariableInitialized:0' shape=() dtype=bool> If you want to mark it as used call its "mark_used()" method. It was originally created here: File "/code/run.py", line 59, in latent_var = parameters["latent_var"] File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrix.py", line 27, in fit_model latent_prior_mean, latent_prior_var, latent_mean, latent_var, inducing_inputs, dtype) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 76, in init self.set_X_prior_mean(latent_prior_mean) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 213, in set_kern self.kern = k File "</usr/local/lib/python3.7/site-packages/decorator.py:decorator-gen-10>", line 2, in init File "/usr/local/lib/python3.7/site-packages/gpflow/core/compilable.py", line 157, in init_wrapper self.initialize(force=True) File "/usr/local/lib/python3.7/site-packages/gpflow/core/node.py", line 156, in build self._build() File "/usr/local/lib/python3.7/site-packages/gpflow/params/parameterized.py", line 302, in _build self._prior_tensor = self._build_prior(priors) File "/usr/local/lib/python3.7/site-packages/gpflow/core/node.py", line 156, in build self._build() File "/usr/local/lib/python3.7/site-packages/gpflow/params/parameter.py", line 373, in _build self._prior_tensor = prior File "/usr/local/lib/python3.7/site-packages/tensorflow/python/util/tf_should_use.py", line 193, in wrapped return _add_should_use_warning(fn(args, kwargs)) E0810 22:22:55.360756 140611656627200 tf_should_use.py:71] Object was never used (type <class 'tensorflow.python.framework.ops.Tensor'>): <tf.Tensor 'SquaredExponential-af5a7d16-0/lengthscales/IsVariableInitialized:0' shape=() dtype=bool> If you want to mark it as used call its "mark_used()" method. It was originally created here: File "/code/run.py", line 59, in latent_var = parameters["latent_var"] File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrix.py", line 27, in fit_model latent_prior_mean, latent_prior_var, latent_mean, latent_var, inducing_inputs, dtype) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 76, in init self.set_X_prior_mean(latent_prior_mean) File "/usr/local/lib/python3.7/site-packages/GrandPrix/GrandPrixModel.py", line 213, in set_kern self.kern = k File "</usr/local/lib/python3.7/site-packages/decorator.py:decorator-gen-10>", line 2, in init File "/usr/local/lib/python3.7/site-packages/gpflow/core/compilable.py", line 157, in init_wrapper self.initialize(force=True) File "/usr/local/lib/python3.7/site-packages/gpflow/core/node.py", line 156, in build self._build() File "/usr/local/lib/python3.7/site-packages/gpflow/params/parameterized.py", line 302, in _build self._prior_tensor = self._build_prior(priors) File "/usr/local/lib/python3.7/site-packages/gpflow/core/node.py", line 156, in build self._build() File "/usr/local/lib/python3.7/site-packages/gpflow/params/parameter.py", line 373, in _build self._prior_tensor = prior File "/usr/local/lib/python3.7/site-packages/tensorflow/python/util/tf_should_use.py", line 193, in wrapped return _add_should_use_warning(fn(*args, **kwargs))

Error: Error during trajectory inference, see output above <U+2191><U+2191><U+2191>`

GPfates /usr/local/lib/python3.7/site-packages/GPfates/GPfates.py:60: FutureWarning:Method .as_matrix will be removed in a future version. Use .values instead. /usr/local/lib/python3.7/site-packages/GPfates/GPfates.py:34: FutureWarning:Method .as_matrix will be removed in a future version. Use .values instead. /usr/local/lib/python3.7/site-packages/GPfates/GPfates.py:77: FutureWarning:Method .as_matrix will be removed in a future version. Use .values instead. Traceback (most recent call last): File "/code/run.py", line 45, in <module> m.model_fates(C=end_n) File "/usr/local/lib/python3.7/site-packages/GPfates/GPfates.py", line 77, in model_fates self.fate_model = OMGP(self.s[[t]].as_matrix(), self.s[X].as_matrix(), K=C, prior_Z='DP') File "/usr/local/lib/python3.7/site-packages/paramz/parameterized.py", line 53, in __call__ self = super(ParametersChangedMeta, self).__call__(*args, **kw) File "/usr/local/lib/python3.7/site-packages/GPclust/OMGP.py", line 24, in __init__ for i in range(K): TypeError: 'float' object cannot be interpreted as an integer /usr/local/lib/python3.7/site-packages/GPfates/GPfates.py:60: FutureWarning:Method .as_matrix will be removed in a future version. Use .values instead. /usr/local/lib/python3.7/site-packages/GPfates/GPfates.py:34: FutureWarning:Method .as_matrix will be removed in a future version. Use .values instead. /usr/local/lib/python3.7/site-packages/GPfates/GPfates.py:77: FutureWarning:Method .as_matrix will be removed in a future version. Use .values instead. Traceback (most recent call last): File "/code/run.py", line 45, in <module> m.model_fates(C=end_n) File "/usr/local/lib/python3.7/site-packages/GPfates/GPfates.py", line 77, in model_fates self.fate_model = OMGP(self.s[[t]].as_matrix(), self.s[X].as_matrix(), K=C, prior_Z='DP') File "/usr/local/lib/python3.7/site-packages/paramz/parameterized.py", line 53, in __call__ self = super(ParametersChangedMeta, self).__call__(*args, **kw) File "/usr/local/lib/python3.7/site-packages/GPclust/OMGP.py", line 24, in __init__ for i in range(K): TypeError: 'float' object cannot be interpreted as an integer Error: Error during trajectory inference, see output above <U+2191><U+2191><U+2191>

  1. ...and the winners are: paga_tree (outperforms paga on my data by connecting all clusters by one trajectory, even runs with full dataset!!!) monocle_ICA (full dataset?) mst (full dataset?)

So happy that there are many options to choose from!

more edits to come for full dataset runs