This is a Wiki page documenting how the dummy data were created. Here we want to show information that would be important to document next to a data index. This documentation can include lab protocols for data acquisition, reconstruction or preprocessing of raw data, etc. For this example we include a quick description on how the dummy dataset was created.
Creating the Dummy Datapackage
Metadata table
The metadata table was created by manipulating a metadata excel table from a real project. I deleted some variables, renamed some other variables, shuffled rows and change some content to more meaningless values (e.g., subject ID values start with DS for Dummy Subject; the values of the variable _status _ were replaced by statA, statB, statC)
Preview images
The images were created by manipulating real synchrotron images. The R package magick was used to apply some filter that would render the images meaningless
require(magick)
rm(list=ls())
dirinput <- '.' # input directory where I had the original images
diroutput <- './modified'
fnames <- list.files(dirinput)
for (f in 1:length(fnames)) {
img <- magick::image_read(file.path(dirinput,fnames[f]))
img <- magick::image_oilpaint(img, radius = 10)
img <- magick::image_rotate(img,degrees = 90)
magick::image_write(img,file.path(diroutput,fnames[f]), format='jpg'
}