e.g. to use the GIMP,
edit field `X11Forwarding' in file `/etc/sshd_config'
A repository of notes; by noto, for noto. Made public so noto can read it from anywhere. It won't make any sense to you.
Monday, December 28, 2009
Monday, December 21, 2009
Normalizing Affymetrix Data with bioconductor
#!/usr/bin/env Rscript
# Normalize a set of CEL files
## Note: To use biocLite packages (i.e. 'affy,' 'rma()', ...), it may be
# necessary to do a one-time [re-]install of the related packages. This can be
# done with the following sequence:
# > source("http://bioconductor.org/biocLite.R"); # Tell R where to download package info from
# > biocLite(); # Update biocLite package grounds. This turns out to be necessary 1-time step before a call to rma(...), which requires up-to-date biocLite library functions
# > biocLite("affy"); # d/l, install 'affy' package (1-time req. only)
library("affy");
# We'll be using this library
# Read CEL files
filenames <- list.files("path/to/CEL", full.names=TRUE);
affy.data <- ReadAffy(filenames=filenames, verbose=TRUE);
## Normalize using RMA
write.table( exprs( rma(affy.data, verbose=TRUE)), file="rma.matrix", sep='\t', quote=FALSE); # file="" to write to stdout, but watch for verbose output from rma(...) and/or ReadAffy(...)
## Using Quantile Norm (this post is edited--the old way didn't collapse measurements per probe)
library("affyPLM")
eset <- threestep (affy.data, background.method="IdealMM", normalize.method="quantile", summary.method="tukey.biweight" )
write.table(eset, file="qnorm.matrix", sep='\t', quote=FALSE)
# for some reason, this transposes the data and adds an "X" in front of every numeric probe ID?
Friday, December 4, 2009
Recursively downloading from an FTP site
- ncftp
$ sudo port install ncftp
$ cd ~/Downloads/uci
$ time ncftpget -R -v -u "anonymous" ftp.ics.uci.edu ~/Downloads/uci pub/machine-learning-databases
So far, I'm not finding this to be doing a very good job of being recursive.
Source:
http://www.cyberciti.biz/tips/linux-download-all-file-from-ftp-server-recursively.html - wget
$ sudo port install wget
$ cd ~/Downloads/uci2
$ time wget -r ftp://ftp.ics.uci.edu/pub/machine-learning-databases
Source: http://www.editcorp.com/Personal/Lars_Appel/wget/v1/wget_7.html, http://www.gnu.org/software/wget/manual/html_node/Recursive-Download.html.
See also: gwget
Tuesday, December 1, 2009
Installing LaTeX on a Mac
Download and unzip MacTeX.mpkg.zip from http://www.tug.org/mactex
and run the mkpg.
and run the mkpg.
Subscribe to:
Posts (Atom)