Code Duplication    Length = 10-12 lines in 3 locations

rna_tools/tools/automatix/xxdownload_job_and_process.py 1 location

@@ 11-22 (lines=12) @@
8
9
import argparse
10
11
def get_parser():
12
    parser = argparse.ArgumentParser(
13
        description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
14
15
    #parser.add_argument('-', "--", help="", default="")
16
17
    parser.add_argument("-v", "--verbose",
18
                        action="store_true", help="be verbose")
19
    parser.add_argument('--dir', action="store_false")
20
    parser.add_argument("rna", help="", default="evox.py -c ade")
21
    parser.add_argument("simrnawebid", help="", default="")
22
    return parser
23
24
25
if __name__ == '__main__':

rna_tools/tools/rna_alignment/utils/rna_alignment_process_id.py 1 location

@@ 10-21 (lines=12) @@
7
8
import argparse
9
10
def get_parser():
11
    parser = argparse.ArgumentParser(
12
        description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
13
14
    parser.add_argument("-v", "--verbose",
15
                        action="store_true", help="be verbose")
16
    parser.add_argument("-d", "--debug",
17
                        action="store_true", help="be verbose")
18
    parser.add_argument('--id-width', type=int, default=70)
19
    parser.add_argument('--sep', default='|')
20
    parser.add_argument("alignment")
21
    return parser
22
23
24
if __name__ == '__main__':

rna_tools/tools/plotting/rna_plot_hist.py 1 location

@@ 34-43 (lines=10) @@
31
pd.options.display.max_rows = 100
32
33
34
def get_parser():
35
    """Get parser."""
36
    parser = argparse.ArgumentParser(description=__doc__,
37
                                     formatter_class=argparse.RawDescriptionHelpFormatter)
38
    parser.add_argument('file', help="rmsd.txt")
39
    parser.add_argument('--column', help="column of file to plot")
40
    parser.add_argument('--sep', help="separator, be default \t", default=",")
41
    parser.add_argument('-o', '--output')
42
    parser.add_argument('--bins', default=10)
43
    return parser
44
45
46
if __name__ == '__main__':