scripts/export/rfam_xml_dumper.py
def usage():
    """
    Parses arguments and displays usage information on screen
    """

    parser = argparse.ArgumentParser(
        description="Rfam Search Xml4db Dumper.", epilog='')

    # group required arguments together
    req_args = parser.add_argument_group("required arguments")

    req_args.add_argument("--type", help="rfam entry type (F: Family, M: Motif, C: Clan, G: Genome, R: Regions)",
                          type=str, choices=['F', 'M', 'C', 'G', 'R'], required=True)

    parser.add_argument(
        "--acc", help="a valid rfam entry accession (RF*|CL*|RM*)",
        type=str, default=None)

    parser.add_argument(
        "--hfields", help="include hierarchical fields", action="store_true")

    req_args.add_argument(
        "--out", help="path to output directory", type=str, required=True)

    return parser

    Parses arguments and displays usage information on screen
    
Parses arguments and displays usage information on screen
Parses arguments and displays usage information on screen
def usage():
    parser = argparse.ArgumentParser(
        description="Rfam Search Xml4db Dumper.", epilog='')
    req_args = parser.add_argument_group("required arguments")
    req_args.add_argument("--type", help="rfam entry type (F: Family, M: Motif, C: Clan, G: Genome, R: Regions)",
                          type=str, choices=['F', 'M', 'C', 'G', 'R'], required=True)
    parser.add_argument(
        "--acc", help="a valid rfam entry accession (RF*|CL*|RM*)",
        type=str, default=None)
    parser.add_argument(
        "--hfields", help="include hierarchical fields", action="store_true")
    req_args.add_argument(
        "--out", help="path to output directory", type=str, required=True)
    return parser
def usage ( ) : parser = argparse . ArgumentParser ( description = "Rfam Search Xml4db Dumper." , epilog = '' ) req_args = parser . add_argument_group ( "required arguments" ) req_args . add_argument ( "--type" , help = "rfam entry type (F: Family, M: Motif, C: Clan, G: Genome, R: Regions)" , type = str , choices = [ 'F' , 'M' , 'C' , 'G' , 'R' ] , required = True ) parser . add_argument ( "--acc" , help = "a valid rfam entry accession (RF*|CL*|RM*)" , type = str , default = None ) parser . add_argument ( "--hfields" , help = "include hierarchical fields" , action = "store_true" ) req_args . add_argument ( "--out" , help = "path to output directory" , type = str , required = True ) return parser
Parses arguments and displays usage information on screen
Parses arguments and displays usage information on screen
"""
    Parses arguments and displays usage information on screen
    """ # group required arguments together