- Export type annotations
- Fix bugs in older Python versions caused by MyPy
- Drop support for Python 3.6 and prior versions - this is unfortunate, is MyPy worth it?
- Add MyPy type annotations
- Migrate from Travis to GitHub Actions CI
- Change the
--scale=r
parameter insample para
andsample mono
to representn^(1/r)
instead ofn^r
. With this parameterization,r
ranges from 1 to infinity and thus does not conflict with the--proportion
term (which ranges from 0 to 1). They do overlap at--scale=1
and--proportion=1
, but these are equivalent, both sampling everything.
- Setup smot module interface
- Add
color push
andcolor pull
commands
- Add
stat
subcommand - Replace
sample prop
withsample mono
. This contrasts withpara
. - Add -v/--version option
- Fix several issues found my flake8
- Fix --factor-by-table option and documentation
- Keep tip colors after tipsed
- More robust color map parsing
- Add
-n NUM
option to samplers to select NUM elements from each group - Fix bug in sampling from root - the two sides under root were always sampled independently. With -n option, this led to twice too many selections when no factoring was done. With proportional options, the bug would only cause problems in the corner case where one side under root had fewer than minTips tips.
- Add
filter
subcommand
-
Fix KeyError raised when a factor is not in the color table, resolve by simply not coloring the element
-
Fix tree formatting when using color maps (trim whitespace)
-
Add
color rm
to remove all coloring annotations, with the--newick
option, this also clears all metadata (e.g., FigTree annotations) -
Fixed bugs in regex captures and para coloring
- Add monophyletic and paraphyletic branch coloring
[FYI - due to ghosts in pyp, v0.10.0 is gone]
-
Add
color
commandsmot color -p "swine" "#FFA500" -p "2020-" "#00FF00" my.tre > color.tre
-
Print to nexus by default, preserving figtree colors and settings, with
--newick
option for printing raw newick trees. -
Remove
plot
,convert
, andrandom
commands and the thebiopython
dependency. These commands were not well-supported and their dependency was very heavy. Use phylomander or dedicated plotting packages instead. -
Remove
clean
function - I may bring this back in the future, but at the moment there isn't an obvious use-case forclean
. -
Add support for parsing metadata from and writing Nexus - the main need for this is to properly handle tip colors and preserve metadata.
-
Add test for unicode support (e.g., Chinese characters or emoticons)
-
Add parser support for escaping characters. Any character following a '' is kept, so quotes within strings and backslashes can be escaped. Special characters are not supported (e.g., substituting '\t' for a TAB character).
-
Add parser support for FigTree's weird single-quote escape convention. They replace within-string single-quotes with a pair of single-quotes.
0.8.1 [2021-04-09]
- add
--keep-regex
option forsample prop
0.8.0 [2021-04-08]
- add
--keep-regex
option
- remove debugging crap
- allow factor imputation through patristic distance
- add power scaling option to samplers
- add grep
- remove midpoint command - it was too slow to be useful, there are better CLI tools for this job
- Fix bug preventing STDIN
- update CLI interface
- subcommand documentation
- documentation for each field
- cleaner argument checking
- allow automatic reading of NEXUS
- remove '--format' option (infer input format and write newick)
- add BioPython-based convert function
- let factors be appended or prepended to tip labels
- merge sampling commands
- ladderize tree before plotting
clean
command also ladderizes the tree
- add factor imputing
- add
--seed
argument tosmot random
- mix bug in proportional sampler
- add tests of the command line utility
- fix bug in unfactored proportional sample
- allow the default factor
- initial release