Merge pull request #53 from metabarcoding/push-skmxzrzulvtq

Push skmxzrzulvtq
This commit is contained in:
coissac
2025-10-28 14:27:19 +01:00
committed by GitHub
3 changed files with 5 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import (
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obiformats"
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obiiter"
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obiseq"
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obiutils"
)
// tempDir creates a temporary directory with a prefix "obiseq_chunks_"
@@ -74,6 +75,7 @@ func find(root, ext string) []string {
// status of each batch.
func ISequenceChunkOnDisk(iterator obiiter.IBioSequence,
classifier *obiseq.BioSequenceClassifier) (obiiter.IBioSequence, error) {
obiutils.RegisterAPipe()
dir, err := tempDir()
if err != nil {
return obiiter.NilIBioSequence, err
@@ -86,7 +88,7 @@ func ISequenceChunkOnDisk(iterator obiiter.IBioSequence,
go func() {
defer func() {
os.RemoveAll(dir)
log.Debugln("Clear the cache directory")
obiutils.UnregisterPipe()
}()
newIter.Wait()

View File

@@ -8,7 +8,7 @@ import (
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "29bf4ce"
var _Commit = "7f4ebe7"
var _Version = "Release 4.4.0"
// Version returns the version of the obitools package.

View File

@@ -123,7 +123,7 @@ func (data *MatrixData) Update(s *obiseq.BioSequence, mapkey string, strict bool
ok := false
switch attrname {
case "id":
value = s.Id
value = s.Id()
ok = true
case "count":
value = s.Count()