@@ 1156-1166 (lines=11) @@ | ||
1153 | print(out) |
|
1154 | cmd.extend('rpr', rpr) |
|
1155 | ||
1156 | def diff(selection, selection2): |
|
1157 | """rpr""" |
|
1158 | f = tempfile.NamedTemporaryFile(delete=False) |
|
1159 | input = os.path.dirname(f.name) + os.sep + selection + '.pdb' |
|
1160 | cmd.save(input, selection) |
|
1161 | output = os.path.dirname(f.name) + os.sep + selection2 + '.pdb' |
|
1162 | cmd.save(input, selection) |
|
1163 | cmdline = 'diffpdb.py ' + input + ' ' + output + ' &' |
|
1164 | print(cmdline) |
|
1165 | #os.system(cmdline) |
|
1166 | exe(cmdline) |
|
1167 | ||
1168 | cmd.extend('diff', diff) |
|
1169 | ||
@@ 1143-1153 (lines=11) @@ | ||
1140 | cmd.extend('ll', ll) |
|
1141 | print('ll - show lines only') |
|
1142 | ||
1143 | def rpr(selection): |
|
1144 | """rpr""" |
|
1145 | f = tempfile.NamedTemporaryFile(delete=False) |
|
1146 | input = os.path.dirname(f.name) + os.sep + selection + '.pdb' |
|
1147 | cmd.save(input, selection) |
|
1148 | ||
1149 | output = os.path.dirname(f.name) + os.sep + selection + '_rpr.pdb' |
|
1150 | ||
1151 | out, err = exe('rna_pdb_tools.py --rpr ' + input + ' > ' + output) |
|
1152 | cmd.load(output) |
|
1153 | print(out) |
|
1154 | cmd.extend('rpr', rpr) |
|
1155 | ||
1156 | def diff(selection, selection2): |