mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Changes to be committed:
modified: pkg/obioptions/version.go modified: pkg/obitools/obicleandb/obicleandb.go modified: pkg/obitools/obicleandb/options.go
This commit is contained in:
@ -8,7 +8,7 @@ import (
|
||||
// corresponds to the last commit, and not the one when the file will be
|
||||
// commited
|
||||
|
||||
var _Commit = "286e27d"
|
||||
var _Commit = "b5cf586"
|
||||
var _Version = "Release 4.4.0"
|
||||
|
||||
// Version returns the version of the obitools package.
|
||||
|
@ -258,7 +258,7 @@ func ICleanDB(itertator obiiter.IBioSequence) obiiter.IBioSequence {
|
||||
)).And(obiseq.HasRequiredRank(taxonomy, "family"))
|
||||
}
|
||||
|
||||
goodTaxa := obiseq.IsAValidTaxon(taxonomy, CLIUpdateTaxids()).And(rankPredicate)
|
||||
goodTaxa := obiseq.IsAValidTaxon(taxonomy, obidefault.UpdateTaxid()).And(rankPredicate)
|
||||
|
||||
usable := unique.FilterOn(goodTaxa,
|
||||
obidefault.BatchSize(),
|
||||
|
@ -1,26 +1,15 @@
|
||||
package obicleandb
|
||||
|
||||
import (
|
||||
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obioptions"
|
||||
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obitools/obiconvert"
|
||||
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obitools/obigrep"
|
||||
"github.com/DavidGamba/go-getoptions"
|
||||
)
|
||||
|
||||
var _UpdateTaxids = false
|
||||
|
||||
func ObicleanDBOptionSet(options *getoptions.GetOpt) {
|
||||
|
||||
options.BoolVar(&_UpdateTaxids, "update-taxids", _UpdateTaxids,
|
||||
options.Description("Indicates if decrecated Taxids must be corrected."))
|
||||
}
|
||||
|
||||
func OptionSet(options *getoptions.GetOpt) {
|
||||
obioptions.LoadTaxonomyOptionSet(options, true, false)
|
||||
obiconvert.InputOptionSet(options)
|
||||
obiconvert.OutputOptionSet(options)
|
||||
obigrep.TaxonomySelectionOptionSet(options)
|
||||
ObicleanDBOptionSet(options)
|
||||
}
|
||||
|
||||
func CLIUpdateTaxids() bool {
|
||||
return _UpdateTaxids
|
||||
}
|
||||
|
Reference in New Issue
Block a user