Description Usage Arguments Value Author(s) Examples
View source: R/viRome_functions.R View source: R/sequence.report.R
For the positive and negative strand, group the data by reference, position, sequence length and strand and count the occurrence, producing a data.frame. Basically counts the occurrence of each unique read/mapping location.
1 | sequence.report(df = NULL, minlen = 1, maxlen = 37)
|
df |
A data.frame as output by |
minlen |
The minimum length of reads/alignments to include |
maxlen |
The maximum length of reads/alignments to include |
A data.frame with columns:
ref |
The name of the reference sequence |
pos |
Position in the reference |
strand |
The strand |
seq |
The sequence of the aligned read |
len |
The length of the alignment |
count |
The count of the occurrence of this sequence at this location/strand |
Mick Watson
1 2 3 4 5 | ## Not run: infile <- system.file("data/SRR389184_vs_SINV_sorted.bam", package="viRome")
## Not run: bam <- read.bam(bamfile=infile, chr="SINV", minlen=1, maxlen=12000, removeN=TRUE)
## Not run: bamc <- clip.bam(bam)
## Not run: sr <- sequence.report(bamc)
## Not run: sr
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.