3 __doc__ =
"Write output models as PDB files."
7 from IMP
import OptionParser
11 usage =
"""%prog [options] <asmb.input> <proteomics.input>
12 <mapping.input> <combinations> <model prefix>
17 parser.add_option(
"-m",
"--max", type=
"int", dest=
"max", default=
None,
18 help=
"maximum number of models to write")
19 (options, args) = parser.parse_args()
21 parser.error(
"incorrect number of arguments")
25 def run(asmb_fn, proteomics_fn, mapping_fn, combs_fn, model_output, max_comb):
35 mhs = ensmb.get_molecules()
36 print "number of combinations:", len(combs), max_comb
37 for i, comb
in enumerate(combs[:max_comb]):
40 ensmb.load_combination(comb)
41 print model_output +
"." + str(i) +
".pdb"
43 ensmb.unload_combination(comb)
47 options, args = parse_args()
48 run(args[0], args[1], args[2], args[3], args[4], options.max)
50 if __name__ ==
"__main__":
void write_pdb(const Selection &mhd, base::TextOutput out, unsigned int model=1)
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)
Ensemble * load_ensemble(multifit::SettingsData *sd, Model *mdl, const ProteinsAnchorsSamplingSpace &mapping_data)
See IMP.multifit for more information.
ProteomicsData * read_proteomics_data(const char *proteomics_fn)
Proteomics reader.
IMP::kernel::OptionParser OptionParser
IntsList read_paths(const char *txt_filename, int max_paths=INT_MAX)
Read paths.
Class for storing model, its restraints, constraints, and particles.