The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
The aim of this tutorial is to load the content of the log file, in
output from SHELXC/D/E, in the workspace and create dataframes that can
be used for further analysis or data visualisation. The cry
function read_SHELX_log
can load in the R working memory
all the log files in output from SHELXC/D/E and give in output a
dataframe for SHELXC/D and a list of dataframes for SHELXE.
Some sample files are stored as external data in this package. Among
them there are the SHELXC/D/E log files available with the current
release. To access the files, first load the cry
package.
Next, have a look at what is included in the external-data directory
of cry
.
## [1] "1dei-sf.cif" "1dei_phases.mtz"
## [3] "2ol9_phases.mtz" "3syu.cif"
## [5] "6vww_xds_ascii_merged.hkl" "AMS_DATA.cif"
## [7] "e-65-00i60-Isup2.rtv" "shelxc.log"
## [9] "shelxd.log" "shelxe_i.log"
## [11] "shelxe_o.log" "xds00_ascii.hkl"
Let start to have look at SHELXC log file.
filename <- file.path(datadir,"shelxc.log")
obj_shelxc <- read_SHELX_log(filename)
class(obj_shelxc)
## [1] "data.frame"
## [1] "Res" "N_data" "Chi_sq" "I_sig" "Complete" "d_sig" "CC1_2"
Using cry we plot all the classic charts of SHELXC. In the example
below we show Chis2 vs resolution
using the functionplot_SHELX
.
plot_SHELX(obj_shelxc, var = obj_shelxc$Chi_sq, type = "shelxc",
title_chart = "Chis ^2") +
theme_cry()
filename <- file.path(datadir,"shelxd.log")
obj_shelxd <- read_SHELX_log(filename)
class(obj_shelxd)
## [1] "data.frame"
## [1] "CCall" "CCweak"
Plot CCall vs CCweak using ggplot2
The function read_SHELX_log
when reading log files from
SHELXE five in output a list of dataframes. The user can choose the data
frame to use for further analysis.
## read the two hands log files separately
filename_i <- file.path(datadir,"shelxe_i.log")
obj_shelxe_i <- read_SHELX_log(filename_i)
class(obj_shelxe_i)
## [1] "list"
## [1] "CYCLE" "FOM_mapCC" "Site1" "Site2"
## [1] "data.frame"
## [1] "wt" "Contrast" "Connect" "cycle"
## [1] "data.frame"
## [1] "Res" "FOM" "mapCC" "N"
## [1] "data.frame"
## [1] "Site" "x" "y" "z" "occ.Z" "density"
## [1] "data.frame"
## [1] "Site" "x" "y" "z" "h.sig." "near" "old" "near.1"
## [9] "new"
filename_o <- file.path(datadir,"shelxe_o.log")
obj_shelxe_o <- read_SHELX_log(filename_o)
class(obj_shelxe_o)
## [1] "list"
## [1] "CYCLE" "FOM_mapCC" "Site1" "Site2"
## [1] "data.frame"
## [1] "wt" "Contrast" "Connect" "cycle"
## [1] "data.frame"
## [1] "Res" "FOM" "mapCC" "N"
## [1] "data.frame"
## [1] "Site" "x" "y" "z" "occ.Z" "density"
## [1] "data.frame"
## [1] "Site" "x" "y" "z" "h.sig." "near" "old" "near.1"
## [9] "new"
Plot inverted and original hand.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.