filter a discretized SCE using getTopHVGs from scran, the produce triples (edges) (cell - weight - gene)

sce_to_triples(sce, outtsv, ngenes = 5000)

Arguments

sce

instance of SingleCellExperiment with assays logcounts and disc

outtsv

character(1) file to hold triples in tsv format

ngenes

numeric(1) number of genes to retain from getTopHVGs after scran::modelGeneVar on logcounts