View source: R/htrx_nfeatures.R
htrx_nfeatures | R Documentation |
The total number of features in principle from haplotypes (i.e. interactions between SNPs) generated by Haplotype Trend Regression with eXtra flexibility (HTRX) .
htrx_nfeatures(nsnp, max_int = NULL, htr = FALSE)
nsnp |
a positive integer giving the number of single nucleotide polymorphisms (SNPs) included in the haplotypes. |
max_int |
a positive integer which specifies the maximum number of SNPs that can interact. If no value is given (by default), interactions between all the SNPs will be considered. |
htr |
logical. If |
The total number of features in principle is 3nsnp-1
for haplotypes containing interactions between all different numbers of SNPs.
However, if max_int < nsnp
, i.e. only the interactions between at most max_int
SNPs are investigated,
there will be fewer total number of features.
htrx_nfeatures
returns a positive integer giving the total number
of features that each analysis includes.
## the total number of haplotypes consisted of 6 SNPs
## for at most 3-SNP interactions
htrx_nfeatures(nsnp=6,max_int=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.