Skip to content

Commit

Permalink
Implementing changes from issue #86 and issue #89
Browse files Browse the repository at this point in the history
  • Loading branch information
gtng92 committed Jul 17, 2017
1 parent 9312663 commit b8f1f39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/R/compartmental-models.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ require(rcolgem, quietly=TRUE)
integrationMethod=integrationMethod # , n.reps=nreps --this isn't a parameter in rcolgem's simulate.binary.dated.tree.fgy
)

# strip out unnecessary attributes from rcolgem returned object
phy <- list(
edge=tree$edge,
Nnode=tree$Nnode,
tip.label=tree$tip.label,
edge.length=tree$edge.length
)
class(tree) <- 'phylo'
return(tree) # returning an ape phylo object + 20 other things (from rcolgem)
return(tree) # returning an ape phylo object
}


Expand Down
1 change: 1 addition & 0 deletions pkg/R/smcConfig.R
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ plot.smc.config <- function(config, nreps=1000, numr=1, numc=1) {
}
}
}
par(ask=F)
}

# parse tip arguments for each model and creates either n tips of zero height if arg is an int
Expand Down

0 comments on commit b8f1f39

Please sign in to comment.