rm(list=ls())
library(metaseqR)

the.path <- "/data/images/proton/PHlab/run324"

the.contrasts.1 <- c(
	"group1_vs_group2"
)

metaseqr(
    sample.list=file.path(the.path,"targets.txt"),
    contrast=the.contrasts.1,
    annotation="download",
    org="hg19",
    count.type="utr",
    normalization="deseq",
    statistics="deseq",
    fig.format="png",
    export.where=file.path(the.path,"metaseqr_quantseq_run324"),
    restrict.cores=0.5,
    qc.plots=c(
        "mds","biodetection","countsbio","saturation","readnoise","filtered",
        "correl","pairwise","boxplot","gcbias","lengthbias","meandiff",
        "meanvar","biodist","volcano","deheatmap"
    ),
    exon.filters=NULL,
#    restrict.cores=0.8,
    gene.filters=list(
       length=list(
            length=500
        ),
        avg.reads=list(
            average.per.bp=100,
            quantile=0.25
        ),
        expression=list(
            median=TRUE,
            mean=FALSE,
            quantile=NA,
            known=NA,
            custom=NA
        ),
        biotype=get.defaults("biotype.filter","mm10")
    ),
    pcut=0.05,
    export.what=c("annotation","p.value","adj.p.value","fold.change",
		"counts","flags"),
    export.scale=c("natural","log2","rpgm"),
    export.values="normalized",
    export.counts.table=TRUE,
	report.top=0.05
)
