This function was designed to help users to transform their data in letter format to numeric format. Details in the format are not complex, just a dataframe with markers in columns and individuals in rows. Only markers, NO extra columns of plant names etc (names of plant can be stored as rownames).
Usage
atcg1234(data, ploidy=2, format="ATCG", maf=0)
Arguments
data
a dataframe with markers in columns and individuals in rows. Preferable the rownames are the ID of the plants so you don't lose track of what is what.
ploidy
a numeric value indicating the ploidy level of the specie. The default is 2 which means diploid.
format
one of the two possible values allowed by the program "ATCG", which means your calls are in base-pair-letter code, i.e. "AT" in a diploid call, "AATT" tetraploid etc (just example). Alternatively "AB" format can be used as well. Commonly this depends from
maf
minor allele frequency used to filter the SNP markers, the default is zero which means all markers are returned in numeric format.