Afgencomp
: An R-Package for Alignment-Free Genetic Comparison (Previously YinGenomicDFTDistances
).This repository contains a software distribution of an R-Package, Afgencomp, which contains utility functions for comparing string representations of genomic sequences, without having to perform multiple sequence alignment (MSA, an often timely and expensive step).
The package contains documented functions which allow the user to:
getOptimal2DStrategy()
).encodeGenome()
, encodeGenomes()
).getPowerSpectraSingle()
,getPowerSpectraEnsemble()
). getPhaseSpectraSingle()
,getPhaseSpectraEnsemble()
). evenlyScaleSingle()
,evenlyScaleEnsemble()
). getPowerSpectraDistances()
).countKmersCertain()
).countMersCertainFirstFive()
, countFFMersEnsemble()
).getMinimalVarianceFilter()
).tstForMultiGenomes()
). If you are looking to install
the afgencomp
R-package you may do so via one of several routes:
install.packages()
devtools::install_github()
install.packages()
The source distribution of the software is written in R, and hosted on Github.
The source code can be downloaded using the git software to clone the afgencomp
repository. This can be accomplished by simply typing the following git
command in a terminal window where you would like to keep the package files
or by downloading the package manually using a web-browser and navigating to the
github page.
git clone https://github.com/mathornton01/afgencomp.git
Once the package has been downloaded it can be installed for R by navigating to
the afgencomp
directory from within R and using the install.packages()
function.
afgencomp.pkg.dir <- "full/path/to/directory/goes/here";
install.packages(afgencomp.pkg.dir, repos=NULL, type="source");
````
Or if you would instead like to choose the file using the file-manager, you
can do so by running:
```R
install.packages(file.choose(), repos=NULL)
then selecting the top-level directory for the package source. That is the
directory which contains the R/
, data/
, man/
, and vignettes/
folders.
The devtools
library in R allows for developers to quickly and easily share
there packages with R-users via Github. the install_github
function of the
devtools
package. Be sure to specify that you would like for the package
vignette (this document) to be constructed when you run this, so that the
vignette is available via the browseVignettes()
or ??
functions.
library(devtools);
devtools::install_github("https://github.com/mathornton01/afgencomp.git",build_vignettes = TRUE);
Much of this package was intended to implement the genomic comparison strategy implemented and used by Yin and Yau since they published it in 2014. A selection of the papers describing the techniques for power spectral distance calculation and scaling that are included in the package are provided:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.