From 0e895067afe8bf722d0697dc8601c760cf330389 Mon Sep 17 00:00:00 2001 From: mmagnus Date: Thu, 20 Jan 2022 15:26:54 +0100 Subject: [PATCH] triplexibility: fix to be able to run it --- rna_tools/tools/triplexibility/triplexibility.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rna_tools/tools/triplexibility/triplexibility.py b/rna_tools/tools/triplexibility/triplexibility.py index 7bcd07802..486fc9b8e 100755 --- a/rna_tools/tools/triplexibility/triplexibility.py +++ b/rna_tools/tools/triplexibility/triplexibility.py @@ -258,7 +258,8 @@ def chunks(lst, n): fout = f + os.sep + os.path.basename(other_rnamodel.fpath)#.replace('.pdb', '_aligned')) else: fout = other_rnamodel.fpath.replace('.pdb', '_aligned.pdb') - io.save(fout) + if save: + io.save(fout) return rms @@ -296,8 +297,7 @@ def get_parser(): parser.add_argument('--suffix', default='aligned', help="used with --saved, by default: aligned") parser.add_argument('--way', help="e.g., backbone+sugar") parser.add_argument('--triple-mode', help="same crazy strategy to align triples", action="store_true") - parser.add_argument('--column-name', help="name column for rmsd, by default 'rmsd', but can also be a name of the target file", - default="rmsd") + parser.add_argument('--column-name', help="name column for rmsd, by default 'rmsd', but can also be a name of the target file", default="rmsd") parser.add_argument("-s", "--save", action="store_true", help="set suffix with --suffix, by default: aligned") parser.add_argument("--folder-prefix", default = '', help="folder name, t2-3-UAU_NAME_aligned") parser.add_argument('files', help='files', nargs='+') @@ -337,7 +337,8 @@ def get_parser(): #print rmsd t += mrna.fn + ',' + str(rmsd) + '\n' #break - # print(t.strip()) + + print(t.strip()) if args.result: with open(args.result, 'w') as f: