Comments (4)
from pirouette.
100 folders in less than 10 seconds:
library(pirouette)
library(testthat)
#super_folder <- "/home/richel/pirouette_example_42/pirouette_example_42/example_42"
#super_folder <- "/media/richel/D2B40C93B40C7BEB/pirouette_examples/pirouette_example_18/example_18"
#super_folder <- "/home/richel/pirouette_example_42/pirouette_example_42/example_42"
super_folder <- "/home/richel/pirouette_example_32/pirouette_example_32/example_32"
folder_names <- list.dirs(
super_folder
)
folder_names <- folder_names[folder_names != super_folder]
folder_names
expect_true(all(dir.exists(folder_names)))
long_pir_out <- create_long_pir_out_from_folders(folder_names = folder_names)
p <- pir_plot_from_long(long_pir_out)
p + ggplot2::ggtitle("") + ggplot2::ggsave("~/example_42.png", width = 7, height = 7)
p
from pirouette.
Glory to 👏👏👏 dplyr::bind_rows
👏👏👏
from pirouette.
Timing it:
library(pirouette)
library(testthat)
#super_folder <- "/home/richel/pirouette_example_42/pirouette_example_42/example_42"
#super_folder <- "/media/richel/D2B40C93B40C7BEB/pirouette_examples/pirouette_example_18/example_18"
#super_folder <- "/home/richel/pirouette_example_42/pirouette_example_42/example_42"
super_folder <- "/home/richel/pirouette_example_32/pirouette_example_32/example_32"
folder_names <- list.dirs(
super_folder
)
folder_names <- folder_names[folder_names != super_folder]
folder_names
expect_true(all(dir.exists(folder_names)))
Sys.time()
long_pir_out <- create_tree_and_model_errors_from_folders(
folder_names = folder_names
)
p <- pir_plot_from_long(long_pir_out)
p + ggplot2::ggtitle("") + ggplot2::ggsave("~/example_42.png", width = 7, height = 7)
p
Sys.time()
results in:
> Sys.time()
[1] "2020-07-14 12:50:19 CEST"
> long_pir_out <- create_tree_and_model_errors_from_folders(
+ folder_names = folder_names
+ )
> p <- pir_plot_from_long(long_pir_out)
> p + ggplot2::ggtitle("") + ggplot2::ggsave("~/example_42.png", width = 7, height = 7)
> p
> Sys.time()
[1] "2020-07-14 12:50:41 CEST"
That is 22 seconds!
from pirouette.
Related Issues (20)
- 'pir_params$twinning_params$twin_evidence_filename' must be NA if there is no evidences estimated HOT 2
- Why is `create_std_pir_paramses` slow? HOT 1
- create_std_pir_params is slow HOT 12
- Creating an exemplary DD tree HOT 1
- Lose dependency upon becosys HOT 1
- Reduce waste in pir_plots HOT 3
- Use correct number of bins HOT 1
- Fix facet title HOT 2
- Check that values from files are correctly classified HOT 1
- Fix pir_plot HOT 1
- 'create_exemplary_dd_tree' must match all pirouette examples code HOT 1
- Prepare version for pirouette article HOT 2
- Let all pirouette examples use 'create_exemplary_dd_tree' HOT 1
- Update nodeSub::sim_dual_linked HOT 1
- Fix CRAN Windows build HOT 1
- Use feast to do DNA sequence simulation HOT 1
- Fix CRAN issues HOT 1
- Fix CRAN issues HOT 1
- pirouette cleans up too much?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pirouette.