Adds the obimicrosat command

This commit is contained in:
Eric Coissac
2024-08-05 15:31:20 +02:00
parent 3f57935328
commit bdb96dda94
11 changed files with 419 additions and 5 deletions

View File

@ -525,3 +525,11 @@ func (s *BioSequence) Grow(length int) {
s.qualities = slices.Grow(s.qualities, length)
}
}
// SameAs checks if the sequence of the current BioSequence is the same as the sequence of the other BioSequence.
//
// other: a pointer to the other BioSequence.
// Returns a boolean indicating whether the sequences are the same.
func (s *BioSequence) SameAs(other *BioSequence) bool {
return obiutils.UnsafeStringFromBytes(s.sequence) == obiutils.UnsafeStringFromBytes(other.sequence)
}