rna_tools/tools/triplexibility/triplexibility.py 1 location
|
@@ 296-306 (lines=11) @@
|
293 |
|
io.set_structure(other_rnamodel.struc) |
294 |
|
|
295 |
|
args.save_here = True |
296 |
|
if args.save_here and save: |
297 |
|
f = os.path.basename(self.fpath.replace('.pdb', '_aligned')) |
298 |
|
# print(f) |
299 |
|
try: |
300 |
|
os.mkdir(f) |
301 |
|
except: |
302 |
|
pass |
303 |
|
# fout = f + os.sep + os.path.basename(other_rnamodel.fpath.replace('.pdb', '_aligned_s' + suffix + '.pdb')) |
304 |
|
fout = f + os.sep + os.path.basename(other_rnamodel.fpath)#.replace('.pdb', '_aligned')) |
305 |
|
else: |
306 |
|
fout = other_rnamodel.fpath.replace('.pdb', '_aligned.pdb') |
307 |
|
if save: |
308 |
|
io.save(fout) |
309 |
|
return rms |
rna_tools/tools/triplexibility/triplexibility2.py 1 location
|
@@ 237-247 (lines=11) @@
|
234 |
|
io.set_structure(other_rnamodel.struc) |
235 |
|
|
236 |
|
args.save_here = True |
237 |
|
if args.save_here and save: |
238 |
|
f = os.path.basename(self.fpath.replace('.pdb', '_aligned')) |
239 |
|
# print(f) |
240 |
|
try: |
241 |
|
os.mkdir(f) |
242 |
|
except: |
243 |
|
pass |
244 |
|
# fout = f + os.sep + os.path.basename(other_rnamodel.fpath.replace('.pdb', '_aligned_s' + suffix + '.pdb')) |
245 |
|
fout = f + os.sep + os.path.basename(other_rnamodel.fpath)#.replace('.pdb', '_aligned')) |
246 |
|
else: |
247 |
|
fout = other_rnamodel.fpath.replace('.pdb', '_aligned.pdb') |
248 |
|
if save: |
249 |
|
io.save(fout) |
250 |
|
return rms |