Пример #1
0
	def __init__(self, auto=True,sparse_mode=False, file_name = ""):
		EMSymViewerWidget.__init__(self, filename=file_name)

		#Replacing the EM3DSymModel that was created in the base class
		euler_explorer = EMEulerExplorer(self, auto, sparse_mode, file_name = file_name)
		self.model = euler_explorer
		euler_explorer.regen_dl()
Пример #2
0
	def __init__(self, auto=True,sparse_mode=False, file_name = "", read_from=None):
		EMSymViewerWidget.__init__(self, filename=file_name)

		#Replacing the EM3DSymModel that was created in the base class
		euler_explorer = EMEulerExplorer(self, auto, sparse_mode, file_name = file_name, read_from=read_from)
		self.model = euler_explorer
		euler_explorer.regen_dl()
Пример #3
0
def main():
    progname = os.path.basename(sys.argv[0])
    usage = """prog  <simmx file> <projection file>  <particles file>

	This program allows you to look at per-particle classification based on a pre-computed similarity
	matrix. If a particle seems to be mis-classified, you can use this program to help figure out
	why. It will display a single asymmetric triangle on the unit sphere, with cylinders representing
	the similarity value for the selected particle vs. each possible reference projection. Use the
	normal middle-click on the asymmetric unit viewer for more options.
"""

    parser = EMArgumentParser(usage=usage, version=EMANVERSION)

    parser.add_argument(
        "--ppid",
        type=int,
        help="Set the PID of the parent process, used for cross platform PPID",
        default=-1)
    parser.add_argument(
        "--verbose",
        "-v",
        dest="verbose",
        action="store",
        metavar="n",
        type=int,
        default=0,
        help=
        "verbose level [0-9], higner number means higher level of verboseness")

    (options, args) = parser.parse_args()

    logid = E2init(sys.argv, options.ppid)

    em_app = EMApp()

    window = EMSymViewerWidget()
    explorer = EMSimmxExplorer(window)
    window.model = explorer

    if len(args) > 0: explorer.set_simmx_file(args[0])
    if len(args) > 1: explorer.set_projection_file(args[1])
    if len(args) > 2: explorer.set_particle_file(args[2])

    em_app.show()
    em_app.execute()

    E2end(logid)
Пример #4
0
def main():
	progname = os.path.basename(sys.argv[0])
	usage = """prog  <simmx file> <projection file>  <particles file>

	This program allows you to look at per-particle classification based on a pre-computed similarity
	matrix. If a particle seems to be mis-classified, you can use this program to help figure out
	why. It will display a single asymmetric triangle on the unit sphere, with cylinders representing
	the similarity value for the selected particle vs. each possible reference projection. Use the
	normal middle-click on the asymmetric unit viewer for more options.
"""

	parser = EMArgumentParser(usage=usage,version=EMANVERSION)

	parser.add_argument("--ppid", type=int, help="Set the PID of the parent process, used for cross platform PPID",default=-1)
	parser.add_argument("--verbose", "-v", dest="verbose", action="store", metavar="n", type=int, default=0, help="verbose level [0-9], higner number means higher level of verboseness")

	(options, args) = parser.parse_args()



	logid=E2init(sys.argv,options.ppid)

	em_app = EMApp()

	window = EMSymViewerWidget()
	explorer = EMSimmxExplorer(window)
	window.model = explorer

	if len(args) > 0: explorer.set_simmx_file(args[0])
	if len(args) > 1: explorer.set_projection_file(args[1])
	if len(args) > 2: explorer.set_particle_file(args[2])

	em_app.show()
	em_app.execute()

	E2end(logid)