Bsoft 2.1.4
Bernard's software package
bmod2part.cpp File Reference

Converting from a pseudo-atomic model to particle parameters. More...

#include "rwmodel.h"
#include "model_select.h"
#include "model_util.h"
#include "rwmg.h"
#include "mg_processing.h"
#include "rwimg.h"
#include "file_util.h"
#include "utilities.h"
#include "options.h"
#include "timer.h"

Functions

Bprojectproject_part_from_model (Bmodel *model, Vector3< double > origin, Vector3< double > sampling, Vector3< long > box_size)
 Converts component coordinates in a model to reconstruction particle coordinates.
More...
 
Bmodelmodels_from_particles (Bproject *project, Bstring modtype)
 Converts particle coordinates for a reconstruction into model component coordinates.
More...
 
Bmodelcomponents_from_2D_particles (Bproject *project, Bstring comptype)
 Converts particle coordinates from micrographs into model component coordinates.
More...
 
Bmodelcomponents_from_3D_particles (Bproject *project, Bstring comptype)
 Converts particle coordinates for a reconstruction into model component coordinates.
More...
 
int main (int argc, char **argv)
 

Variables

int verbose
 
const char * use []
 

Detailed Description

Converting from a pseudo-atomic model to particle parameters.

Author
Bernard Heymann
Date
Created: 20070423
Modified: 20220223

Function Documentation

◆ components_from_2D_particles()

Bmodel * components_from_2D_particles ( Bproject project,
Bstring  comptype 
)

Converts particle coordinates from micrographs into model component coordinates.

Parameters
*projectproject with micrographs.
comptypecomponent type string.
Returns
Bmodel* new project.

◆ components_from_3D_particles()

Bmodel * components_from_3D_particles ( Bproject project,
Bstring  comptype 
)

Converts particle coordinates for a reconstruction into model component coordinates.

Parameters
*projectproject with reconstruction.
comptypecomponent type string.
Returns
Bmodel* new project.

◆ main()

int main ( int  argc,
char **  argv 
)

◆ models_from_particles()

Bmodel * models_from_particles ( Bproject project,
Bstring  modtype 
)

Converts particle coordinates for a reconstruction into model component coordinates.

Parameters
*projectproject with reconstruction.
modtypemodel tyoe string.
Returns
Bmodel* new project.

◆ project_part_from_model()

Bproject * project_part_from_model ( Bmodel model,
Vector3< double >  origin,
Vector3< double >  sampling,
Vector3< long >  box_size 
)

Converts component coordinates in a model to reconstruction particle coordinates.

Parameters
*modelmodel.
originmap origin in voxel coordinates.
samplingvoxel size.
box_sizeparticle box size.
Returns
Bproject* new project.

Variable Documentation

◆ use

const char* use[]
Initial value:
= {
" ",
"Usage: bmod2part [options] input.star",
"-------------------------------------",
"Converting between model components and reconstruction particle parameters.",
" ",
"Actions:",
"-reconstructions Operate on reconstruction parameters rather than micrographs.",
"-all Reset selection to all components before other selections.",
"-type comp Type of conversion: part->models or part->components.",
"-settype VER Set model or component types.",
"-associate TRS,trs.pdb Associate a component type with a file name.",
" ",
"Parameters:",
"-verbose 7 Verbose output.",
"-origin 0,0,0 Origin placement within image (default 0,0,0).",
"-sampling 2.3,2.3,1 Sampling (angstrom/voxel, one value sets all).",
"-box 100,83,120 Particle box size (default 50,50,50; one sets all).",
" ",
"Input:",
"-map image.spi Input 3D map file.",
"-parameters param.star Input atomic parameter file.",
" ",
"Output:",
"-output part.star Output particle parameter or model file.",
" ",
NULL
}

◆ verbose

int verbose
extern