3 from __future__
import print_function
5 from IMP
import ArgumentParser
7 __doc__ =
"Show the DOMINO merge tree to be used in alignment."
12 Show the DOMINO merge tree to be used in the alignment procedure
14 p = ArgumentParser(description=desc)
15 p.add_argument(
"assembly_file", help=
"assembly file name")
16 p.add_argument(
"proteomics_file", help=
"proteomics file name")
17 p.add_argument(
"mapping_file", help=
"mapping file name")
18 p.add_argument(
"param_file", help=
"parameter file name")
22 def run(asmb_fn, proteomics_fn, mapping_fn, params_fn):
24 asmb.set_was_used(
True)
25 dmap = IMP.em.read_map(asmb.get_assembly_header().get_dens_fn())
26 dmap.get_header().set_resolution(
28 threshold = asmb.get_assembly_header().get_threshold()
29 dmap.update_voxel_size(asmb.get_assembly_header().get_spacing())
30 dmap.set_origin(asmb.get_assembly_header().get_origin())
32 alignment_params = IMP.multifit.AlignmentParams(params_fn)
33 alignment_params.show()
40 _ = mapping_data.get_anchors()
46 align.set_fast_scoring(
False)
47 align.set_density_map(dmap, threshold)
48 align.add_states_and_filters()
49 align.add_all_restraints()
50 print(
"\n\n\nDOMINO MERGE TREE\n\n")
51 align.show_domino_merge_tree()
56 run(args.assembly_file, args.proteomics_file, args.mapping_file,
60 if __name__ ==
"__main__":
SettingsData * read_settings(const char *filename)
ProteinsAnchorsSamplingSpace read_protein_anchors_mapping(multifit::ProteomicsData *prots, const std::string &anchors_prot_map_fn, int max_paths=INT_MAX)
Align proteomics graph to EM density map.
Fitting atomic structures into a cryo-electron microscopy density map.
ProteomicsData * read_proteomics_data(const char *proteomics_fn)
Proteomics reader.
void set_log_level(LogLevel l)
Set the current global log level.
double get_resolution(Model *m, ParticleIndex pi)
Estimate the resolution of the hierarchy as used by Representation.