optimize sequence readers and patch a bug in the format guesser

Former-commit-id: 9dce1e96c57ae9a88c26fac5c8e1bdcdc2c0c7a5
This commit is contained in:
2023-10-13 21:52:57 +02:00
parent ddf0f2cede
commit e8c55a2b6b
7 changed files with 141 additions and 46 deletions

View File

@@ -18,6 +18,7 @@ var _MinimumLength = 0
var _MaximumLength = -1
var _Fragmented = false
var _Delta = -1
var _OnlyFull = false
// PCROptionSet defines every options related to a simulated PCR.
//
@@ -58,6 +59,9 @@ func PCROptionSet(options *getoptions.GetOpt) {
options.IntVar(&_Delta, "delta", -1,
options.Alias("D"),
options.Description("Lenght of the sequence fragment to be added to the barcode extremities."))
options.BoolVar(&_OnlyFull, "only-complete-flanking", false,
options.Description("Only fragments with complete flanking sequences are printed."))
}
// OptionSet adds to the basic option set every options declared for
@@ -131,3 +135,7 @@ func CLIWithExtension() bool {
func CLIExtension() int {
return _Delta
}
func CLIOnlyFull() bool {
return _OnlyFull
}

View File

@@ -24,6 +24,7 @@ func CLIPCR(iterator obiiter.IBioSequence) (obiiter.IBioSequence, error) {
CLIReversePrimer(),
CLIAllowedMismatch(),
),
obiapat.OptionOnlyFullExtension(CLIOnlyFull()),
)
if CLIMinLength() > 0 {