Description
Set of R functions for the development of R functions, written according to the safer project specifications.
Content
Function | Description |
---|---|
codon2aa() | Convert codon to amino acid using standard genetic code indicated in the DNA and RNA codon tables. |
codon_finder() | Gives the codon number and position in the codon of nucleotid positions. |
permut() | Reorder the elements of the data1 vector by flipping 2 randomly selected consecutive positions either: times (when n is precised) or: until the correlation between data1 and data2 decreases down to the cor.limit (0.2 by default). Example of consecutive position flipping: ABCD -> BACD -> BADC, etc. Designed for discrete values, but works also for continuous values. |
slide() | Return a computation made on a vector using a sliding window. |
trim() | Trim and display values from a numeric vector or matrix. Plot 4 graphs: stripchart of values, stripchart of rank of values, histogram and normal QQPlot. Different kinds of intervals are displayed on the top of graphes to facilitate the analysis of the variable and a trimming setting. The trimming interval chosen is displayed on top of graphs.Both trimmed and not trimmed values are returned in a list. |
Read vignette("saferTool2")
for more details.
Installation
saferTool2 can be currently be installed from GitHub:
install.packages("remotes")
remotes::install_github("https://github.com/safer-r/saferTool2") # or open R as admin and remotes::install_github("https://github.com/safer-r/saferTool2", lib = "C:/Program Files/R/R-4.3.1/library")
Older versions can be installed like this:
v <- "v1.0" # desired tag version
remotes::install_github(paste0("https://github.com/safer-r/saferTool2/tree/", v))
Licence
This package can be redistributed and/or modified under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchandability or fitness for a particular purpose. See the GNU General Public License for more details at https://www.gnu.org/licenses or in the Licence.txt attached file.
Citation
If you are using functions of saferTool2, please cite:
Wang H, Han Y, Serizay J, Millot GA (2023). The R saferTool2 package. https://github.com/safer-r/saferTool2/.
Credits
Haiding Wang, Bioinformatics and Biostatistics Hub, Institut Pasteur, Paris, France
Yushi Han, Bioinformatics and Biostatistics Hub, Institut Pasteur, Paris, France
Jacques Serizai, Spatial Regulation of Genomes team, Institut Pasteur, Paris, France
Gael A. Millot, Bioinformatics and Biostatistics Hub, Institut Pasteur, Paris, France