Sunday, 31 May 2015

Differences Between Ensembl, Gencode, RefSeq and UCSC

Cited from "Question: Difference Between Ensembl Databases In Ucsc Table Browser"

"Vega is a browser of the manually curated Havana gene set. Ensembl also perform automatic annotation of genes using protein and nucleotide sequence databases, such as EMBL, Uniprot and RefSeq. Ensembl use the GENCODE gene set, which is made up of the Havana and Ensembl automatic gene set. Genes within the GENCODE set are labelled as being either Ensembl (from the automatic annotation), Havana (from the manual annotation) or merged (exact match between the automatic and manual annotation)."
=======================================================================

Monday, 18 May 2015

R EOF

Cited from R Command Line Processing

cat > printargs.R << EOF args = commandArgs() print(args) q() EOF

R --no-save < printargs.R

****************************************************************************

Bash: Substring Removal

Cited from "How do I parse command line arguments in bash?"

To better understand ${i#*=} search for "Substring Removal" in this guide. It is functionally equivalent to `sed 's/[^=]*=//' <<< "$i"` which calls a needless subprocess or `echo "$i" | sed 's/[^=]*=//'` which calls two needless subprocesses.

*******************************************************************

Tuesday, 5 May 2015

Message Passing

Cited from OO field guide

"With message-passing, messages (methods) are sent to objects and the object determines which function to call."

Monday, 4 May 2015

Function Names With Leading Dots

Cited from What does the dot mean in R – personal preference, naming convention or more?

"Function names with leading dots are somewhat hidden from general view. Functions that are meant to be purely internal to a package sometimes use this.

In this context, "somewhat hidden" simply means that the variable (or function) won't normally show up when you list object with ls(). To force ls to show these variables, use ls(all.names=TRUE). By using a dot as first letter of a variable, you change the scope of the variable itself. "