View source: R/create_snp_table.R
create_snp_table | R Documentation |
This function assembles a data frame of all SNPs involved in the DAEQTL
mapping. Besides the genomic position for each SNP, it annotates each SNP as
a DAE SNP or a DAEQTL candidate SNP: columns is_dae_snp
and
is_candidate_snp
.
The returned data frame is useful as an intermediate data structure of the
workflow, namely when looking for candidate neighbouring SNPs. Check the
vignette('snp-pairs')
to understand when to use this function.
create_snp_table(snp_gen_pos, dae_snps, candidate_snps)
snp_gen_pos |
A data frame of three columns: |
dae_snps |
A data frame of one column containing the DAE SNPs. |
candidate_snps |
A data frame of one column containing the DAEQTL candidate SNPs. |
This function adds two columns to snp_gen_pos
in-place, so the
object passed in snp_gen_pos
will be modified after the call to this
function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.