Description Usage Arguments Value Examples
Simulate the RPFs reads in CDS, 5'UTR and 3'UTR
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
txdb |
A TxDb object |
outPath |
Output folder for the bam files |
genome |
A BSgenome object |
samples |
Total samples to simulate. |
group1, group2 |
Numeric to index the sample groups. |
readsPerSample |
Total reads number per sample. |
readsLen |
Reads length, default 100bp. |
psite |
P-site position. default 13. |
frame0, frame1, frame2 |
Percentage of reads distribution in frame0, frame1 and frame2 |
DEregions |
The regions with differential reads in exon, utr5 and utr3. |
size |
Dispersion parameter. Must be strictly positive. |
sd |
Standard deviations. |
minDElevel |
Minimal differential level. default: log2(2). |
includeReadsSeq |
logical(1). Include reads sequence or not. |
An invisible list of GAlignments.
1 2 3 4 5 6 7 8 9 10 11 12 | library(GenomicFeatures)
txdb_file <- system.file("extdata", "Biomart_Ensembl_sample.sqlite",
package="GenomicFeatures")
txdb <- loadDb(txdb_file)
simulateRPF(txdb, samples=1, readsPerSample = 1e3)
## Not run:
cds <- prepareCDS(txdb, withUTR = TRUE)
cds <- cds[width(cds)>200]
DEregions <- cds[sample(seq_along(cds), 10)]
simulateRPF(txdb, samples=6, readsPerSample = 1e5, DEregions=DEregions)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.