knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
nsSNPfinder
is an R package for integrating and analyzing human genome SNP data from the genomic level to the protein level, finding potential nsSNP-associated gene location and visualize it in protein structure.
To download nsSNPfinder:
require("devtools") devtools::install_github("Yuewei-Wang/nsSNPfinder",build_vignettes = TRUE) library(nsSNPfinder)
To list all functions available in this package:
ls("package:nsSNPfinder")
There are 4 functions in the package:
The nsSNPCalculatebyRange allows users to input the chromosome name and gene range as arguments, then returns the summary for all transcripts within the input range, with information of gene name, transcript length, number of nsSNPs and the percentage of nsSNPs over the transcript. More information could be viewed in ?nsSNPCalculatebyRange
.
> nsSNPCalculatebyRange(chrName = 1, startPosition = 2321253, endPosition = 2391707) geneName lengths nsSNPs percent 1 MORN1 70302 3072 0.0437 2 MORN1 36533 1521 0.0416 3 MORN1 13485 686 0.0509 4 MORN1 1993 119 0.0597 > nsSNPCalculatebyRange(chrName = 2,startPosition = 85394753, endPosition = 85418432) geneName lengths nsSNPs percent 1 CAPG 15614 621 0.0398 2 CAPG 3982 178 0.0447 3 CAPG 15604 636 0.0408 4 CAPG 19215 746 0.0388 5 CAPG 19182 743 0.0387 6 CAPG 10126 431 0.0426 7 CAPG 11143 467 0.0419 8 CAPG 15350 578 0.0377 9 CAPG 19287 670 0.0347
The SNPFreqPlot allows users to input the chromosome name and gene range as arguments, then returns a plot to visualize the SNP locations versus the number of different nucleotide variants within input range. Each location is labeled with coordinate, more information could be viewed in ?SNPFreqPlot
.
> SNPFreqPlot(chrName = 3, startPosition = 49395430, endPosition = 49395600)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.