diff --git a/src/clash_resolver.py b/src/clash_resolver.py index 818c5033d9d419d48a3a032823f94fb11e4d3d0a..b1c965bd37e05b69517e1bd0009fcce548c8c5a0 100644 --- a/src/clash_resolver.py +++ b/src/clash_resolver.py @@ -162,6 +162,7 @@ class ClashResolver: def save_results(self, vol_array): prefix = config.prefix + tomoID = config.tomoID # save xml file results_xml = save_xml_one_loop( self.ccc_save, self.rot_save, self.coord_save, self.model_save @@ -181,6 +182,7 @@ class ClashResolver: df.to_csv(self.output_path + prefix + ".csv", index=False) # save star file star = coord_to_relion(self.coord_save, self.rot_save, self.ccc_save) + star['rlnTomoName'] = tomoID starfile.write(star, self.output_path + prefix + ".star", overwrite=True) # plot the annotation over the tomogram df2 = coord_to_relion(self.coord_save, self.rot_save) diff --git a/src/config.py b/src/config.py index d38985a9537f260001b9afb94a4bfb5248d0fa27..5585e2c6a5f738696881191b255d1cfe259acdf8 100644 --- a/src/config.py +++ b/src/config.py @@ -19,7 +19,7 @@ tomoID = split_path[-2] prefix = tomoID + ".test1" input_folder = "inputs/" tomogram = input_folder + tomoID + ".test1.lps25.mrc" -black_on_white = 1 # The constrast of tomogram, 0 if the particle has white contrast (positive values) +black_on_white = 1 # The contrast of tomogram, 0 if the particle has white contrast (positive values) templates = [input_folder + "mono-8Apx-lps30-box30-rot12-core.mrc"] contour_level = [0.2]