10#ifndef GEMMI_MTZ2CIF_HPP_
11#define GEMMI_MTZ2CIF_HPP_
24 const char* block_name =
nullptr;
25 std::string entry_id =
"xxxx";
26 bool with_comments =
true;
27 bool with_history =
true;
28 bool skip_empty =
false;
29 bool skip_negative_sigi =
false;
30 bool enable_UB =
false;
31 bool write_staraniso_tensor =
true;
32 bool write_special_marker_for_pdb =
false;
33 int less_anomalous = 0;
35 double wavelength =
NAN;
37 int free_flag_value = -1;
42 static const char*
merged[] = {
46 "? FREE|RFREE|FREER|FreeR_flag|R-free-flags|FreeRflag I status S",
47 "? IMEAN|I|IOBS|I-obs J intensity_meas",
48 "& SIG{prev} Q intensity_sigma",
49 "? I(+)|IOBS(+)|I-obs(+) K pdbx_I_plus",
50 "& SIG{prev} M pdbx_I_plus_sigma",
51 "? I(-)|IOBS(-)|I-obs(-) K pdbx_I_minus",
52 "& SIG{prev} M pdbx_I_minus_sigma",
54 "? F|FP|FOBS|F-obs F F_meas_au",
55 "& SIG{prev} Q F_meas_sigma_au",
56 "? F(+)|FOBS(+)|F-obs(+) G pdbx_F_plus",
57 "& SIG{prev} L pdbx_F_plus_sigma",
58 "? F(-)|FOBS(-)|F-obs(-) G pdbx_F_minus",
59 "& SIG{prev} L pdbx_F_minus_sigma",
60 "? DP D pdbx_anom_difference",
61 "& SIGDP Q pdbx_anom_difference_sigma",
63 "? PHIC P phase_calc",
65 "? HLA A pdbx_HL_A_iso",
66 "& HLB A pdbx_HL_B_iso",
67 "& HLC A pdbx_HL_C_iso",
68 "& HLD A pdbx_HL_D_iso",
69 "? FWT|2FOFCWT F pdbx_FWT",
70 "& PHWT|PH2FOFCWT P pdbx_PHWT .3f",
71 "? DELFWT|FOFCWT F pdbx_DELFWT",
72 "& DELPHWT|PHDELWT|PHFOFCWT P pdbx_DELPHWT .3f",
81 "? I J intensity_net",
82 "& SIGI Q intensity_sigma .5g",
84 "?ROT R pdbx_scan_angle",
85 "$image pdbx_image_id",
97 const std::string& entry_id,
98 char* buf, std::ostream& os);
static const char ** default_spec(bool for_merged)
std::string gemmi_run_from
std::string staraniso_version
void write_cif(const Mtz &mtz, const Mtz *mtz2, SMat33< double > *staraniso_b, std::ostream &os)
std::vector< std::string > spec_lines
void write_cif_from_xds(const XdsAscii &xds, std::ostream &os)
std::string skip_empty_cols
GEMMI_DLL void remove_appendix_from_column_names(Mtz &mtz, std::ostream &out)
remove '_dataset_name' that can be appended to column names in ccp4i
GEMMI_DLL void write_staraniso_b_in_mmcif(const SMat33< double > &b, const std::string &entry_id, char *buf, std::ostream &os)
GEMMI_DLL bool validate_merged_intensities(Intensities &mi, Intensities &ui, bool relaxed_check, std::ostream &out)
GEMMI_DLL bool validate_merged_mtz_deposition_columns(const Mtz &mtz, std::ostream &out)