Skip to content

Commit

Permalink
MRG: additional moltype specification needed for sig downsample wit…
Browse files Browse the repository at this point in the history
…h skipmers (#3457)

needed to enable skipmers with `sig downsample`

Adding moltypes would be easier with some unified functions for handling
+ testing...
  • Loading branch information
bluegenes authored Jan 9, 2025
1 parent c3791c8 commit 23b1a62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sourmash/minhash.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,8 @@ def downsample(self, *, num=None, scaled=None):
is_protein=self.is_protein,
dayhoff=self.dayhoff,
hp=self.hp,
skipm1n3=self.skipm1n3,
skipm2n3=self.skipm2n3,
track_abundance=self.track_abundance,
seed=self.seed,
max_hash=max_hash,
Expand All @@ -764,6 +766,8 @@ def flatten(self):
is_protein=self.is_protein,
dayhoff=self.dayhoff,
hp=self.hp,
skipm1n3=self.skipm1n3,
skipm2n3=self.skipm2n3,
track_abundance=False,
seed=self.seed,
max_hash=self._max_hash,
Expand Down

0 comments on commit 23b1a62

Please sign in to comment.