First complete version of obimultiplex2

Former-commit-id: 170593bd597c7914d3f1fd3d2b865186d7f11966
This commit is contained in:
Eric Coissac
2024-06-06 23:11:13 +02:00
parent 985c91452a
commit 1b43fa4247
9 changed files with 778 additions and 165 deletions

View File

@ -93,11 +93,11 @@ func (options Options) Unidentified() string {
return options.pointer.unidentified
}
func (options Options) AllowedMismatch() int {
func (options Options) AllowedMismatches() int {
return options.pointer.allowedMismatch
}
func (options Options) AllowsIndel() bool {
func (options Options) AllowsIndels() bool {
return options.pointer.allowsIndel
}
@ -160,7 +160,7 @@ func ExtractBarcodeSlice(ngslibrary *NGSLibrary,
opt := MakeOptions(options)
ngslibrary.Compile(opt.AllowedMismatch(), opt.AllowsIndel())
ngslibrary.Compile(opt.AllowedMismatches(), opt.AllowsIndels())
return _ExtractBarcodeSlice(ngslibrary, sequences, opt)
}
@ -170,7 +170,7 @@ func ExtractBarcodeSliceWorker(ngslibrary *NGSLibrary,
opt := MakeOptions(options)
ngslibrary.Compile(opt.AllowedMismatch(), opt.AllowsIndel())
ngslibrary.Compile(opt.AllowedMismatches(), opt.AllowsIndels())
worker := func(sequences obiseq.BioSequenceSlice) (obiseq.BioSequenceSlice, error) {
return _ExtractBarcodeSlice(ngslibrary, sequences, opt), nil