mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Adds the ability to read gzip-tar file for the taxonomy dump
This commit is contained in:
@ -1,36 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obifp"
|
||||
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obikmer"
|
||||
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obiseq"
|
||||
"os"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obitaxformat"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
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)
|
||||
|
||||
seq := obiseq.NewBioSequence("test", []byte("atcgggttccaacc"), "")
|
||||
|
||||
kmermap := obikmer.NewKmerMap[obifp.Uint128](
|
||||
obiseq.BioSequenceSlice{
|
||||
seq,
|
||||
},
|
||||
7,
|
||||
true,
|
||||
10,
|
||||
)
|
||||
|
||||
kmers := kmermap.NormalizedKmerSlice(seq, nil)
|
||||
|
||||
for _, kmer := range kmers {
|
||||
println(kmermap.KmerAsString(kmer))
|
||||
}
|
||||
|
||||
obitaxformat.DetectTaxonomyFormat(os.Args[1])
|
||||
}
|
||||
|
Reference in New Issue
Block a user