haplotypeCallerOverlap <- function() {
table <- NULL
haplotypecaller_ids <- getEnvVariable('haplotypecaller_ids')
if ( !is.null(haplotypecaller_ids) ) {
names = names(haplotypecaller_ids)
nsamples = length(names)
table = matrix(
'',
ncol = nsamples,
nrow = nsamples,
dimnames = list(`Variants in` = names,
`Also in` = names)
)
for (i in 1:nsamples)
for (j in 1:nsamples) {
s = sum(haplotypecaller_ids[[names[i]]] %in% haplotypecaller_ids[[names[j]]])
table[i, j] = paste(round(s / 1e6, 2), 'M')
}
}
table
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.