LoomToSeurat = function(infile,outfile) {
if(missing(outfile)) {
LoomToSeuratStop(infile)
} else {
LoomToSeuratRds(infile,outfile)
}
}
LoomToSeuratStop = function(infile){
LoadLoom = loomR::connect(filename = infile)
methods(class = "loom")
Seurat::as.Seurat(LoadLoom)
}
LoomToSeuratRds = function(infile,outfile){
LoadLoom = loomR::connect(filename = infile)
methods(class = "loom")
newObject = Seurat::as.Seurat(LoadLoom)
saveRDS(newObject,file = outfile)
newObject
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.