mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Small bug in sequence counting on merge
This commit is contained in:
@@ -41,7 +41,7 @@ func UniqueOptionSet(options *getoptions.GetOpt) {
|
||||
}
|
||||
|
||||
// OptionSet adds to the basic option set every options declared for
|
||||
// the obipcr command
|
||||
// the obiuniq command
|
||||
func OptionSet(options *getoptions.GetOpt) {
|
||||
obiconvert.OptionSet(options)
|
||||
UniqueOptionSet(options)
|
||||
|
||||
@@ -16,6 +16,11 @@ func Unique(sequences obiiter.IBioSequenceBatch) obiiter.IBioSequenceBatch {
|
||||
obichunk.OptionBatchCount(CLINumberOfChunks()),
|
||||
)
|
||||
|
||||
//
|
||||
// Considers if data splitting must be done on disk or in memory
|
||||
//
|
||||
// --on-disk command line option
|
||||
|
||||
if CLIUniqueInMemory() {
|
||||
log.Printf("Running dereplication in memory on %d chunks", CLINumberOfChunks())
|
||||
options = append(options, obichunk.OptionSortOnMemory())
|
||||
@@ -24,6 +29,12 @@ func Unique(sequences obiiter.IBioSequenceBatch) obiiter.IBioSequenceBatch {
|
||||
options = append(options, obichunk.OptionSortOnDisk())
|
||||
}
|
||||
|
||||
//
|
||||
// Considers if sequences observed a singletime in the dataset have to
|
||||
// be conserved in the output
|
||||
//
|
||||
// --no-singleton
|
||||
|
||||
if CLINoSingleton() {
|
||||
log.Printf("Removing sigletons from the output")
|
||||
options = append(options, obichunk.OptionsNoSingleton())
|
||||
|
||||
Reference in New Issue
Block a user