presto.Commandline¶
Commandline interface functions
-
class
presto.Commandline.CommonHelpFormatter(prog, indent_increment=2, max_help_position=24, width=None)¶ Bases:
argparse.RawDescriptionHelpFormatter,argparse.ArgumentDefaultsHelpFormatterCustom argparse.HelpFormatter
-
presto.Commandline.getCommonArgParser(seq_in=True, seq_out=True, paired=False, db_in=False, db_out=False, failed=True, log=True, annotation=True, multiproc=False)¶ Defines an ArgumentParser object with common pRESTO arguments
Parameters: - seq_in – If True include sequence input arguments
- seq_out – If True include sequence output arguments
- paired – If True defined paired-end sequence input and output arguments
- db_in – If True include tab delimited database input arguments
- db_out – If True include tab delimited database output arguments
- failed – If True include arguments for output of failed results
- log – If True include log arguments
- annotation – If True include annotation arguments
- multiproc – If True include multiprocessing arguments
Returns: An ArgumentParser object
Return type: ArgumentParser
-
presto.Commandline.parseCommonArgs(args, in_arg=None, in_types=None)¶ Checks common arguments from getCommonArgParser and transforms output options to a dictionary
Parameters: - args – Argument Namespace defined by ArgumentParser.parse_args
- in_arg – String defining a non-standard input file argument to verify; by default [‘db_files’, ‘seq_files’, ‘seq_files_1’, ‘seq_files_2’, ‘primer_file’] are supported in that order
- in_types – List of types (file extensions as strings) to allow for files in file_arg if None do not check type
Returns: Dictionary copy of args with output arguments embedded in the dictionary out_args
Return type: