This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Randomly allocating observations into groups, for, e.g. cross-validation | |
| kk <- 10 # Number of partitions, as in "kk-fold cross-validation." | |
| # Here is a data.frame full of good data: | |
| nn <- 1003 | |
| myData <- data.frame(matrix(rnorm(nn * 3), ncol = 3)) | |
| colnames(myData) <- LETTERS[1:3] | |
| # This does not work: | |
| whichK <- sample(LETTERS[1:kk], nrow(myData), replace = T) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # check commands: slopBed, bedGraphToBigWig and bedClip | |
| which bedtools &>/dev/null || { echo "bedtools not found! Download bedTools: <http://code.google.com/p/bedtools/>"; exit 1; } | |
| which bedGraphToBigWig &>/dev/null || { echo "bedGraphToBigWig not found! Download: <http://hgdownload.cse.ucsc.edu/admin/exe/>"; exit 1; } | |
| which bedClip &>/dev/null || { echo "bedClip not found! Download: <http://hgdownload.cse.ucsc.edu/admin/exe/>"; exit 1; } | |
| # end of checking |
NewerOlder