EMaligner schema¶
-
class
EMaligner.schemas.EMA_Schema(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)¶ Bases:
argschema.schemas.ArgSchemaThe input schema used by the EM_aligner_python solver
This schema is designed to be a schema_type for an ArgSchemaParser objectEMA_Schema¶ key description default field_type json_type input_json file path of input json file NA InputFilestr output_json file path to output json file NA OutputFilestr log_level set the logging level of the module ERROR LogLevelstr first_section first section for matrix assembly (REQUIRED) Integerint last_section last section for matrix assembly (REQUIRED) Integerint n_parallel_jobs number of parallel jobs that will run for retrieving tilespecs, assembly from pointmatches, and import_tilespecs_parallel 4 Integerint processing_chunk_size number of pairs per multiprocessing job. can help parallelizing pymongo calls. 1 Integerint solve_type Solve type options (montage, 3D) montage Stringstr close_stack Set output stack to state COMPLETE? True Booleanbool overwrite_zlayer delete section before import tilespecs? True Booleanbool profile_data_load module will raise exception after timing tilespec read False Booleanbool transformation transformation to use for the solve AffineModel Stringstr fullsize_transform use fullsize affine transform False Booleanbool poly_order order of polynomial transform. 2 Integerint output_mode none: just solve and show logging output hdf5: assemble to hdf5_options.output_dir stack: write to output stack none Stringstr assemble_from_file path to an hdf5 file for solving from hdf5 output.mainly for testing purposes. hdf5 output usually to be solved by external solver Stringstr ingest_from_file path to an hdf5 file output from the external solver. Stringstr render_output anything besides the default will show all the render stderr/stdout null Stringstr input_stack specifies the origin of the tilespecs. NA input_stackdict output_stack specifies the destination of the tilespecs. NA output_stackdict pointmatch specifies the origin of the point correspondences NA pointmatchdict hdf5_options options invoked if output_mode is ‘hdf5’ NA hdf5_optionsdict matrix_assembly options that control which correspondences are included in the matrix equation and their weights NA matrix_assemblydict regularization options that contol the regularization of different types of variables in the solve NA regularizationdict transform_apply tilespec.tforms[i].tform() for i in transform_apply will be performed on the matches before matrix assembly. [] Listint -
opts= <marshmallow.schema.SchemaOpts object>¶
-
validate_data(data)¶
-
-
class
EMaligner.schemas.input_stack(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)¶ Bases:
EMaligner.schemas.input_dbinput_stack¶ key description default field_type json_type owner render or mongo owner Stringstr project render or mongo project Stringstr name render or mongo collection name NA Liststr host render host NA Stringstr port render port 8080 Integerint mongo_host mongodb host em-131fs Stringstr mongo_port mongodb port 27017 Integerint mongo_userName mongo user name Stringstr mongo_authenticationDatabase mongo admin db Stringstr mongo_password mongo pwd Stringstr db_interface render: read or write via render mongo: read or write via pymongo file: read or write to file mongo Stringstr client_scripts see renderapi.render.RenderClient /allen/aibs/pipeline/image_processing/volume_assembly/render-jars/production/scripts Stringstr memGB see renderapi.render.RenderClient 5G Stringstr validate_client see renderapi.render.RenderClient False Booleanbool input_file json or json.gz serialization of input None InputFilestr collection_type ‘stack’ or ‘pointmatch’ stack Stringstr use_rest passed as arg in import_tilespecs_parallel False Booleanbool -
opts= <marshmallow.schema.SchemaOpts object>¶
-
validate_data(data)¶
-
-
class
EMaligner.schemas.output_stack(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)¶ Bases:
EMaligner.schemas.db_paramsoutput_stack¶ key description default field_type json_type owner render or mongo owner Stringstr project render or mongo project Stringstr name render or mongo collection name NA Liststr host render host NA Stringstr port render port 8080 Integerint mongo_host mongodb host em-131fs Stringstr mongo_port mongodb port 27017 Integerint mongo_userName mongo user name Stringstr mongo_authenticationDatabase mongo admin db Stringstr mongo_password mongo pwd Stringstr db_interface render: read or write via render mongo: read or write via pymongo file: read or write to file mongo Stringstr client_scripts see renderapi.render.RenderClient /allen/aibs/pipeline/image_processing/volume_assembly/render-jars/production/scripts Stringstr memGB see renderapi.render.RenderClient 5G Stringstr validate_client see renderapi.render.RenderClient False Booleanbool output_file json or json.gz serialization of input stackResolvedTiles. None OutputFilestr compress_output if writing file, compress with gzip. True Booleanbool collection_type ‘stack’ or ‘pointmatch’ stack Stringstr use_rest passed as kwarg to renderapi.client.import_tilespecs_parallel False Booleanbool -
opts= <marshmallow.schema.SchemaOpts object>¶
-
validate_data(data)¶
-
validate_file(data)¶
-
-
class
EMaligner.schemas.pointmatch(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)¶ Bases:
EMaligner.schemas.input_dbpointmatch¶ key description default field_type json_type owner render or mongo owner Stringstr project render or mongo project Stringstr name render or mongo collection name NA Liststr host render host NA Stringstr port render port 8080 Integerint mongo_host mongodb host em-131fs Stringstr mongo_port mongodb port 27017 Integerint mongo_userName mongo user name Stringstr mongo_authenticationDatabase mongo admin db Stringstr mongo_password mongo pwd Stringstr db_interface render: read or write via render mongo: read or write via pymongo file: read or write to file mongo Stringstr client_scripts see renderapi.render.RenderClient /allen/aibs/pipeline/image_processing/volume_assembly/render-jars/production/scripts Stringstr memGB see renderapi.render.RenderClient 5G Stringstr validate_client see renderapi.render.RenderClient False Booleanbool input_file json or json.gz serialization of input None InputFilestr collection_type ‘stack’ or ‘pointmatch’ pointmatch Stringstr -
opts= <marshmallow.schema.SchemaOpts object>¶
-
-
class
EMaligner.schemas.hdf5_options(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)¶ Bases:
argschema.schemas.DefaultSchemahdf5_options¶ key description default field_type json_type output_dir path to directory to hold hdf5 output. Stringstr chunks_per_file how many sections with upward-looking cross section to write per .h5 file 5 Integerint -
opts= <marshmallow.schema.SchemaOpts object>¶
-
-
class
EMaligner.schemas.matrix_assembly(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)¶ Bases:
argschema.schemas.DefaultSchemamatrix_assembly¶ key description default field_type json_type depth depth in z for matrix assembly point matches [0, 1, 2] Listint explicit_weight_by_depth explicitly set solver weights by depth None Listfloat cross_pt_weight weight of cross section point matches 1.0 Floatfloat montage_pt_weight weight of montage point matches 1.0 Floatfloat npts_min disregard any tile pairs with fewer points than this 5 Integerint npts_max truncate any tile pairs to this size 500 Integerint choose_random choose random pts to meet npts_max vs. just first npts_max False Booleanbool inverse_dz cross section point match weighting fades with z True Booleanbool -
check_explicit(data)¶
-
opts= <marshmallow.schema.SchemaOpts object>¶
-
tolist(data)¶
-
-
class
EMaligner.schemas.regularization(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)¶ Bases:
argschema.schemas.DefaultSchemaregularization¶ key description default field_type json_type default_lambda common regularization value 0.005 Floatfloat translation_factor translation regularization factor. multiplies default_lambda 0.005 Floatfloat poly_factors List of regularization factors by order (0, 1, …, n) will override other settings for Polynomial2DTransform. multiplies default_lambda None Listfloat thinplate_factor regularization factor for thin plate spline control points. multiplies default_lambda. 1e-05 Floatfloat -
opts= <marshmallow.schema.SchemaOpts object>¶
-
-
class
EMaligner.schemas.EMA_PlotSchema(extra=None, only=None, exclude=(), prefix='', strict=None, many=False, context=None, load_only=(), dump_only=(), partial=False)¶ Bases:
EMaligner.schemas.EMA_SchemaThis schema is designed to be a schema_type for an ArgSchemaParser objectEMA_PlotSchema¶ key description default field_type json_type input_json file path of input json file NA InputFilestr output_json file path to output json file NA OutputFilestr log_level set the logging level of the module ERROR LogLevelstr first_section first section for matrix assembly (REQUIRED) Integerint last_section last section for matrix assembly (REQUIRED) Integerint n_parallel_jobs number of parallel jobs that will run for retrieving tilespecs, assembly from pointmatches, and import_tilespecs_parallel 4 Integerint processing_chunk_size number of pairs per multiprocessing job. can help parallelizing pymongo calls. 1 Integerint solve_type Solve type options (montage, 3D) montage Stringstr close_stack Set output stack to state COMPLETE? True Booleanbool overwrite_zlayer delete section before import tilespecs? True Booleanbool profile_data_load module will raise exception after timing tilespec read False Booleanbool transformation transformation to use for the solve AffineModel Stringstr fullsize_transform use fullsize affine transform False Booleanbool poly_order order of polynomial transform. 2 Integerint output_mode none: just solve and show logging output hdf5: assemble to hdf5_options.output_dir stack: write to output stack none Stringstr assemble_from_file path to an hdf5 file for solving from hdf5 output.mainly for testing purposes. hdf5 output usually to be solved by external solver Stringstr ingest_from_file path to an hdf5 file output from the external solver. Stringstr render_output anything besides the default will show all the render stderr/stdout null Stringstr input_stack specifies the origin of the tilespecs. NA input_stackdict output_stack specifies the destination of the tilespecs. NA output_stackdict pointmatch specifies the origin of the point correspondences NA pointmatchdict hdf5_options options invoked if output_mode is ‘hdf5’ NA hdf5_optionsdict matrix_assembly options that control which correspondences are included in the matrix equation and their weights NA matrix_assemblydict regularization options that contol the regularization of different types of variables in the solve NA regularizationdict transform_apply tilespec.tforms[i].tform() for i in transform_apply will be performed on the matches before matrix assembly. [] Listint z1 first z for plot 1000 Integerint z2 second z for plot 1000 Integerint zoff z offset between pointmatches and tilespecs 0 Integerint plot make a plot, otherwise, just text output True Booleanbool savefig save to a pdf False Booleanbool plot_dir no description ./ Stringstr threshold threshold for colors in residual plot [pixels] 5.0 Floatfloat density whether residual plot is density (for large numbers of points) or just points True Booleanbool -
opts= <marshmallow.schema.SchemaOpts object>¶
-