This file contains 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
## The following two functions allow the use to edgeR's infrastructure | |
## to execute the DESeq method. Instead of glmFit(dge, design), use | |
## glmFit.CountDataSet(cds, design), then continue as with a normal | |
## edgeR analysis. | |
getOffset.CountDataSet <- function(y) { | |
if (any(is.na(sizeFactors(y)))) | |
stop("Call estimateSizeFactors first") | |
log(sizeFactors(y)) - mean(log(sizeFactors(y))) + mean(log(colSums(counts(y)))) | |
} |
This file contains 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
The latest Sister Claire live-write started 19 hours ago at Fri, 27 Mar 2015 17:41. The URL is: | |
https://docs.google.com/document/d/1qpj_QxQSRWMbd_S1PVHAM4aBpb-RrskMIqcMHS4i0F0/edit |
This file contains 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
# featureCounts on exonsBy(TxDb.Hsapiens.UCSC.hg19.knownGene, "gene") | |
========== _____ _ _ ____ _____ ______ _____ | |
===== / ____| | | | _ \| __ \| ____| /\ | __ \ | |
===== | (___ | | | | |_) | |__) | |__ / \ | | | | | |
==== \___ \| | | | _ <| _ /| __| / /\ \ | | | | | |
==== ____) | |__| | |_) | | \ \| |____ / ____ \| |__| | | |
========== |_____/ \____/|____/|_| \_\______/_/ \_\_____/ | |
Rsubread 1.16.1 |
This file contains 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
# -*- mode:debian-control -*- | |
Package: BSgenome.Mfascicularis.NCBI.Macaca_fascicularis_5.0 | |
Title: Full genome sequences for Macaca fascicularis (Macaca_fascicularis_5.0) | |
Description: Full genome sequences for Macaca fascicularis (Crab-eating Macaque aka Cynomolgus Monkey) as provided by NCBI (Macaca_fascicularis_5.0, 2013-06-12) and stored in Biostrings objects. | |
Version: 0.1 | |
organism: Macaca fascicularis | |
species: Crab-eating macaque | |
provider: NCBI | |
provider_version: Macaca_fascicularis_5.0 | |
release_date: 2013-06-12 |
This file contains 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
Sorcerer we have ever known. As it is evident that my people have | |
advised me wrongly, I will not cast you three people into the dreadful | |
Garden of the Clinging Vines; but your animals must be driven into the | |
-- | |
touched they crushed, and our adventurers were indeed thankful to have | |
escaped being cast among them. | |
-- | |
"Why, they are driving us toward the Black Pit, into which they | |
threatened to cast us," replied the kitten. "If I were as big as you |
This file contains 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
-- | |
-- Toggle Airport Power Off and On again | |
-- | |
if (offset of "On" in (do shell script "networksetup -getairportpower en0")) > 0 then | |
do shell script "networksetup -setairportpower en0 off" | |
do shell script "networksetup -setairportpower en0 on" | |
end if |
This file contains 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
setGeneric("f1", signature=c("a"), | |
function(..., a) standardGeneric("f1")) | |
setMethod("f1", c(a="ANY"), function(..., a) list(a=a, ...)) | |
setMethod("f1", c(a="missing"), function(..., a) callGeneric(a=1, ...)) | |
f2 <- function(b,c,d, a) { | |
if (missing(a)) | |
f1(b=b, c=c, d=d) | |
else | |
f1(a=a, b=b, c=c, d=d) | |
} |
This file contains 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
(defun my-crm-custom (prompt table &optional predicate require-match initial-input hist def inherit-input-method) | |
(loop with return-list = nil | |
with next-value = nil | |
with def-list = (s-split crm-separator (or def "")) | |
with def-list-no-empty-string = (remove "" def-list) | |
with def-text = (when def-list-no-empty-string | |
(concat "(" (s-join crm-separator def-list) ")")) | |
;; Need to clear this | |
with def = nil | |
;; Save original prompt and construct prompt with defaults |
This file contains 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
library(ShortRead) | |
library(parallel) | |
tsmsg <- function(...) message(format(Sys.time(), "%Y-%m-%d %H:%M:%OS6"), ": ", ...) | |
## Like readChild but returns NULL when child is finished, and | |
## automatically unserializes results. | |
readChildSafe <- function(child) { | |
res <- parallel:::readChild(child) | |
if (is.integer(res) || is.null(res)) { |
This file contains 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
Process: trash [55738] | |
Path: /usr/local/bin/trash | |
Identifier: trash | |
Version: ??? | |
Code Type: X86-64 (Native) | |
Parent Process: bash [46897] | |
Responsible: iTerm [32951] | |
User ID: 501 | |
Date/Time: 2014-07-17 15:26:41.087 -0700 |