View source: R/process_spikes.R
| process_spikes | R Documentation |
Sequence feature verification: never trust anyone, least of all yourself.
process_spikes(fasta, methylated = 0, ...)
fasta |
fasta file (or GRanges or DataFrame) w/spike sequences |
methylated |
whether CpGs in each are methylated (0 or 1, default 0) |
... |
additional arguments, e.g. kernels (currently unused) |
GCfrac is the GC content of spikes as a proportion instead of a percent. OECpG is (observed/expected) CpGs (expectation is 25% of GC dinucleotides).
a DataFrame suitable for downstream processing
kmers
data(spike)
spikes <- system.file("extdata", "spikes.fa", package="spiky", mustWork=TRUE)
spikemeth <- spike$methylated
process_spikes(spikes, spikemeth)
data(phage)
phages <- system.file("extdata", "phages.fa", package="spiky", mustWork=TRUE)
identical(process_spikes(phage), phage)
identical(phage, process_spikes(phage))
data(genbank_mito)
(mt <- process_spikes(genbank_mito)) # see also genbank_mito.R
gb_mito <- system.file("extdata", "genbank_mito.R", package="spiky")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.