morpheus.R icon indicating copy to clipboard operation
morpheus.R copied to clipboard

Matrix rendering much faster when NOT using the shiny wrapper

Open katsikora opened this issue 6 years ago • 2 comments

Hi,

we've noticed the matrix rendering (say matrix(rnorm(200000), 10000)) is very slow using morpheus(x) in shiny, but rendering from a text file opened via what looks like a morpheus iframe or API on the shiny-rendered page is instantenous.

Why's that? Is there anything we can do to speed things up when using the shiny wrapper?

Thanks for any advice,

Best,

Katarzyna

katsikora avatar Aug 09 '19 06:08 katsikora

else if (! isTRUE(Rowv)) { rowInd <- nr : 1 ddr <- as.dendrogram(hclust(dist(diag(nr)))) }

This looks like a slow process.

Is it possible to set rowDendrogram <-NULL directly if dendrogram="none" is specified ? And skip ddr computation.

Best,

Katarzyna

katsikora avatar Aug 12 '19 14:08 katsikora

You can set Rowv to FALSE

On Mon, Aug 12, 2019 at 10:51 AM Katarzyna Sikora [email protected] wrote:

else if (! isTRUE(Rowv)) { rowInd <- nr : 1 ddr <- as.dendrogram(hclust(dist(diag(nr)))) }

This looks like a slow process.

Is it possible to set rowDendrogram <-NULL directly if dendrogram="none" is specified ? And skip ddr computation.

Best,

Katarzyna

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

joshua-gould avatar Aug 12 '19 23:08 joshua-gould