makeXrayDataSheet | R Documentation |
This function takes in an x-ray data frame (see makeXrayDf()) and outputs a data frame for the lab manager and volunteers to fill out when assembling x-ray sheets or when using the x-ray machine.
makeXrayDataSheet(xrdf)
xrdf |
an x-ray data frame for a given year, generated by makeXrayDf() |
When exporting this data frame as a .csv, make sure to specify na = "" (so that the data frame isn't printed with those columns filled with NA) and use row.names = TRUE, as the sheet numbers are the row.names.
a data frame with one row for each x-ray sheet. The data frame has a column for the first and last letno on each sheet. There are also three blank (NA) columns to be filled in during the ACE workflow – one for grid assembly, one for x-ray scanning, one for quality control by the lab manager.
xr16 = makeXrayDf(hh.2016)
xrds16 = makeXrayDataSheet(xr16)
head(xrds16)
tail(xrds16)
table(xrds16$Experiment)
write.csv(xrds16, na = "", file = "xrayDatasheet2016.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.