Skip to content

Commit

Permalink
refactor: extract all enclone only print code (#415)
Browse files Browse the repository at this point in the history
* Extract all of the enclone-only part of print_clonotypes into a function and move it into enclone.
* Extract sort_exact_clonotypes as a function.
* Unfold the clonotype filtering/printing loop and clean up.
* Move all the enclone-specific code into enclone proper.
* Inject enclone-specific behavior via a OrbitProcessor trait.
* Rename enclone_print -> enclone_process.
* Delete the code generation part of enclone_vars.
  • Loading branch information
macklin-10x authored Apr 23, 2024
1 parent f00b5cb commit cbd15ef
Show file tree
Hide file tree
Showing 45 changed files with 883 additions and 10,033 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ members = [
"enclone",
"enclone_args",
"enclone_core",
"enclone_print",
"enclone_process",
"enclone_proto",
"enclone_ranger",
"enclone_stuff",
Expand Down
2 changes: 1 addition & 1 deletion GUIDE
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enclone_exec just the actual main program
enclone_help help menus from the command line
enclone_main this includes the enclone main program guts
enclone_paper calculations for enclone paper
enclone_print prints clonotypes in the sense of creating the "pictures" (much of core logic)
enclone_process final filtering and output of clonotypes
enclone_proto stuff for communicating with Loupe, and reused for other purposes
enclone_ranger entry point for cellranger
enclone_stuff things called by enclone_main and enclone_ranger
Expand Down
2 changes: 1 addition & 1 deletion enclone_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ authors = ["""David Jaffe <david.jaffe@10xgenomics.com>,
edition = "2021"
license-file = "LICENSE.txt"
publish = false
include = ["src/*.rs", "LICENSE.txt", "src/mammalian_fixed_len.table"]
include = ["src/*.rs", "LICENSE.txt"]

# Please do not edit crate versions within this file. Instead edit the file master.toml
# in the root of the enclone repo.
Expand Down
2 changes: 0 additions & 2 deletions enclone_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ pub mod hcomp;
pub mod join_one;
pub mod linear_condition;
pub mod logging;
pub mod mammalian_fixed_len;
pub mod median;
pub mod opt_d;
pub mod print_tools;
pub mod set_speakers;
pub mod slurp;
pub mod stringulate;
pub mod test_def;
Expand Down
152 changes: 0 additions & 152 deletions enclone_core/src/mammalian_fixed_len.rs

This file was deleted.

Loading

0 comments on commit cbd15ef

Please sign in to comment.