This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Is there a way to easily export a .mtx file from a seurat object and use it in the scNetViz app for Cytoscape?

Hello everyone,

I have a question. I want to use the scNetViz app that can be used in Cytoscape. It's an app that allows the user to generate networks from single-cell data which is quite interesting. The problem is that it uses the raw matrix.mtx data so the clusters that will be analysed are the clusters generated automatically with Cellranger. So I was wondering if there's a way to convert the data from Seurat, so the new clusters associated with the gene ids, into an .mtx file which is compatible with scNetViz?

conversion cytoscape singlecell format seurat

I cannot comment on Seurat but in general any numeric matrix can be saved as mtx via Matrix::writeMM().

1 answer

scNetViz uses .mtx files by default. You should be able to do an Apps->scNetViz->Load Experiment->From file and point it to a directory containing the .mtx file and the two header files. Then it should just import. Make sure to set the species -- you'll need to have the correct species to generate your networks. Let me know if you have problems!

-- scooter

Log in to answer this question.