Title: | Easy, reproducible Westen blot editing |
---|---|
Description: | blotbench includes a rudimentary visual image editor that helps you write reproducible, declarative, auditable code for editing western blots. Additionally, it provides tools for easily producing annotated, publication-ready images quickly. |
Authors: | Kai Aragaki [aut, cre] |
Maintainer: | Kai Aragaki <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.0 |
Built: | 2024-11-03 06:45:26 UTC |
Source: | https://github.com/KaiAragaki/blotbench |
While functions like wb_present
will automatically apply transformations,
this function allows you to apply them manually.
apply_transforms(wb)
apply_transforms(wb)
wb |
A |
wb
objectGet or set column annotation for a wb
object
col_annot(x) col_annot(x) <- value
col_annot(x) col_annot(x) <- value
x |
A |
value |
A data.frame with each column representing a variable, and each row representing a lane in the blot. NOTE: the order of the rows should annotate the lanes left-to-right AFTER image manipulation, which might include mirroring. |
wb
objectGet or set images for a wb
object
imgs(x) imgs(x) <- value wb_add_img(x, imgs, names)
imgs(x) imgs(x) <- value wb_add_img(x, imgs, names)
x |
A |
value |
Unused. |
imgs |
A |
names |
A character vector of names with length equal to |
Note that imgs<-
is unused - add images using wb_add_img
Test if the object is a wb
is_wb(x)
is_wb(x)
x |
Object to be tested |
Logical. TRUE
if object inherits from the wb
class
wb
objectGet or set row annotation for a wb
object
row_annot(x) row_annot(x) <- value
row_annot(x) row_annot(x) <- value
x |
A |
value |
Either a |
wb
objectGet or set transforms of a wb
object
transforms(x) transforms(x) <- value
transforms(x) transforms(x) <- value
x |
A |
value |
A |
Create a wb object
wb(imgs, col_annot = NULL, row_annot = NULL, transforms = NULL)
wb(imgs, col_annot = NULL, row_annot = NULL, transforms = NULL)
imgs |
A vector of |
col_annot |
A |
row_annot |
A |
transforms |
A |
The BioRad ChemiDoc produces .scn files that can be converted to .tif(f) files using bfconvert.
wb_convert_scn(file, dest_name = NULL, overwrite = FALSE)
wb_convert_scn(file, dest_name = NULL, overwrite = FALSE)
file |
Character. Path to the file to be converted. |
dest_name |
Character. File name and path to save to. If not supplied, will be same name and location as input, but with a .tif extension. |
overwrite |
Logical. Should the file be overwritten if it already exists? |
This function requires bftools to be installed
Path to the saved file
## Not run: wb_convert_scn("path/to/file.scn", dest_name = "~/new/path.tif") ## End(Not run)
## Not run: wb_convert_scn("path/to/file.scn", dest_name = "~/new/path.tif") ## End(Not run)
This function takes a wb object and (optionally) row and column annotations and produces an image from them.
wb_present(wb)
wb_present(wb)
wb |
A |
This function helps generate code needed to transform a blot to your specifications via a Shiny app
wb_visual_edit(wb)
wb_visual_edit(wb)
wb |
A |