{"library":"loompy","title":"loompy","description":"A Python library for working with Loom file format (version 3.0.8), which is used for storing single-cell RNA-seq data. It supports reading, writing, and creating Loom files with sparse matrices, variable-length string attributes, and provides a command-line tool for creating Loom files from FASTQ. Release cadence is irregular.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install loompy"],"cli":{"name":"loom","version":"sh: 1: loom: not found"}},"imports":["import loompy","import loompy; ds = loompy.connect('file.loom')"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import loompy\nimport numpy as np\n# Create a minimal loom file\nrow_attrs = {'Gene': ['A', 'B']}\ncol_attrs = {'CellID': ['cell1', 'cell2']}\nmatrix = np.array([[1, 2], [3, 4]], dtype='float32')\nloompy.create('test.loom', matrix, row_attrs, col_attrs)\n# Read it back\fts = loompy.connect('test.loom')\nprint(fts.shape)\nfts.close()","lang":"python","description":"Create a Loom file with a small matrix and read it back.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}