commit version

This commit is contained in:
Eric Coissac
2024-09-24 16:36:59 +02:00
parent b37fc39ead
commit 7255c71576
2 changed files with 20 additions and 23 deletions

View File

@ -1,38 +1,35 @@
package main package main
import ( import (
"os" "git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obifp"
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obikmer"
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obiseq"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obiiter"
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obitools/obiconvert"
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obioptions"
) )
func main() { func main() {
optionParser := obioptions.GenerateOptionParser(obiconvert.OptionSet)
_, args := optionParser(os.Args) one := obifp.OneUint[obifp.Uint128]()
a, b := obifp.OneUint[obifp.Uint64]().LeftShift64(66, 0)
log.Infof("one: %v, %v", a, b)
shift := one.LeftShift(66)
log.Infof("one: %v", shift)
fs, err := obiconvert.CLIReadBioSequences(args...) seq := obiseq.NewBioSequence("test", []byte("atcgggttccaacc"), "")
if err != nil { kmermap := obikmer.NewKmerMap[obifp.Uint128](
log.Errorf("Cannot open file (%v)", err) obiseq.BioSequenceSlice{
os.Exit(1) seq,
} },
7,
frags := obiiter.IFragments( true,
1000,
100,
10,
100,
obioptions.CLIParallelWorkers(),
) )
obiconvert.CLIWriteBioSequences(fs.Pipe(frags), true) kmers := kmermap.NormalizedKmerSlice(seq, nil)
obiiter.WaitForLastPipe() for _, kmer := range kmers {
println(kmermap.KmerAsString(kmer))
}
} }

View File

@ -7,7 +7,7 @@ import (
// TODO: The version number is extracted from git. This induces that the version // TODO: The version number is extracted from git. This induces that the version
// corresponds to the last commit, and not the one when the file will be // corresponds to the last commit, and not the one when the file will be
// commited // commited
var _Commit = "05bf2bf" var _Commit = "b37fc39"
var _Version = "Release 4.2.0" var _Version = "Release 4.2.0"
// Version returns the version of the obitools package. // Version returns the version of the obitools package.