Adds the --template option to obimultiplex

Former-commit-id: 349e9f278abd6a6c258f31d99ea04853a79c62de
This commit is contained in:
Eric Coissac
2024-05-31 11:34:06 +02:00
parent 4487723d14
commit 38945d0a41
2 changed files with 33 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
log "github.com/sirupsen/logrus"
@ -31,6 +32,16 @@ func main() {
_, args := optionParser(os.Args)
if obimultiplex.CLIAskConfigTemplate() {
fmt.Print(obimultiplex.CLIConfigTemplate())
os.Exit(0)
}
if !obimultiplex.CLIHasNGSFilterFile() {
log.Error("You must provide a tag list file following the NGSFilter format")
os.Exit(1)
}
sequences, err := obiconvert.CLIReadBioSequences(args...)
if err != nil {