R/process_dnase_atac_data.R
count_genome_cuts.Rd
Counts genomic cuts (5' end) from DNase-seq or
ATAC-seq BAM alignment files using bedtools
For ATAC-seq, when shift_ATAC = TRUE
, shifts reads
so as to address offsets and align the signal across strands.
Sorted BAM file.
Chromosome size file.
Data type. Options: ‘DNase’ or ‘ATAC’.
Logical. When shift_ATAC=TRUE
(and data_type='ATAC'
),
shifts reads according to shift_ATAC_bases
.
Number of bases to shift on + and - strands. Default: shifts reads on + strand by 4 bp and reads on - strand by -4 bp.
Output directory (default: use the directory of bam_file
).
Output prefix (default: use the prefix of bam_file
).
Path to bedtools
executable.
Path to UCSC bedGraphToBigWig
executable.
if (FALSE) {
# ATAC-seq data
count_genome_cuts(bam_file='K562.ATAC.bam',
chrom_size_file='hg38.chrom.sizes',
data_type='ATAC',
shift_ATAC=TRUE,
outdir='processed_data',
outname='K562.ATAC')
# DNase-seq data
count_genome_cuts(bam_file='K562.DNase.bam',
chrom_size_file='hg38.chrom.sizes',
data_type='DNase',
outdir='processed_data',
outname='K562.DNase')
}