Difference between revisions of "Advanced Merging"

From cctbx_xfel
Jump to: navigation, search
(Created page with "Here we describe two use cases for merging: one where an isomorphous structure is already known, and the other with a new structure. In the examples below, note the use of th...")
(No difference)

Revision as of 16:58, 7 December 2013

Here we describe two use cases for merging: one where an isomorphous structure is already known, and the other with a new structure. In the examples below, note the use of the same command line parameters for the MERGE and XMERGE steps, allowing the command script to be formed in a condensed non-redundant fashion. Not all of the parameters are actually used by both steps. Used only by merge: nproc. Used only by xmerge: scaling.*

Use case 1: Isomorphous replacement

In this case, the new XFEL data are scaled to a known isomorphous reference, either a synchrotron-solved structure or a previous XFEL structure:

$ vi psII_merge.csh
#!/bin/csh -f
set trial=${1}

set runs = 127,130,132,134,135,140,141,142,144,145,146,148,151,152,157,162,163
set datastring = \
`python -c "print ' '.join(['data=/my_result_directory/L785/r%04d/${trial}/integration'%i for i in [${runs}]])"`
set tag = L785_2flash_${trial}

set effective_params = "d_min=4.7 \
output.n_bins=20 \
${datastring} \
model=/my_work/3bz1_3bz2_core.pdb \
nproc=16 \
merge_anomalous=True \
plot_single_index_histograms=False \
raw_data.sdfac_auto=True \
mysql.runtag=${tag} \
mysql.passwd=terp888 \
mysql.user=nick \
mysql.database=xfelnks \
scaling.mtz_file=./3bz1-sf.mtz \
scaling.show_plots=False \
scaling.algorithm=mark0 \
scaling.log_cutoff=9. \
set_average_unit_cell=True \
rescale_with_average_cell=True \
output.prefix=${tag}"

cxi.merge ${effective_params}
cxi.xmerge ${effective_params}

$./psII_merge.csh 009


Use case 2: New structure

This is a completely unknown structure with no isomorphous reference:

$ bt_allmerge.csh 001
#!/bin/csh -f

set trial=${1}
set datadir = /my_work_area/LCLS/cxis9913
set runs = 62,63,64,65,66,67,68,69,70
set datastring = `python -c "print ' '.join(['data=${datadir}/r%04d/${trial}/integration'%i for i in [${runs}]])"`
set tag = last_BT_${trial}

set effective_params = “d_min=3.0 \
output.n_bins=13 \
${datastring} \
target_unit_cell=81.8,94.0,123.0,90,90,90 \
target_space_group=P212121 \
nproc=16 \
merge_anomalous=True \
plot_single_index_histograms=False \
raw_data.sdfac_auto=True \
mysql.runtag=${tag} \
mysql.passwd=terp888 \
mysql.user=nick \
mysql.database=xfelnks \
scaling.mtz_file="fake_fake.mtz" \
scaling.show_plots=True \
scaling.algorithm=mark1 \
scaling.log_cutoff=3. \
scaling.mtz_column_F=f-obs \
set_average_unit_cell=True \
rescale_with_average_cell=True \
output.prefix=${tag}”

cxi.merge ${effective_params}
cxi.xmerge ${effective_params}