Description Usage Arguments Author(s) See Also Examples
The function saveAldData reads alignment data for
all genes in geneList sequentially from all Bam files
listed in sampleBamFiles.
The function cuts out intronic regions using the exonAlignDepth
class and calculates a smoothed groupwise estimate
using the exonLoessModel function.
In a second region cutting step, remaining regions with low alignment
depth are cut out using cutFlatAlignDepth.
Finally, the function calculates group-wise ratios of alignment
depth using the groupRatio function.
1 |
bs |
sampleBamFiles. Contains BAM file names and group assignment. |
gl |
geneList. Contains a list of |
path |
character. Base directory where output files are written to. |
order |
numeric. Defines order in which group-levels of
|
lim |
numeric. Limit used for |
startId |
numeric. Index used for first gene. Starting value for subsequent numbering of genes. |
f |
function. Function for calculation of group accumulates.
Defaults to |
Wolfgang Kaisers
bamReader
1 2 3 4 5 6 7 8 9 | bam <- system.file("extdata", "accepted_hits.bam", package="rbamtools")
reader <- bamReader(bam, idx=TRUE)
# Extract data for HLHL17 gene:
seqid <- "chr1"
start <- 895967
end <- 901099
gene_name <- "HLHL17" # (optional)
ranges <- data.frame(seqid=seqid, start=start, end=end, gene_name=gene_name)
saveAldData(reader, ranges=ranges, filename="new_file.bam", f=mean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.