Description Usage Arguments Author(s) Examples
Obtain counts for all possible trinucleotides within a specified genomic region
1 2 | get.nucleotide.chunk.counts(key, chr, upstream = 1, downstream = 1,
start = 1, end = -1)
|
key |
List of specify trinucleotides to count |
chr |
Chromosome |
upstream |
Length upstream to read |
downstream |
Length downstream to read |
start |
Starting position |
end |
Ending position |
Fouad Yousif
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | example.ref.dir <- paste0(
path.package("SeqKat"),
"/extdata/test/ref/"
);
bases.raw <- c('A','C','G','T','N');
tri.types.raw <- c(
outer(
c(outer(bases.raw, bases.raw, function(x, y) paste0(x,y))),
bases.raw, function(x, y) paste0(x,y))
);
tri.types.raw <- sort(tri.types.raw);
get.nucleotide.chunk.counts(
tri.types.raw,
file.path(example.ref.dir, 'chr4.fa'),
upstream = 1,
downstream = 1,
start = 1,
end = -1
);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.