View source: R/record_ref_alt.R
record_ref_alt | R Documentation |
This function can be called if the input data was originally nucleotide encoded, providing ref and alt alleles Then this function will append a0 and a1 columns to 0/1 encoded outputs such that the nucleotide(s) associated with genotype 0 are recorded in a0 and the nucleotide(s) associated with genotype 1 are recorded in a1 returning the original dataframes just with two new columns
record_ref_alt(to_output_df, ref, alt)
to_output_df |
whatever dataframe you want to append the columns to |
ref |
a vector of the reference nucleotides (those associated with the 0 genotypes) |
alt |
a vector of the alternate nucleotides (those associated with the 1 genotypes) |
to_return a dataframe with index, pos, ref, & alt columns before the remaining 0/1 encoded genotype columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.