before big changes

This commit is contained in:
2022-02-18 22:53:09 +01:00
parent 37ce3536e1
commit 9737f97084
15 changed files with 234 additions and 91 deletions

View File

@@ -23,7 +23,7 @@ func WriterDispatcher(prototypename string,
go func() {
for newflux := range dispatcher.News() {
jobDone.Add(1)
go func(newflux string) {
go func(newflux int) {
data, err := dispatcher.Outputs(newflux)
if err != nil {
@@ -35,7 +35,7 @@ func WriterDispatcher(prototypename string,
options...)
if err != nil {
log.Fatalf("cannot open the output file for key %s", newflux)
log.Fatalf("cannot open the output file for key %d", newflux)
}
out.Recycle()

View File

@@ -24,7 +24,7 @@ func _FastseqReader(seqfile C.fast_kseq_p,
i := 0
ii := 0
slice := make(obiseq.BioSequenceSlice, 0, batch_size)
slice := obiseq.GetBioSequenceSlice()
for l := int64(C.next_fast_sek(seqfile)); l > 0; l = int64(C.next_fast_sek(seqfile)) {
@@ -125,7 +125,7 @@ func ReadFastSeqBatchFromFile(filename string, options ...WithOption) (obiseq.IB
if parser != nil {
return IParseFastSeqHeaderBatch(newIter, options...), err
}
}
return newIter, err
}