This repository contains tools for the resampling of diffraction patterns from
CrystFEL streams to analyse coordinate errors and Fourier electron density maps
in time-resolved serial crystallography (TR-SX) data.
If you find these tools useful, please cite the following publication:
-
Main
xshuffle.py
parameters.yml
process.sh
phenix_por.params
-
Secondary
run_polder.sh
run_fofo.sh
svd_samples.ipynb
run_x8.sh
maptool-resampling/
The scripts integrate libraries and programs from multiple software suites. Ensure you have these installed:
IMPORTANT
Users are responsible for obtaining the necessary licenses.
This is a command line tool developed using specific versions of software and
libraries.
To ensure compatibility and avoid execution errors, we strongly recommend to
configure a conda environment using the provided environment.yml
:
conda env create -f environment.yml
The simplest way to run this tool is to run it using a parameter file, a template is provided here:
./xshuffle.py --params=parameters.yml
Additionally, all parameters can be supplied either fully or partially via standard input (stdin) arguments. This is particularly useful for runing multiple jobs in parallel.
Consider the following example run using a publicly available dataset:
./xshuffle.py --params=parameters.yml --stream='input/0.016usec-light.stream'
Once the job is completed, it will generate output files organized according to the following folder structure:
output/
├── rfree.log
├── rfree.mtz
├── 0.016usec-light/
│ ├── Bootstrap/
│ │ ├── clean.stream
│ │ ├── frame_loc.yml
│ │ ├── analysis_fofo_0_minus.mat
│ │ ├── analysis_fofo_0_plus.mat
│ │ ├── analysis_polder_0.mat
│ │ ├── svd_FoFo/
│ │ ├── 000/
.
.
.
└── 099/
├── nframes.yaml
├── merge.hkl
├── merge.hkl.log
├── merge.mtz
├── merge.log
├── merge.hkl1
├── merge.hkl1.log
├── merge.hkl2
├── merge.hkl2.log
├── merge_check.dat
├── merge_check.log
├── merge_ccstar.dat
├── merge_ccstar.log
├── merge_rsplit.dat
├── merge_rsplit.log
├── merge_trunc.mtz
├── merge_trunc.log
├── merge_trunc_cad.mtz
├── merge_trunc_cad.log
├── merge_trunc_cad_uniq.mtz
├── merge_trunc_cad_uniq.log
├── merge_trunc_cad_uniq_data.mtz
├── merge_trunc_cad_uniq_001.eff
├── merge_trunc_cad_uniq_001.mtz
├── merge_trunc_cad_uniq_001.pdb
├── merge_trunc_cad_uniq_001.log
├── merge_trunc_cad_uniq_001_Fmodel.ccp4
├── analysis_fofo_0/
└── analysis_polder_0/
The example above illustrates the generation of 100 resampled refined structures using the Bootstrap method. Including post analysis of polder maps and isomorphous density maps with singular value decomposition.
For questions or further information, please contact the authors:
*Page written by Adams Vallejos