Closed GavinHuttley closed 4 weeks ago
This PR refactors the sequence distance calculation implementation to improve code organization and sets new default parameters. The main changes include restructuring the distance calculation logic in the __init__
method to use a function mapping approach, updating default parameters for k-mer size and sketch size, and adding code coverage pragmas.
classDiagram
class DistanceCalculator {
-int k
-int|None sketch_size
-str moltype
-bool|None mash_canonical_kmers
-bool show_progress
-function _s2a
-function _func
-dict _func_kwargs
+main(seqs: c3_types.SeqsCollectionType) c3_types.PairwiseDistanceType
}
note for DistanceCalculator "Refactored to use function mapping for distance calculation"
class mash_distances
class euclidean_distances
DistanceCalculator --> mash_distances : uses
DistanceCalculator --> euclidean_distances : uses
Change | Details | Files |
---|---|---|
Refactored distance calculation implementation for better organization |
|
src/diverse_seq/distance.py |
Updated default parameters for sequence analysis |
|
src/diverse_seq/distance.py |
Added code coverage pragmas and removed validation |
|
src/diverse_seq/distance.py |
Totals | |
---|---|
Change from base Build 11512015058: | 3.1% |
Covered Lines: | 1176 |
Relevant Lines: | 1279 |
Summary by Sourcery
Enhancements: