Creating a Shiny application that enables user login can be useful for tailoring individual user experience and for analyzing user actions with profile-type data. With basic file I/O functions, it is possible to create a simple but insecure app that stores login names and passwords in text files. A much Read More
Often, it is desirable to submit the same job to a computing cluster, changing only a few variables each time. For example, you may wish to run a simulation where random variables are generated from the same distribution, but each time with a different seed. Here, we will be generating 100 Read More
I live (and work!) near one of the most beautiful vantage points for sunsets in possibly the entire US.
However almost every beautiful sunset I have seen from there has come from either 1) me walking out of work and noticing that the sky is bright pink, or 2) Read More
As I have worked on various projects at Etsy, I have accumulated a suite of functions that help me quickly produce tables and charts that I find useful. Because of the nature of iterative development, it often happens that I reuse the functions many times, mostly through the shameful method Read More
I don’t know why but every time I just write function in R and I get
my mind somehow breaks down and I forget about getMethod(). If you’re like me, just remember this link.
Followup on hold jobs
In this post I have found a way to hold a pipeline from excecuting if any of the preceding jobs have errored.
I created a quick
R file, named it
test.R. Contents of
Error: object 'x' not found
Most of Read More
With the release of Bioconductor 2.13 comes a new release of minfi, a powerful tool for the analysis of methylation data from Illumina 450k arrays. Some of you may have noticed that in Bioconductor 2.13, the annotation package IlluminaHumanMethylation450kanno.ilmn.v1.2, required by the previous Read More
## This code reads a dicom image, converts it to a nifit and then writes the nifit file.
## Requires the packages oro.dicom and oro.nifti.
## Elizabeth Sweeney
## August 26th 2013
dicom <- readDICOM(‘~/folder’, flipud = FALSE)
nifti <- dicom2nifti(dicom)
writeNIfTI(nifti, filename = Read More