Description Usage Arguments Details Value See Also Examples
This function bins genes based on their size (number of SNPs assigned to the gene), and then combines bins to create final bins containing (approximately) a minimum number of genes as specified by the user.
1 | makeGeneBins(geneSnpCounts, minBinSize = 25)
|
geneSnpCounts |
A list specifying the number of SNPs assigned to each gene, as created with the function |
minBinSize |
The minimum number of genes to be placed in each bin. The default is 25 genes per bin. |
It is guaranteed that each bin will contain at least 0.75*minBinSize
genes. If 0.75*minBinSize
is greater than the number of genes in geneSnpCounts
an error will be returned.
Returns a list with two components: simpleBins and binBounds.
simpleBins |
A list containing vectors of geneIDs for each gene size (number of SNPs). |
binBounds |
A matrix with two columns specifying the final bin boundaries. Each row of the matrix specifies the gene size limits for each final bin. For instance if the values of a row are 50 and 55, there should be at least |
1 2 3 | data(sampleGSA)
snpCounts = getGeneSizes(snpMap)
geneBins = makeGeneBins(snpCounts, 25)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.