Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script generates too many milestones? #1

Open
rcannood opened this issue Nov 4, 2018 · 0 comments
Open

Script generates too many milestones? #1

rcannood opened this issue Nov 4, 2018 · 0 comments
Assignees

Comments

@rcannood
Copy link
Member

rcannood commented Nov 4, 2018

With end_n == 2

library(dyno)
library(tidyverse)
data("fibroblast_reprogramming_treutlein")
dataset <- wrap_expression(
  counts = fibroblast_reprogramming_treutlein$counts,
  expression = fibroblast_reprogramming_treutlein$expression
)
model <- infer_trajectory(dataset = dataset %>% add_prior_information(end_n = 2), method = ti_grandprix(), verbose = TRUE)
model$milestone_network
# A tibble: 2 x 4
  from            to        length directed
  <chr>           <chr>      <dbl> <lgl>   
1 milestone_begin split_0_1      1 TRUE    
2 milestone_begin split_0_2      1 TRUE    

With end_n == 3

model <- infer_trajectory(dataset = dataset %>% add_prior_information(end_n = 2), method = ti_grandprix(), verbose = TRUE)
model$milestone_network
# A tibble: 6 x 4
  from            to        length directed
  <chr>           <chr>      <dbl> <lgl>   
1 milestone_begin split_0_1      1 TRUE    
2 milestone_begin split_0_2      1 TRUE    
3 milestone_begin split_1_1      1 TRUE    
4 milestone_begin split_1_2      1 TRUE    
5 milestone_begin split_2_1      1 TRUE    
6 milestone_begin split_2_2      1 TRUE    

Also, when end_n == 1, a more useful error message should be generated (See dynverse/dyno#30)

@rcannood rcannood changed the title Script generates too many milestones Script generates too many milestones? Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants