Description Usage Arguments Value Author(s)
For a group of samples this function reads the coverage information for a specific chromosome directly from the BAM files. It then merges them into a DataFrame and removes the bases that do not pass the cutoff.
1 2 3 |
chr |
Chromosome to read. Should be in simple format: X and not chrX. |
datadir |
The main directory where each of the
|
sampledirs |
A character vector with the names of
the sample directories. If |
samplepatt |
If specified and |
cutoff |
Per base pair, at least one sample has to
have coverage greater than |
chrlen |
The chromosome length in base pairs. |
org |
If |
bamterm |
Name of the BAM file used in each sample.
By default it is set to |
output |
If |
verbose |
If |
A list with two objects. The first one, DF
, is a
DataFrame object where each column represents a sample. The
number of rows depends on the number of base pairs that
passed the cutoff. The second one, pos
, is a logical
Rle with the positions of the chromosome that passed the
cutoff.
Leonardo Collado-Torres
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.