WIP: Add bcrlarch to cf-paired-loci phylo benchmarking framework#336
Draft
davidrich27 wants to merge 5 commits intopsathyrella:mainfrom
Draft
WIP: Add bcrlarch to cf-paired-loci phylo benchmarking framework#336davidrich27 wants to merge 5 commits intopsathyrella:mainfrom
davidrich27 wants to merge 5 commits intopsathyrella:mainfrom
Conversation
add_to_scan_cmd crashed with TypeError when vstr was Python None (rather than string 'None'), which occurs when all scan variables have single values. Also add bcrl_methods to the padded_seq_info_list initialization so bcrlarch-pars gets proper ambiguous base handling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add --smoke-test flag that runs the full bcrlarch-pars pipeline with minimal settings (1 event, 1 time point, 1 replicate, no parallelism) for end-to-end validation. Also update default output path to _benchmark_output/ and add _temp/ and _benchmark_output/ to .gitignore. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bcrlarchas a phylogenetic inference method in partis so it can be benchmarked alongside iqtree, raxml, gctree, gctree-mut-mult, igphyml via thecf-paired-loci.pyvalidation pipelinerun-validation.shwrapper script for running the pipeline with standard parametersChanges
partis/treeutils.py— register bcrlarch in the phylo inference machinery:inf_anc_methodsandall_phylo_methodsmethod listsgetcmd(): generate arun.shthat activates thebcr-larch-experimentspixi environment and runsbcrlarch-run.py(same pattern as raxml's shell wrapper)ofn(): outputtree.nwk/inferred-seqs.fa(same as gctree/igphyml)read_inf_seqs(): read inferred ancestors frominferred-seqs.fa(same pattern as gctree)test/cf-paired-loci.py— add'bcrlarch'tophylo_actions, which auto-generatesbcrlarch-tree-perfand wires it into--actions bcrlarchand--actions tree-perfrun-validation.sh(new) — wrapper script for the validation pipeline with standard parameters (obs-times, sim-events, carry-cap, etc.) and a--tree-perf-basicshortcut that includes bcrlarchNotes
bcr-larch-experiments/is a sibling directory topartis/, resolved viaos.path.dirname(utils.get_partis_dir())pixi shell-hookfor environment activation (unlike gctree/igphyml which use mamba)bcrlarch-run.pyrunner script follows the same interface as gctree/igphyml:--infname,--outdir,--root-label; outputstree.nwkandinferred-seqs.faTest plan
./run-validation.sh --actions bcrlarch --dry-runtree.nwkandinferred-seqs.faoutput./run-validation.sh --actions bcrlarch-tree-perf