You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could also add __add__ and __sub__ dunder methods to support things like kmer_table1 + kmer_table2. Though that might be confusing re which table is being updated, so maybe not.
Would we ever want to apply a constant to all values in a table? i.e. table + 1, table * 10, table - 1. If so that is probably a better use for the dunders.
The text was updated successfully, but these errors were encountered:
New methods
.add()
and.subtract()
to modify records in aKmerCountTable
using a second table.Create some new tables with different kmers and counts.
Check the table contents:
Proposed behaviour for
add()
:Proposed behaviour for
subtract()
:@ctb thoughts on subtract behaviour?
Could also add
__add__
and__sub__
dunder methods to support things likekmer_table1 + kmer_table2
. Though that might be confusing re which table is being updated, so maybe not.Would we ever want to apply a constant to all values in a table? i.e.
table + 1
,table * 10
,table - 1
. If so that is probably a better use for the dunders.The text was updated successfully, but these errors were encountered: