mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
27 lines
634 B
Go
27 lines
634 B
Go
package obidefault
|
|
|
|
var _BatchSize = 2000
|
|
|
|
// SetBatchSize sets the size of the sequence batches.
|
|
//
|
|
// n - an integer representing the size of the sequence batches.
|
|
func SetBatchSize(n int) {
|
|
_BatchSize = n
|
|
}
|
|
|
|
// CLIBatchSize returns the expected size of the sequence batches.
|
|
//
|
|
// In Obitools, the sequences are processed in parallel by batches.
|
|
// The number of sequence in each batch is determined by the command line option
|
|
// --batch-size and the environment variable OBIBATCHSIZE.
|
|
//
|
|
// No parameters.
|
|
// Returns an integer value.
|
|
func BatchSize() int {
|
|
return _BatchSize
|
|
}
|
|
|
|
func BatchSizePtr() *int {
|
|
return &_BatchSize
|
|
}
|