chipseq.Rd
This function executes the docker container chipseq.8 and requires as input two bam files, one for the chipseq of interest and the other for control, e.g. mock, which can be generated with bwa function.
chipseq(
group = c("sudo", "docker"),
bam.folder = getwd(),
sample.bam,
ctrl.bam,
scratch.folder = "/data/scratch",
genome = c("hg19", "hg38", "mm9", "mm10"),
read.size,
tool = c("macs", "sicer"),
macs.min.mfold = 10,
macs.max.mfold = 30,
macs.pval = "1e-5",
sicer.wsize = 200,
sicer.gsize = c(200, 600),
sicer.fdr = 0.1,
tss.distance = 0,
max.upstream.distance = 10000,
remove.duplicates = c("Y", "N")
)
a character string. Two options: "sudo"
or "docker"
, depending to which group the user belongs
a character string indicating where bam files are located
a character string indicating the chipseq file under analysis
a character string indicating the control file, e.g. unspecific IgG, input DNA, etc.
a character string indicating the scratch folder where docker container will be mounted
a character string indicating the genome used as reference for data generation. Available options: hg19, hg38, mm9, mm10
an integer indicating the length of the sequenced reads
a character string indicating the peaks calling algorith. Available options: macs and sicer. Macs, v 1.14, is used to call TF peaks, as instead sicer, v 1.1, is used to call histone mark peaks
an integer indicating the minimum enrichment ratio against background
an integer indicating the maximum enrichment ratio against background
a character string, indicationg the pvalue cutoff to be used to filter peaks with low statistical significance.The number must be provided in scientific notation as the default value shows
an integer indicating the windows size to be used by sicer
an integer indicating the gap size to be used by sicer. Suggested values: H3K4Me3=200; H3K27Me3=600
an integer indicating the pvalue cutoff to be used to filter peaks with low statistical significance
an integer indicating the distance of TSS with respect to gene start
an integer indicating the maximum distance to associate a gene ID to a peak
a character string indicating if duplicated reads have to be removed. Available options: Y, to remove douplicates, N to keep duplicates
three files: dedup_reads.bam, which is sorted and duplicates marked bam file, dedup_reads.bai, which is the index of the dedup_reads.bam, and dedup_reads.stats, which provides mapping statistics
if (FALSE) {
system("wget http://130.192.119.59/public/SRR1172111.bam")#TEAD
system("wget http://130.192.119.59/public/SRR1172110.bam")#igg
system("wget http://130.192.119.59/public/SRR1592211.bam")#H3K27ac
#running chipseq for macs
chipseq(group="sudo",bam.folder=getwd(), sample.bam="SRR1172111.bam", ctrl.bam="SRR1172110.bam",
scratch.folder="/data/scratch", genome="hg19", read.size=50,
tool="macs", macs.min.mfold=10, macs.max.mfold=30, macs.pval="1e-5",
sicer.wsize=200, sicer.gsize=200, sicer.fdr=0.10, tss.distance=0, max.upstream.distance=10000,
remove.duplicates="N")
#running chipseq for sicer H3K4Me3
chipseq(group="sudo",bam.folder=getwd(), sample.bam="SRR1592211.bam", ctrl.bam="SRR1172110.bam",
scratch.folder="/data/scratch", genome="hg19", read.size=50,
tool="sicer", sicer.wsize=200, sicer.gsize=200, sicer.fdr=0.10,
tss.distance=0, max.upstream.distance=10000,remove.duplicates="N")
}