Skip to content

Commit

Permalink
Let relion compute apix if none provided
Browse files Browse the repository at this point in the history
  • Loading branch information
asarnow committed Sep 30, 2017
1 parent 13d0319 commit be132b9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions reconstruct.py
Expand Up @@ -65,9 +65,14 @@ def do_job(star):


def do_reconstruct(star, mrc, apix, sym="C1", ctf=True, relion_path="relion_reconstruct"):
com = relion_path + \
" --angpix %f --sym %s --ctf %s --i %s --o %s" % \
(apix, sym, str(ctf).lower(), star, mrc)
if apix is not None:
com = relion_path + \
" --angpix %f --sym %s --ctf %s --i %s --o %s" % \
(apix, sym, str(ctf).lower(), star, mrc)
else:
com = relion_path + \
" --sym %s --ctf %s --i %s --o %s" % \
(sym, str(ctf).lower(), star, mrc)
#os.system(com)
try:
output = subprocess.check_output(shlex.split(com), stderr=subprocess.STDOUT)
Expand Down

0 comments on commit be132b9

Please sign in to comment.