- bed.frame
data.frame
containing the definition of the regions.
The first three columns must be chromosome, start, end.
- bed.file
character
file name. Target BED file with the
definition of the regions. This file will only be used if no bed.frame
argument is provided. No headers are assumed so remove them if they exist.
Either a bed.file or a bed.frame must be provided for this function to run.
- bam.files
character
, list of BAM files to extract read count
data from.
- index.files
Optional character
argument with the list of
indexes for the BAM files, without the '.bai' suffix. If the indexes are
simply obtained by adding .bai to the BAM files, this argument does not need
to be specified.
- min.mapq
numeric
, minimum mapping quality to include a read.
- read.width
numeric
, maximum distance between the side of the
target region and the middle of the paired read to include the paired read
into that region.
- include.chr
logical
, if set to TRUE, this function will add
the string 'chr' to the chromosome names of the target BED file.
- referenceFasta
character
, file name for the reference genome
in fasta format. If available, GC content will be computed and added to the
output.