SNPs found throughout the genome of viruses are of great importance to virologist as it can tell one about the mutations a virus is undergoing as it transends different host barriers or to observe which parts of the genome are conserved. With this said, this R package will allow one to visually represent SNPs found in the virus genomes.
SNP.mapper contains 2 functions, the first function will create a plot where SNP frequency (Percentage) will be plotted against the length of the genome (Nucleotide Position), the second function will create a plot where the number of observed SNPs (Number of SNPs) at each passage will be plotted against passage number(Passage Number).
Creates a plot where SNP frequency (Percentage) will be plotted against the length of the genome (Nucleotide Position).
Creates a plot where the number of observed SNPs (Number of SNPs) at each passage will be plotted against passage number(Passage Number).
Funtion requires a data frame where the first column contains the frequency of a SNP (frequency) corresponding to second column containing the position of the SNP on the genome (position).
|position|frequency| |--------|---------| |x|y|
Function requires a data frame where first column contains the Number of SNPs (snps) corresponding to the 2nd column containing the segment (segment) corresponding to the 3rd column containg the passage number (passage).
|passage|snps|segments| |-------|----|--------| |x|y|z|
It is highly recommended that the data originates from viruses which exhibit genomes that consist out of more that 1 segment.
To run the function you may use the example code below:
The user need to specify the length of the genome, the default is 4000 bp.
library(tidyverse) library(SNP.mapper) frpo_plot_plot(example.data, 3500)
To run the function you may use the example code below:
library(tidyverse) library(SNP.mapper) map_SNP(example.data2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.