3 __doc__ =
"Generate anchors for a density map."
7 from optparse
import OptionParser
10 usage =
"""%prog [options] <assembly input> <output anchors prefix>
12 Generate anchors for a density map."""
14 parser.add_option(
"-s",
"--size", type=
"int", dest=
"size", default=-1,
15 help=
"number of residues per bead")
16 options, args = parser.parse_args()
20 parser.error(
"incorrect number of arguments")
25 options,args=parse_args()
29 asmb.set_was_used(
True)
33 number_of_means = asmb.get_number_of_component_headers()
37 for i
in range(asmb.get_number_of_component_headers()):
39 number_of_means=total_num_residues/options.size
40 print "Calculating a segmentation into",number_of_means,
"regions"
41 density_threshold = asmb.get_assembly_header().get_threshold()
45 output+
".pdb", output+
".cmm",
48 if __name__==
"__main__":