Skip to content

Commit

Permalink
triplexibility: fix to be able to run it
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagnus committed Jan 20, 2022
1 parent d4ec5bd commit 0e89506
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rna_tools/tools/triplexibility/triplexibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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='+')
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 0e89506

Please sign in to comment.