phykit 2.5.0__tar.gz → 2.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {phykit-2.5.0 → phykit-2.6.0}/PKG-INFO +1 -1
- {phykit-2.5.0 → phykit-2.6.0}/phykit/cli_registry.py +1 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/phykit.py +129 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/service_factories.py +1 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/__init__.py +1 -0
- phykit-2.6.0/phykit/services/tree/episodic_rate_covariation.py +643 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/projected_covarying_rates.py +62 -15
- phykit-2.6.0/phykit/version.py +1 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit.egg-info/PKG-INFO +1 -1
- {phykit-2.5.0 → phykit-2.6.0}/phykit.egg-info/SOURCES.txt +1 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit.egg-info/entry_points.txt +2 -0
- phykit-2.5.0/phykit/version.py +0 -1
- {phykit-2.5.0 → phykit-2.6.0}/LICENSE.md +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/README.md +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/__init__.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/__main__.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/errors.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/__init__.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/boolean_argument_parsing.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/caching.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/circular_layout.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/color_annotations.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/discrete_models.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/files.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/geological_timescale.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/json_output.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/parallel.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/parsimony_utils.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/pgls_utils.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/plot_config.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/quartet_utils.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/stats_summary.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/streaming.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/trait_parsing.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/helpers/tree_paths.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/__init__.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/__init__.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/_fasta.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/alignment_entropy.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/alignment_length.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/alignment_length_no_gaps.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/alignment_outlier_regions.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/alignment_outlier_taxa.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/alignment_recoding.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/alignment_subsample.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/base.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/codon_dnds.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/column_score.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/composition_per_taxon.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/compositional_bias_per_site.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/create_concatenation_matrix.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/dfoil.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/dna_threader.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/dstatistic.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/evolutionary_rate_per_site.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/faidx.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/gc_content.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/identity_matrix.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/mask_alignment.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/occupancy_filter.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/occupancy_per_taxon.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/pairwise_identity.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/parsimony_informative_sites.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/phylo_gwas.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/plot_alignment_qc.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/rcv.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/rcvt.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/rename_fasta_entries.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/sum_of_pairs_score.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/taxon_groups.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/alignment/variable_sites.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/base.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/ancestral_reconstruction.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/base.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/bipartition_support_stats.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/branch_length_multiplier.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/character_map.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/chronogram.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/collapse_branches.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/concordance_asr.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/consensus_network.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/consensus_tree.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/cont_map.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/cophylo.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/covarying_evolutionary_rates.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/density_map.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/discordance_asymmetry.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/dtt.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/dvmc.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/evo_tempo_map.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/evolutionary_rate.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/faiths_pd.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/fit_continuous.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/fit_discrete.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/hidden_paralogy_check.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/hybridization.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/independent_contrasts.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/internal_branch_stats.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/internode_labeler.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/kf_distance.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/last_common_ancestor_subtree.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/lb_score.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/ltt.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/monophyly_check.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/nearest_neighbor_interchange.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/neighbor_net.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/network_signal.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/ou_shift_detection.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/ouwie.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/parsimony_score.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/patristic_distances.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phenogram.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylo_anova.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylo_heatmap.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylo_impute.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylo_logistic.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylo_path.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylogenetic_glm.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylogenetic_ordination.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylogenetic_regression.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylogenetic_signal.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/phylomorphospace.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/polytomy_test.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/print_tree.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/prune_tree.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/quartet_network.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/quartet_pie.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/rate_heterogeneity.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/relative_rate_test.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/rename_tree_tips.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/rf_distance.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/root_tree.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/saturation.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/simmap_summary.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/spectral_discordance.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/spr.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/spurious_sequence.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/stochastic_character_map.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/terminal_branch_stats.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/threshold_model.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/tip_labels.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/tip_to_tip_distance.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/tip_to_tip_node_distance.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/total_tree_length.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/trait_correlation.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/trait_rate_map.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/transfer_annotations.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/tree_space.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/treeness.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/treeness_over_rcv.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit/services/tree/vcv_utils.py +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit.egg-info/dependency_links.txt +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit.egg-info/requires.txt +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/phykit.egg-info/top_level.txt +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/setup.cfg +0 -0
- {phykit-2.5.0 → phykit-2.6.0}/setup.py +0 -0
|
@@ -83,6 +83,7 @@ ALIAS_TO_HANDLER: dict[str, str] = {
|
|
|
83
83
|
"time_tree": "chronogram",
|
|
84
84
|
"cover": "covarying_evolutionary_rates",
|
|
85
85
|
"pcover": "projected_covarying_rates",
|
|
86
|
+
"erc_scan": "episodic_rate_covariation",
|
|
86
87
|
"consnet": "consensus_network",
|
|
87
88
|
"splitnet": "consensus_network",
|
|
88
89
|
"splits_network": "consensus_network",
|
|
@@ -623,6 +623,8 @@ class Phykit:
|
|
|
623
623
|
- calculates correlation in the evolutionary rate of two trees
|
|
624
624
|
projected_covarying_rates (alias: pcover)
|
|
625
625
|
- estimates rate covariation when gene-tree topologies differ
|
|
626
|
+
episodic_rate_covariation (alias: erc_scan)
|
|
627
|
+
- localizes clades with coordinated evolutionary-rate shifts
|
|
626
628
|
consensus_network (alias: consnet; splitnet; splits_network)
|
|
627
629
|
- extract bipartition splits from gene trees and visualize
|
|
628
630
|
conflicting phylogenetic signal as a splits network
|
|
@@ -4298,6 +4300,129 @@ class Phykit:
|
|
|
4298
4300
|
_add_json_argument(parser)
|
|
4299
4301
|
_run_service(parser, argv, ProjectedCovaryingRates)
|
|
4300
4302
|
|
|
4303
|
+
@staticmethod
|
|
4304
|
+
def episodic_rate_covariation(argv):
|
|
4305
|
+
parser = _new_parser(
|
|
4306
|
+
description=_dedent(
|
|
4307
|
+
f"""\
|
|
4308
|
+
{help_header}
|
|
4309
|
+
|
|
4310
|
+
Localize episodic evolutionary-rate covariation to clades on a
|
|
4311
|
+
reference tree (experimental).
|
|
4312
|
+
|
|
4313
|
+
The command first uses projected_covarying_rates to place two gene
|
|
4314
|
+
trees, including discordant or partially overlapping trees, onto a
|
|
4315
|
+
shared reference-edge basis. For every retained edge, it multiplies
|
|
4316
|
+
the two standardized projected rates. It then scans eligible rooted
|
|
4317
|
+
clades for an excess of these local contributions relative to the
|
|
4318
|
+
rest of the tree. Positive local contributions indicate concordant
|
|
4319
|
+
shifts; negative contributions indicate antagonistic shifts.
|
|
4320
|
+
|
|
4321
|
+
Significance is estimated by permuting one gene's rates among edges
|
|
4322
|
+
with similar topological depth. A maximum absolute clade statistic
|
|
4323
|
+
gives family-wise error rate (FWER) adjusted p-values across the
|
|
4324
|
+
complete scan. The unlocalizable edge formed by merging the two
|
|
4325
|
+
complementary branches below a degree-two root is excluded from the
|
|
4326
|
+
local scan, but remains in the global correlation.
|
|
4327
|
+
|
|
4328
|
+
This is a novel experimental PhyKIT scan, not the published CovER
|
|
4329
|
+
calculation. The evolutionary-rate covariation framework follows
|
|
4330
|
+
Clark et al., Genome Research (2012),
|
|
4331
|
+
doi: 10.1101/gr.132647.111, and Steenwyk et al., Science Advances
|
|
4332
|
+
(2022), doi: 10.1126/sciadv.abn0105. Treat both global and local
|
|
4333
|
+
results as exploratory until validated for the study design.
|
|
4334
|
+
|
|
4335
|
+
Aliases:
|
|
4336
|
+
episodic_rate_covariation, erc_scan
|
|
4337
|
+
Command line interfaces:
|
|
4338
|
+
pk_episodic_rate_covariation, pk_erc_scan
|
|
4339
|
+
|
|
4340
|
+
Usage:
|
|
4341
|
+
phykit episodic_rate_covariation <tree_file_zero> <tree_file_one>
|
|
4342
|
+
-r/--reference <reference_tree_file>
|
|
4343
|
+
[-v/--verbose]
|
|
4344
|
+
[--weighting uniform|inverse_reference]
|
|
4345
|
+
[--max-rate <float>] [--max-pairs <int>] [--seed <int>]
|
|
4346
|
+
[--permutations <int>] [--depth-bins <int>]
|
|
4347
|
+
[--min-edges <int>] [--alpha <float>]
|
|
4348
|
+
[-o/--output <path>] [--annotated-tree <path>] [--json]
|
|
4349
|
+
|
|
4350
|
+
Options
|
|
4351
|
+
=====================================================
|
|
4352
|
+
<tree_file_zero> first gene tree with branch lengths
|
|
4353
|
+
|
|
4354
|
+
<tree_file_one> second gene tree with branch lengths
|
|
4355
|
+
|
|
4356
|
+
-r/--reference rooted reference tree with branch
|
|
4357
|
+
lengths; typically a species tree
|
|
4358
|
+
|
|
4359
|
+
-v/--verbose report every eligible clade instead of
|
|
4360
|
+
only FWER-significant clades
|
|
4361
|
+
|
|
4362
|
+
--weighting distance-pair weighting for NNLS:
|
|
4363
|
+
uniform (default) or inverse_reference
|
|
4364
|
+
|
|
4365
|
+
--max-rate exclude an edge if either projected
|
|
4366
|
+
relative rate exceeds this value
|
|
4367
|
+
(default: 5)
|
|
4368
|
+
|
|
4369
|
+
--max-pairs maximum number of taxon pairs used in
|
|
4370
|
+
projection (default: 50000)
|
|
4371
|
+
|
|
4372
|
+
--seed random seed for pair subsampling and
|
|
4373
|
+
scan permutations (default: 0)
|
|
4374
|
+
|
|
4375
|
+
--permutations number of depth-matched permutations
|
|
4376
|
+
(default: 999)
|
|
4377
|
+
|
|
4378
|
+
--depth-bins maximum topological-depth strata used
|
|
4379
|
+
for permutations (default: 4)
|
|
4380
|
+
|
|
4381
|
+
--min-edges minimum localizable edges required both
|
|
4382
|
+
inside and outside a clade (default: 3)
|
|
4383
|
+
|
|
4384
|
+
--alpha FWER significance threshold
|
|
4385
|
+
(default: 0.05)
|
|
4386
|
+
|
|
4387
|
+
-o/--output optional clade-level TSV output path
|
|
4388
|
+
|
|
4389
|
+
--annotated-tree optional reference-tree output path;
|
|
4390
|
+
significant clades receive comments
|
|
4391
|
+
|
|
4392
|
+
--json output results and diagnostics as JSON
|
|
4393
|
+
"""
|
|
4394
|
+
),
|
|
4395
|
+
)
|
|
4396
|
+
parser.add_argument("tree_zero", type=str, help=SUPPRESS)
|
|
4397
|
+
parser.add_argument("tree_one", type=str, help=SUPPRESS)
|
|
4398
|
+
parser.add_argument(
|
|
4399
|
+
"-r", "--reference", type=str, required=True, help=SUPPRESS, metavar=""
|
|
4400
|
+
)
|
|
4401
|
+
parser.add_argument(
|
|
4402
|
+
"-v", "--verbose", action="store_true", required=False, help=SUPPRESS
|
|
4403
|
+
)
|
|
4404
|
+
parser.add_argument(
|
|
4405
|
+
"--weighting",
|
|
4406
|
+
choices=("uniform", "inverse_reference"),
|
|
4407
|
+
default="uniform",
|
|
4408
|
+
help=SUPPRESS,
|
|
4409
|
+
)
|
|
4410
|
+
parser.add_argument("--max-rate", type=float, default=5.0, help=SUPPRESS)
|
|
4411
|
+
parser.add_argument(
|
|
4412
|
+
"--max-pairs", type=int, default=50_000, help=SUPPRESS
|
|
4413
|
+
)
|
|
4414
|
+
parser.add_argument("--seed", type=int, default=0, help=SUPPRESS)
|
|
4415
|
+
parser.add_argument(
|
|
4416
|
+
"--permutations", type=int, default=999, help=SUPPRESS
|
|
4417
|
+
)
|
|
4418
|
+
parser.add_argument("--depth-bins", type=int, default=4, help=SUPPRESS)
|
|
4419
|
+
parser.add_argument("--min-edges", type=int, default=3, help=SUPPRESS)
|
|
4420
|
+
parser.add_argument("--alpha", type=float, default=0.05, help=SUPPRESS)
|
|
4421
|
+
parser.add_argument("-o", "--output", type=str, help=SUPPRESS)
|
|
4422
|
+
parser.add_argument("--annotated-tree", type=str, help=SUPPRESS)
|
|
4423
|
+
_add_json_argument(parser)
|
|
4424
|
+
_run_service(parser, argv, EpisodicRateCovariation)
|
|
4425
|
+
|
|
4301
4426
|
@staticmethod
|
|
4302
4427
|
def dvmc(argv):
|
|
4303
4428
|
parser = _new_parser(
|
|
@@ -10566,6 +10691,10 @@ def projected_covarying_rates(argv=None):
|
|
|
10566
10691
|
Phykit.projected_covarying_rates(sys.argv[1:])
|
|
10567
10692
|
|
|
10568
10693
|
|
|
10694
|
+
def episodic_rate_covariation(argv=None):
|
|
10695
|
+
Phykit.episodic_rate_covariation(sys.argv[1:])
|
|
10696
|
+
|
|
10697
|
+
|
|
10569
10698
|
def dvmc(argv=None):
|
|
10570
10699
|
Phykit.dvmc(sys.argv[1:])
|
|
10571
10700
|
|
|
@@ -62,6 +62,7 @@ BranchLengthMultiplier = _LazyServiceFactory("phykit.services.tree.branch_length
|
|
|
62
62
|
CollapseBranches = _LazyServiceFactory("phykit.services.tree.collapse_branches", "CollapseBranches")
|
|
63
63
|
CovaryingEvolutionaryRates = _LazyServiceFactory("phykit.services.tree.covarying_evolutionary_rates", "CovaryingEvolutionaryRates")
|
|
64
64
|
ProjectedCovaryingRates = _LazyServiceFactory("phykit.services.tree.projected_covarying_rates", "ProjectedCovaryingRates")
|
|
65
|
+
EpisodicRateCovariation = _LazyServiceFactory("phykit.services.tree.episodic_rate_covariation", "EpisodicRateCovariation")
|
|
65
66
|
Chronogram = _LazyServiceFactory("phykit.services.tree.chronogram", "Chronogram")
|
|
66
67
|
ConsensusNetwork = _LazyServiceFactory("phykit.services.tree.consensus_network", "ConsensusNetwork")
|
|
67
68
|
NeighborNet = _LazyServiceFactory("phykit.services.tree.neighbor_net", "NeighborNet")
|
|
@@ -8,6 +8,7 @@ _EXPORTS = {
|
|
|
8
8
|
"Chronogram": "chronogram",
|
|
9
9
|
"CovaryingEvolutionaryRates": "covarying_evolutionary_rates",
|
|
10
10
|
"ProjectedCovaryingRates": "projected_covarying_rates",
|
|
11
|
+
"EpisodicRateCovariation": "episodic_rate_covariation",
|
|
11
12
|
"ConsensusNetwork": "consensus_network",
|
|
12
13
|
"NeighborNet": "neighbor_net",
|
|
13
14
|
"ConsensusTree": "consensus_tree",
|