mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-07-18 17:40:45 +00:00
Adds a --u-to-t option
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
// corresponds to the last commit, and not the one when the file will be
|
// corresponds to the last commit, and not the one when the file will be
|
||||||
// commited
|
// commited
|
||||||
|
|
||||||
var _Commit = "235a7e2"
|
var _Commit = "43b2855"
|
||||||
var _Version = "Release 4.4.0"
|
var _Version = "Release 4.4.0"
|
||||||
|
|
||||||
// Version returns the version of the obitools package.
|
// Version returns the version of the obitools package.
|
||||||
|
@@ -40,6 +40,8 @@ var __paired_file_name__ = ""
|
|||||||
|
|
||||||
var __full_file_batch__ = false
|
var __full_file_batch__ = false
|
||||||
|
|
||||||
|
var __U_to_T = false
|
||||||
|
|
||||||
func InputOptionSet(options *getoptions.GetOpt) {
|
func InputOptionSet(options *getoptions.GetOpt) {
|
||||||
// options.IntVar(&__skipped_entries__, "skip", __skipped_entries__,
|
// 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."))
|
// 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, "+
|
options.Description("When several input files are provided, "+
|
||||||
"indicates that there is no order among them."))
|
"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) {
|
func OutputModeOptionSet(options *getoptions.GetOpt, compressed bool) {
|
||||||
@@ -239,6 +244,10 @@ func CLIPairedFileName() string {
|
|||||||
return __paired_file_name__
|
return __paired_file_name__
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func CLIUtoT() bool {
|
||||||
|
return __U_to_T
|
||||||
|
}
|
||||||
|
|
||||||
func SetFullFileBatch() {
|
func SetFullFileBatch() {
|
||||||
__full_file_batch__ = true
|
__full_file_batch__ = true
|
||||||
}
|
}
|
||||||
|
@@ -112,6 +112,7 @@ func CLIReadBioSequences(filenames ...string) (obiiter.IBioSequence, error) {
|
|||||||
opts = append(opts, obiformats.OptionsBatchSize(obidefault.BatchSize()))
|
opts = append(opts, obiformats.OptionsBatchSize(obidefault.BatchSize()))
|
||||||
|
|
||||||
opts = append(opts, obiformats.OptionsFullFileBatch(FullFileBatch()))
|
opts = append(opts, obiformats.OptionsFullFileBatch(FullFileBatch()))
|
||||||
|
opts = append(opts, obiformats.OptionsUtoT(CLIUtoT()))
|
||||||
|
|
||||||
if len(filenames) == 0 {
|
if len(filenames) == 0 {
|
||||||
log.Printf("Reading sequences from stdin in %s\n", CLIInputFormat())
|
log.Printf("Reading sequences from stdin in %s\n", CLIInputFormat())
|
||||||
|
Reference in New Issue
Block a user