mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Adds the new obicomplement command
This commit is contained in:
21
cmd/obitools/obicomplement/main.go
Normal file
21
cmd/obitools/obicomplement/main.go
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
|
||||||
|
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obiiter"
|
||||||
|
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obitools/obiconvert"
|
||||||
|
|
||||||
|
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obioptions"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
optionParser := obioptions.GenerateOptionParser(obiconvert.OptionSet)
|
||||||
|
|
||||||
|
_, args, _ := optionParser(os.Args)
|
||||||
|
|
||||||
|
fs, _ := obiconvert.ReadBioSequencesBatch(args...)
|
||||||
|
|
||||||
|
comp := fs.MakeIWorker(obiiter.ReverseComplementWorker(true))
|
||||||
|
obiconvert.WriteBioSequencesBatch(comp, true)
|
||||||
|
}
|
Reference in New Issue
Block a user