dinuc.codon | R Documentation |
A measure of statistical dinucleotide over- and underrepresentation; by allows for random sequence generation by shuffling (with/without replacement) of codons.
dinuc.codon(df.virus,permutations=500,exact_numbers = FALSE)
df.virus |
data frame with seq_name and its DNA sequence. |
permutations |
the number of permutations for the z-score computation. |
exact_numbers |
if TRUE exact analytical calculation will be used. |
For more information seqinr.
A data.frame containing the computed statistic for each dinucleotide in all DNA sequences within df.virus.
Ali Mostafa Anwar ali.mo.anwar@std.agr.cu.edu.eg and Mohmed Soudy MohmedSoudy2009@gmail.com
## Not run:
# read DNA from fasta file
fasta <- fasta.read("virus.fasta", "host.fasta")
fasta.v <- fasta[[1]]
fasta.h <- fasta[[2]]
# Calculate zscore using (codon model)
codon <- dinuc.codon(fasta.v, permutations = 500)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.