R/writeLocsFile.R

Defines functions writeLocsFile

writeLocsFile <-
function(fileName, coords, nBeads)
{
    con <- file(fileName, "wb");
    writeBin(as.integer(c(1, 0, nBeads)), con = con, size = 4);
    writeBin(as.vector(coords), con = con, size = 4);
    close(con);
}

Try the BeadDataPackR package in your browser

Any scripts or data that you put into this service are public.

BeadDataPackR documentation built on May 2, 2018, 4 a.m.