mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
First functional version of a blackboard and a blackboard based obicount
This commit is contained in:
@ -186,6 +186,21 @@ func (s BioSequenceSlice) Size() int {
|
||||
return size
|
||||
}
|
||||
|
||||
// Count calculates the total count of all BioSequence elements in the BioSequenceSlice.
|
||||
//
|
||||
// It iterates over each BioSequence in the slice and adds the count of each BioSequence to the total count.
|
||||
//
|
||||
// Returns the total count as an integer.
|
||||
func (s BioSequenceSlice) Count() int {
|
||||
size := 0
|
||||
|
||||
for _, s := range s {
|
||||
size += s.Count()
|
||||
}
|
||||
|
||||
return size
|
||||
}
|
||||
|
||||
func (s BioSequenceSlice) AttributeKeys(skip_map bool) obiutils.Set[string] {
|
||||
keys := obiutils.MakeSet[string]()
|
||||
|
||||
|
Reference in New Issue
Block a user