Adds a --u-to-t option

This commit is contained in:
Eric Coissac
2025-07-07 15:35:26 +02:00
parent 43b285587e
commit ed28d3fb5b
3 changed files with 11 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ import (
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "235a7e2"
var _Commit = "43b2855"
var _Version = "Release 4.4.0"
// Version returns the version of the obitools package.

View File

@@ -40,6 +40,8 @@ var __paired_file_name__ = ""
var __full_file_batch__ = false
var __U_to_T = false
func InputOptionSet(options *getoptions.GetOpt) {
// options.IntVar(&__skipped_entries__, "skip", __skipped_entries__,
// options.Description("The N first sequence records of the file are discarded from the analysis and not reported to the output file."))
@@ -74,6 +76,9 @@ func InputOptionSet(options *getoptions.GetOpt) {
options.Description("When several input files are provided, "+
"indicates that there is no order among them."))
options.BoolVar(&__U_to_T, "u-to-t", __U_to_T,
options.Description("Convert Uracil to Thymine."))
}
func OutputModeOptionSet(options *getoptions.GetOpt, compressed bool) {
@@ -239,6 +244,10 @@ func CLIPairedFileName() string {
return __paired_file_name__
}
func CLIUtoT() bool {
return __U_to_T
}
func SetFullFileBatch() {
__full_file_batch__ = true
}

View File

@@ -112,6 +112,7 @@ func CLIReadBioSequences(filenames ...string) (obiiter.IBioSequence, error) {
opts = append(opts, obiformats.OptionsBatchSize(obidefault.BatchSize()))
opts = append(opts, obiformats.OptionsFullFileBatch(FullFileBatch()))
opts = append(opts, obiformats.OptionsUtoT(CLIUtoT()))
if len(filenames) == 0 {
log.Printf("Reading sequences from stdin in %s\n", CLIInputFormat())