From 33cecc08090854160c140b9a1d69290ed73f1b2b Mon Sep 17 00:00:00 2001 From: pfgherardini Date: Wed, 13 Mar 2019 15:39:54 -0700 Subject: [PATCH] fixed bug in complete_forceatlas2, closes #6 --- DESCRIPTION | 2 +- R/forceatlas2.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index a1ff196..7690dc8 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: vite Type: Package Title: Analyzing single-cell data using graphs -Version: 0.4.5 +Version: 0.4.6 Authors@R: "Pier Federico Gherardini [aut, cre]" Description: This is a package for visualization and analysis of high-dimensional single-cell data using graphs diff --git a/R/forceatlas2.R b/R/forceatlas2.R index 30d31a4..52a170f 100644 --- a/R/forceatlas2.R +++ b/R/forceatlas2.R @@ -162,7 +162,7 @@ complete_forceatlas2 <- function(G, first.iter = 1000, overlap.method = NULL, ov G <- igraph::set.vertex.attribute(G, name = "y", value = lay[, 2]) } } - else if(overlap_method == "expand") + else if(overlap.method == "expand") G <- adaptive_expand(G, overlap.iter) } return(G)