Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "gotree", Short: "gotree: A set of tools to handle phylogenetic trees in go", Long: `gotree is a set of tools to handle phylogenetic trees in go. Different usages are implemented: - Generating random trees - Transforming trees (renaming tips, pruning/removing tips) - Comparing trees (computing bootstrap supports, counting common edges) `, PersistentPreRun: func(cmd *cobra.Command, args []string) { switch rootInputFormat { case "newick": treeformat = utils.FORMAT_NEWICK case "nexus": treeformat = utils.FORMAT_NEXUS case "phyloxml": treeformat = utils.FORMAT_PHYLOXML case "nextstrain": treeformat = utils.FORMAT_NEXTSTRAIN default: treeformat = utils.FORMAT_NEWICK } if seed == -1 { seed = time.Now().UTC().UnixNano() } rand.Seed(seed) }, Run: func(cmd *cobra.Command, args []string) { s := cobrashell.New() s.Println(fmt.Sprintf("Welcome to Gotree Console %s", Version)) s.Println("type \"help\" to get a list of available commands") cobrashell.AddCommands(s, cmd.Root(), nil, cmd.Root().Commands()...) s.Run() }, PersistentPostRun: func(cmd *cobra.Command, args []string) { }, }
RootCmd represents the base command when called without any subcommands
View Source
var Version string
Version defines the version of gotree It is initialized during compilation with -ldflags "-X github.com/evolbioinfo/gotree/cmd.Version=Major.Minor..."
Functions ¶
Types ¶
This section is empty.
Source Files
¶
- acr.go
- annotate.go
- asr.go
- balancedtree.go
- bipartitiontree.go
- booster.go
- brlen.go
- brlencut.go
- brlenset.go
- caterpillartree.go
- classical.go
- clearcomments.go
- clearlength.go
- clearsupport.go
- collapse.go
- collapsebrlen.go
- collapsebrname.go
- collapseclade.go
- collapsedepth.go
- collapsesingle.go
- collapsesupport.go
- comments.go
- compare.go
- compareedges.go
- comparetips.go
- comparetrees.go
- compute.go
- computesupport.go
- consensus.go
- cyjs.go
- divide.go
- dlncbi.go
- dlpanther.go
- download.go
- draw.go
- edges.go
- edgetrees.go
- extractmutations.go
- generate.go
- graft.go
- itoldl.go
- itolup.go
- labels.go
- ltt.go
- matrix.go
- merge.go
- midpoint.go
- minbrlen.go
- monophyletic.go
- multiplybrlen.go
- multiplybrsupport.go
- nni.go
- nodes.go
- outgroup.go
- png.go
- prune.go
- randbrlen.go
- randsupport.go
- reformat.go
- reformatnewick.go
- reformatnexus.go
- reformatphyloxml.go
- rename.go
- repopulate.go
- reroot.go
- resolve.go
- resolve_named.go
- roccurve.go
- root.go
- rooted.go
- rotate.go
- rotate_rand.go
- rotate_sort.go
- roundlengths.go
- roundsupport.go
- sample.go
- shuffletips.go
- splits.go
- startree.go
- stats.go
- subtree.go
- support.go
- svg.go
- text.go
- tips.go
- topologies.go
- transfercomments.go
- uniformtree.go
- unroot.go
- upload.go
- version.go
- yuletree.go
Click to show internal directories.
Click to hide internal directories.