Description Usage Arguments Value Author(s) See Also Examples
convert_GC
helps files conversion into RClone
format.
RClone
functions work on tables with one allele per column.
convert_GC
converts tables with one locus per column into tables with
one allele per column, handling separation elements.
convert_GC
also sorts alleles at a locus per increasing order.
1 | convert_GC(data1, num, ele)
|
data1 |
a table, with units in row and one locus per column. |
num |
numeric, the length of each allele. |
ele |
option, the alleles separator in the original table. |
a table with one allele per column, alleles sorted by increasing order.
Creator/Author: Diane Bailleul <diane.bailleul.pro@gmail.com>
Author: Sophie Arnaud-Haond <sophie.arnaud@ifremer.fr>
Contributor: Solenn Stoeckel
The R implementation of RClone
was written by Diane Bailleul.
The design was inspired by GenClone program described in Arnaud-Haond & Belkhir (2007).
sort_all
for tables with one allele per column.
transcript_GC
uses convert_GC
as internal function.
1 2 3 4 5 6 7 8 9 10 11 | test <- matrix("232/231", ncol = 2, nrow = 2)
convert_GC(test, 3, "/")
#"232" is a allele of length 3 and "/" is the separator.
test2 <- matrix("192235", ncol = 2, nrow = 2)
convert_GC(test2, 3)
#no separator
#with data1, a genind object from adegenet:
#test <- genind2df(data1)
#convert_GC(test, 3, "/")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.