Code Duplication    Length = 11-11 lines in 2 locations

rna_tools/tools/PyMOL4RNA/PyMOL4RNA.py 2 locations

@@ 1092-1102 (lines=11) @@
1089
    print(out)
1090
cmd.extend('rpr', rpr)
1091
1092
def diff(selection, selection2):
1093
    """rpr"""
1094
    f = tempfile.NamedTemporaryFile(delete=False)
1095
    input = os.path.dirname(f.name) + os.sep +  selection + '.pdb'
1096
    cmd.save(input, selection)
1097
    output = os.path.dirname(f.name) + os.sep +  selection2 + '.pdb'
1098
    cmd.save(input, selection)
1099
    cmdline = 'diffpdb.py ' + input + ' ' + output + ' &'
1100
    print(cmdline)
1101
    #os.system(cmdline)
1102
    exe(cmdline)
1103
1104
cmd.extend('diff', diff)
1105
@@ 1079-1089 (lines=11) @@
1076
cmd.extend('ll', ll)
1077
print('ll - show lines only')
1078
1079
def rpr(selection):
1080
    """rpr"""
1081
    f = tempfile.NamedTemporaryFile(delete=False)
1082
    input = os.path.dirname(f.name) + os.sep +  selection + '.pdb'
1083
    cmd.save(input, selection)
1084
1085
    output = os.path.dirname(f.name) + os.sep +  selection + '_rpr.pdb'
1086
1087
    out, err = exe('rna_pdb_tools.py --rpr ' + input + ' > ' + output)
1088
    cmd.load(output)
1089
    print(out)
1090
cmd.extend('rpr', rpr)
1091
1092
def diff(selection, selection2):