![]() |
Bsoft 2.1.4
Bernard's software package
|
Library routines to read and write micrograph parameters. More...
#include "rwmg.h"
#include "mg_processing.h"
#include "mg_img_proc.h"
#include "mg_ctf.h"
#include "mg_tags.h"
#include "rwmgSTAR.h"
#include "rwmgXML.h"
#include "rwmgEMX.h"
#include "rwmgRELION.h"
#include "rwmgIMOD.h"
#include "rwmgSerialEM.h"
#include "file_util.h"
#include "utilities.h"
Functions | |
int | project_check (Bproject *project, int flags=0) |
int | project_display_counts (Bproject *project) |
int | field_resolve_file_access (Bfield *field, Bmicrograph *mg, Bstring filename, int flags) |
int | reconstruction_resolve_file_access (Breconstruction *rec, Bstring filename, int flags) |
int | project_resolve_file_access (Bproject *project, Bstring filename, int flags) |
Bproject * | read_project (const char *filename, int flags) |
Reading micrograph parameters from files. More... | |
Bproject * | read_project (Bstring &filename, int flags) |
Bproject * | read_project (Bstring &filename, Bstring &xsdfile, int flags) |
Bproject * | read_project (Bstring *file_list, int flags) |
Bproject * | read_project (Bstring *file_list, Bstring &xsdfile, int flags) |
long | append_project (Bproject *project, Bstring *file_list, Bstring &xsdfile, int flags) |
Bparticle * | read_particle (Bstring &filename, Bparticle **partlist, FOMType fom_tag[NFOM]) |
int | write_project (const char *filename, Bproject *project) |
Writing micrograph parameters to a file. More... | |
int | write_project (Bstring &filename, Bproject *project, int mg_select, int rec_select) |
Writing micrograph parameters to a file. More... | |
int | write_project (Bstring &filename, Bproject *project, int flags) |
Writing micrograph parameters to a file. More... | |
long | write_particle_list (Bstring &filename, Bproject *project, int flags) |
Writing particle coordinates to a file. More... | |
int | write_particle (Bstring &filename, Bparticle *part, int euler_flag, int omega_flag, FOMType fom_tag[NFOM]) |
Bstring | ppx_filename (Bstring &id, int part_id) |
int | ppx_exists (Bparticle *part, int flag) |
int | ppx_check (Bparticle *part, FOMType fom_tag[NFOM]) |
int | ppx_check (Bparticle *part) |
Bparticle * | project_find_particle (Bproject *project, Bstring &fn) |
Finds a particle associated with a file name. More... | |
long | project_update_from_ppx (Bproject *project) |
Updates a project with ppx files. More... | |
long | project_list_ppx (Bproject *project, int flag) |
Lists existing ppx files for a project. More... | |
int | project_split_write (Bstring &filename, Bproject *project) |
Splits a project into sets of particle selections and write the files. More... | |
int | project_split_field_write (Bproject *project) |
Splits a project into sets of particle selections and write the files. More... | |
Variables | |
int | verbose |
string | command |
Library routines to read and write micrograph parameters.
int field_resolve_file_access | ( | Bfield * | field, |
Bmicrograph * | mg, | ||
Bstring | filename, | ||
int | flags | ||
) |
int ppx_check | ( | Bparticle * | part | ) |
int ppx_exists | ( | Bparticle * | part, |
int | flag | ||
) |
int project_check | ( | Bproject * | project, |
int | flags = 0 |
||
) |
int project_display_counts | ( | Bproject * | project | ) |
Finds a particle associated with a file name.
*project | micrograph processing parameter structure. |
fn | filename to search for. |
The file name to search for is altered to represent an accurate path.
long project_list_ppx | ( | Bproject * | project, |
int | flag | ||
) |
Lists existing ppx files for a project.
*project | project parameter structure. |
flag | select: 0 = all, 1 = existing, 2 = absent. |
int project_split_field_write | ( | Bproject * | project | ) |
Splits a project into sets of particle selections and write the files.
*project | the project. |
The relevant micrographs are selected for each particle selection number and written into a file.
Splits a project into sets of particle selections and write the files.
&filename | base filename modified to include the particle selection number. |
*project | the project. |
The relevant micrographs are selected for each particle selection number and written into a file.
long project_update_from_ppx | ( | Bproject * | project | ) |
Updates a project with ppx files.
*project | project parameter structure. |
Bproject * read_project | ( | const char * | filename, |
int | flags | ||
) |
Reading micrograph parameters from files.
&filename | file name (or comma-delimited list). |
flags | flags to modify behavior. |
Flags (bits): 1 check particle images against images. 8 warn if files not found. 16 delete file names of files not found. 32 update micrograph intensities. 64 update STAR tags.
int reconstruction_resolve_file_access | ( | Breconstruction * | rec, |
Bstring | filename, | ||
int | flags | ||
) |
int write_particle | ( | Bstring & | filename, |
Bparticle * | part, | ||
int | euler_flag, | ||
int | omega_flag, | ||
FOMType | fom_tag[NFOM] | ||
) |
Writing particle coordinates to a file.
&filename | file name (or comma-delimited list). |
*project | project structure. |
flags | bits: 1=in angstrom |
Writing micrograph parameters to a file.
&filename | file name (or comma-delimited list). |
*project | project structure. |
flags | flags to modify behavior. |
Flags (bits): 1. check particle images. 2. write only selected micrographs. 4. write only selected reconstructions. 8. warn if files not found. 16. delete file names of files not found. 32. update micrograph intensities.
Writing micrograph parameters to a file.
*filename | file name (or comma-delimited list). |
*project | project structure. |
mg_select | flag to only write selected micrographs. |
rec_select | flag to only write selected reconstructions. |
int write_project | ( | const char * | filename, |
Bproject * | project | ||
) |
Writing micrograph parameters to a file.
*filename | file name (or comma-delimited list). |
*project | project structure. |
|
extern |
|
extern |