SingleCellExperiment 0.4.6__tar.gz → 0.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. singlecellexperiment-0.5.0/.github/workflows/pypi-publish.yml +52 -0
  2. singlecellexperiment-0.5.0/.github/workflows/pypi-test.yml +33 -0
  3. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/.pre-commit-config.yaml +14 -13
  4. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/CHANGELOG.md +16 -0
  5. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/PKG-INFO +27 -12
  6. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/README.md +12 -5
  7. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/docs/changelog.md +16 -0
  8. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/docs/conf.py +10 -5
  9. singlecellexperiment-0.5.0/docs/index.md +37 -0
  10. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/docs/readme.md +12 -5
  11. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/docs/requirements.txt +2 -0
  12. singlecellexperiment-0.5.0/docs/tutorial.md +331 -0
  13. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/pyproject.toml +4 -0
  14. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/setup.cfg +14 -6
  15. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/SingleCellExperiment.egg-info/PKG-INFO +27 -12
  16. singlecellexperiment-0.5.0/src/SingleCellExperiment.egg-info/requires.txt +37 -0
  17. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/singlecellexperiment/SingleCellExperiment.py +33 -83
  18. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/singlecellexperiment/io/tenx.py +2 -6
  19. singlecellexperiment-0.4.6/.github/workflows/pypi-publish.yml +0 -51
  20. singlecellexperiment-0.4.6/.github/workflows/pypi-test.yml +0 -40
  21. singlecellexperiment-0.4.6/docs/index.md +0 -37
  22. singlecellexperiment-0.4.6/docs/tutorial.md +0 -116
  23. singlecellexperiment-0.4.6/src/SingleCellExperiment.egg-info/requires.txt +0 -21
  24. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/.coveragerc +0 -0
  25. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/.gitignore +0 -0
  26. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/.readthedocs.yml +0 -0
  27. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/AUTHORS.md +0 -0
  28. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/CONTRIBUTING.md +0 -0
  29. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/LICENSE.txt +0 -0
  30. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/docs/Makefile +0 -0
  31. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/docs/_static/.gitignore +0 -0
  32. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/docs/authors.md +0 -0
  33. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/docs/contributing.md +0 -0
  34. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/docs/license.md +0 -0
  35. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/setup.py +0 -0
  36. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/SingleCellExperiment.egg-info/SOURCES.txt +0 -0
  37. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/SingleCellExperiment.egg-info/dependency_links.txt +0 -0
  38. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/SingleCellExperiment.egg-info/not-zip-safe +0 -0
  39. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/SingleCellExperiment.egg-info/top_level.txt +0 -0
  40. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/singlecellexperiment/__init__.py +0 -0
  41. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/singlecellexperiment/_combineutils.py +0 -0
  42. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/singlecellexperiment/_ioutils.py +0 -0
  43. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/singlecellexperiment/io/__init__.py +0 -0
  44. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/src/singlecellexperiment/io/h5ad.py +0 -0
  45. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/conftest.py +0 -0
  46. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/data/adata.h5ad +0 -0
  47. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/data/mocks.py +0 -0
  48. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/data/tenx.sub.h5 +0 -0
  49. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/test_sce.py +0 -0
  50. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/test_sce_combine_cols.py +0 -0
  51. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/test_sce_combine_rows.py +0 -0
  52. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/test_sce_io.py +0 -0
  53. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/test_sce_methods.py +0 -0
  54. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tests/test_sce_slice.py +0 -0
  55. {singlecellexperiment-0.4.6 → singlecellexperiment-0.5.0}/tox.ini +0 -0
@@ -0,0 +1,52 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name: Publish to PyPI
5
+
6
+ on:
7
+ push:
8
+ tags: "*"
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Set up Python 3.11
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: 3.11
21
+
22
+ - name: Install dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install tox
26
+
27
+ - name: Test with tox
28
+ run: |
29
+ tox
30
+
31
+ - name: Build docs
32
+ run: |
33
+ tox -e docs
34
+
35
+ - run: touch ./docs/_build/html/.nojekyll
36
+
37
+ - name: GH Pages Deployment
38
+ uses: JamesIves/github-pages-deploy-action@v4
39
+ with:
40
+ branch: gh-pages # The branch the action should deploy to.
41
+ folder: ./docs/_build/html
42
+ clean: true # Automatically remove deleted files from the deploy branch
43
+
44
+ - name: Build Project and Publish
45
+ run: |
46
+ python -m tox -e clean,build
47
+
48
+ - name: Publish package
49
+ uses: pypa/gh-action-pypi-publish@v1.12.2
50
+ with:
51
+ user: __token__
52
+ password: ${{ secrets.PYPI_PASSWORD }}
@@ -0,0 +1,33 @@
1
+ name: Run tests
2
+
3
+ on:
4
+ push:
5
+ branches: [master]
6
+ pull_request:
7
+ branches: [master]
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
15
+
16
+ name: Python ${{ matrix.python-version }}
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+
20
+ - name: Setup Python
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: ${{ matrix.python-version }}
24
+ cache: "pip"
25
+
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install tox
30
+
31
+ - name: Test with tox
32
+ run: |
33
+ tox
@@ -17,26 +17,27 @@ repos:
17
17
  - id: mixed-line-ending
18
18
  args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows
19
19
 
20
- - repo: https://github.com/PyCQA/docformatter
21
- rev: v1.7.5
22
- hooks:
23
- - id: docformatter
24
- additional_dependencies: [tomli]
25
- args: [--in-place, --wrap-descriptions=120, --wrap-summaries=120]
26
- # --config, ./pyproject.toml
20
+ # - repo: https://github.com/PyCQA/docformatter
21
+ # rev: master
22
+ # hooks:
23
+ # - id: docformatter
24
+ # additional_dependencies: [tomli]
25
+ # args: [--in-place, --wrap-descriptions=120, --wrap-summaries=120]
26
+ # # --config, ./pyproject.toml
27
27
 
28
- - repo: https://github.com/psf/black
29
- rev: 24.4.0
30
- hooks:
31
- - id: black
32
- language_version: python3
28
+ # - repo: https://github.com/psf/black
29
+ # rev: 24.8.0
30
+ # hooks:
31
+ # - id: black
32
+ # language_version: python3
33
33
 
34
34
  - repo: https://github.com/astral-sh/ruff-pre-commit
35
35
  # Ruff version.
36
- rev: v0.3.7
36
+ rev: v0.6.8
37
37
  hooks:
38
38
  - id: ruff
39
39
  args: [--fix, --exit-non-zero-on-fix]
40
+ - id: ruff-format
40
41
 
41
42
  ## If like to embrace black styles even in the docs:
42
43
  # - repo: https://github.com/asottile/blacken-docs
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.5.0
4
+
5
+ - chore: Remove Python 3.8 (EOL)
6
+ - precommit: Replace docformatter with ruff's formatter
7
+
8
+ ## Version 0.4.7
9
+
10
+ - Fix package version issues to support Python<=3.9. Mostly related to how anndata dependencies are versioned in the MuData package discussed [here](https://github.com/scverse/mudata/issues/82).
11
+ - The package now enforces the versions of mudata, anndata and numpy that are compatible with each other.
12
+
13
+ ## Version 0.4.2 - 0.4.6
14
+
15
+ - Fix issue coercing `SummarizedExperiments` to `AnnData` objects and vice-versa.
16
+ - Handling coercions when matrices are delayed arrays or backed (for `AnnData`).
17
+ - Update sphinx configuration to run snippets in the documentation.
18
+
3
19
  ## Version 0.4.0 to 0.4.1
4
20
 
5
21
  This is a complete rewrite of the package, following the functional paradigm from our [developer notes](https://github.com/BiocPy/developer_guide#use-functional-discipline).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: SingleCellExperiment
3
- Version: 0.4.6
3
+ Version: 0.5.0
4
4
  Summary: Container class for single-cell experiments
5
5
  Home-page: https://github.com/BiocPy/SingleCellExperiment
6
6
  Author: jkanche
@@ -10,26 +10,34 @@ Project-URL: Documentation, https://github.com/BiocPy/SingleCellExperiment
10
10
  Platform: any
11
11
  Classifier: Development Status :: 4 - Beta
12
12
  Classifier: Programming Language :: Python
13
- Requires-Python: >=3.8
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
15
15
  License-File: LICENSE.txt
16
16
  Requires-Dist: importlib-metadata; python_version < "3.8"
17
- Requires-Dist: summarizedexperiment<0.5.0,>=0.4.0
17
+ Requires-Dist: summarizedexperiment>=0.4.5
18
18
  Provides-Extra: optional
19
- Requires-Dist: anndata; extra == "optional"
19
+ Requires-Dist: anndata==0.9.2; python_version <= "3.9" and extra == "optional"
20
+ Requires-Dist: anndata>0.9.2; python_version > "3.9" and extra == "optional"
20
21
  Requires-Dist: h5py; extra == "optional"
21
- Requires-Dist: mudata; extra == "optional"
22
+ Requires-Dist: mudata==0.2.3; python_version <= "3.9" and extra == "optional"
23
+ Requires-Dist: mudata>0.2.3; python_version > "3.9" and extra == "optional"
22
24
  Requires-Dist: delayedarray; extra == "optional"
23
25
  Requires-Dist: hdf5array; extra == "optional"
26
+ Requires-Dist: numpy==1.24.4; python_version <= "3.9" and extra == "optional"
27
+ Requires-Dist: numpy>1.24.4; python_version > "3.9" and extra == "optional"
24
28
  Provides-Extra: testing
25
29
  Requires-Dist: setuptools; extra == "testing"
26
30
  Requires-Dist: pytest; extra == "testing"
27
31
  Requires-Dist: pytest-cov; extra == "testing"
28
- Requires-Dist: anndata; extra == "testing"
32
+ Requires-Dist: anndata==0.9.2; python_version <= "3.9" and extra == "testing"
33
+ Requires-Dist: anndata>0.9.2; python_version > "3.9" and extra == "testing"
29
34
  Requires-Dist: h5py; extra == "testing"
30
- Requires-Dist: mudata; extra == "testing"
35
+ Requires-Dist: mudata==0.2.3; python_version <= "3.9" and extra == "testing"
36
+ Requires-Dist: mudata>0.2.3; python_version > "3.9" and extra == "testing"
31
37
  Requires-Dist: delayedarray; extra == "testing"
32
38
  Requires-Dist: hdf5array; extra == "testing"
39
+ Requires-Dist: numpy==1.24.4; python_version <= "3.9" and extra == "testing"
40
+ Requires-Dist: numpy>1.24.4; python_version > "3.9" and extra == "testing"
33
41
 
34
42
  [![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)
35
43
  [![PyPI-Server](https://img.shields.io/pypi/v/SingleCellExperiment.svg)](https://pypi.org/project/SingleCellExperiment/)
@@ -37,20 +45,26 @@ Requires-Dist: hdf5array; extra == "testing"
37
45
 
38
46
  # SingleCellExperiment
39
47
 
40
- Container class to represent single-cell experiments; follows Bioconductor's [SingleCellExperiment](https://bioconductor.org/packages/release/bioc/html/SingleCellExperiment.html).
48
+ This package provides container class to represent single-cell experimental data as 2-dimensional matrices. In these matrices, the rows typically denote features or genomic regions of interest, while columns represent cells. In addition, a `SingleCellExperiment` (SCE) object may contain low-dimensionality embeddings, alternative experiments performed on same sample or set of cells. Follows Bioconductor's [SingleCellExperiment](https://bioconductor.org/packages/release/bioc/html/SingleCellExperiment.html).
41
49
 
42
50
 
43
51
  ## Install
44
52
 
45
- Package is published to [PyPI](https://pypi.org/project/singlecellexperiment/)
53
+ To get started, install the package from [PyPI](https://pypi.org/project/singlecellexperiment/)
46
54
 
47
- ```shell
55
+ ```bash
48
56
  pip install singlecellexperiment
49
57
  ```
50
58
 
51
59
  ## Usage
52
60
 
53
- Readers are available to read AnnData, H5AD or 10x (MTX, H5) V3 formats as `SingleCellExperiment` objects.
61
+ The `SingleCellExperiment` extends [RangeSummarizedExperiment](https://github.com/BiocPy/SummarizedExperiment) and contains additional attributes:
62
+
63
+ - `reduced_dims`: Slot for low-dimensionality embeddings for each cell.
64
+ - `alternative_experiments`: Manages multi-modal experiments performed on the same sample or set of cells.
65
+ - `row_pairs` or `column_pairs`: Stores relationships between features or cells.
66
+
67
+ Readers are available to parse h5ad or `AnnData` objects to SCE:
54
68
 
55
69
  ```python
56
70
  import singlecellexperiment
@@ -84,7 +98,8 @@ tse = SingleCellExperiment(
84
98
  )
85
99
  ```
86
100
 
87
- Since `SingleCellExperiment` extends `SummarizedExperiment`, most methods especially slicing and accessors are applicable here. Checkout the [documentation](https://biocpy.github.io/SingleCellExperiment/) for more info.
101
+ Since `SingleCellExperiment` extends `RangeSummarizedExperiment`, most methods especially slicing and accessors are applicable here.
102
+ Checkout the [documentation](https://biocpy.github.io/SingleCellExperiment/) for more info.
88
103
 
89
104
  <!-- pyscaffold-notes -->
90
105
 
@@ -4,20 +4,26 @@
4
4
 
5
5
  # SingleCellExperiment
6
6
 
7
- Container class to represent single-cell experiments; follows Bioconductor's [SingleCellExperiment](https://bioconductor.org/packages/release/bioc/html/SingleCellExperiment.html).
7
+ This package provides container class to represent single-cell experimental data as 2-dimensional matrices. In these matrices, the rows typically denote features or genomic regions of interest, while columns represent cells. In addition, a `SingleCellExperiment` (SCE) object may contain low-dimensionality embeddings, alternative experiments performed on same sample or set of cells. Follows Bioconductor's [SingleCellExperiment](https://bioconductor.org/packages/release/bioc/html/SingleCellExperiment.html).
8
8
 
9
9
 
10
10
  ## Install
11
11
 
12
- Package is published to [PyPI](https://pypi.org/project/singlecellexperiment/)
12
+ To get started, install the package from [PyPI](https://pypi.org/project/singlecellexperiment/)
13
13
 
14
- ```shell
14
+ ```bash
15
15
  pip install singlecellexperiment
16
16
  ```
17
17
 
18
18
  ## Usage
19
19
 
20
- Readers are available to read AnnData, H5AD or 10x (MTX, H5) V3 formats as `SingleCellExperiment` objects.
20
+ The `SingleCellExperiment` extends [RangeSummarizedExperiment](https://github.com/BiocPy/SummarizedExperiment) and contains additional attributes:
21
+
22
+ - `reduced_dims`: Slot for low-dimensionality embeddings for each cell.
23
+ - `alternative_experiments`: Manages multi-modal experiments performed on the same sample or set of cells.
24
+ - `row_pairs` or `column_pairs`: Stores relationships between features or cells.
25
+
26
+ Readers are available to parse h5ad or `AnnData` objects to SCE:
21
27
 
22
28
  ```python
23
29
  import singlecellexperiment
@@ -51,7 +57,8 @@ tse = SingleCellExperiment(
51
57
  )
52
58
  ```
53
59
 
54
- Since `SingleCellExperiment` extends `SummarizedExperiment`, most methods especially slicing and accessors are applicable here. Checkout the [documentation](https://biocpy.github.io/SingleCellExperiment/) for more info.
60
+ Since `SingleCellExperiment` extends `RangeSummarizedExperiment`, most methods especially slicing and accessors are applicable here.
61
+ Checkout the [documentation](https://biocpy.github.io/SingleCellExperiment/) for more info.
55
62
 
56
63
  <!-- pyscaffold-notes -->
57
64
 
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.5.0
4
+
5
+ - chore: Remove Python 3.8 (EOL)
6
+ - precommit: Replace docformatter with ruff's formatter
7
+
8
+ ## Version 0.4.7
9
+
10
+ - Fix package version issues to support Python<=3.9. Mostly related to how anndata dependencies are versioned in the MuData package discussed [here](https://github.com/scverse/mudata/issues/82).
11
+ - The package now enforces the versions of mudata, anndata and numpy that are compatible with each other.
12
+
13
+ ## Version 0.4.2 - 0.4.6
14
+
15
+ - Fix issue coercing `SummarizedExperiments` to `AnnData` objects and vice-versa.
16
+ - Handling coercions when matrices are delayed arrays or backed (for `AnnData`).
17
+ - Update sphinx configuration to run snippets in the documentation.
18
+
3
19
  ## Version 0.4.0 to 0.4.1
4
20
 
5
21
  This is a complete rewrite of the package, following the functional paradigm from our [developer notes](https://github.com/BiocPy/developer_guide#use-functional-discipline).
@@ -72,6 +72,7 @@ extensions = [
72
72
  "sphinx.ext.ifconfig",
73
73
  "sphinx.ext.mathjax",
74
74
  "sphinx.ext.napoleon",
75
+ "sphinx_autodoc_typehints",
75
76
  ]
76
77
 
77
78
  # Add any paths that contain templates here, relative to this directory.
@@ -79,7 +80,8 @@ templates_path = ["_templates"]
79
80
 
80
81
 
81
82
  # Enable markdown
82
- extensions.append("myst_parser")
83
+ # extensions.append("myst_parser")
84
+ extensions.append("myst_nb")
83
85
 
84
86
  # Configure MyST-Parser
85
87
  myst_enable_extensions = [
@@ -167,9 +169,11 @@ pygments_style = "sphinx"
167
169
  todo_emit_warnings = True
168
170
 
169
171
  autodoc_default_options = {
170
- 'special-members': True,
171
- 'undoc-members': False,
172
- 'exclude-members': '__weakref__, __dict__, __str__, __module__, __init__'
172
+ # 'members': 'var1, var2',
173
+ # 'member-order': 'bysource',
174
+ "special-members": True,
175
+ "undoc-members": True,
176
+ "exclude-members": "__weakref__, __dict__, __str__, __module__",
173
177
  }
174
178
 
175
179
  autosummary_generate = True
@@ -309,7 +313,8 @@ intersphinx_mapping = {
309
313
  "pyscaffold": ("https://pyscaffold.org/en/stable", None),
310
314
  "biocframe": ("https://biocpy.github.io/BiocFrame", None),
311
315
  "genomicranges": ("https://biocpy.github.io/GenomicRanges", None),
312
- "singlecellexperiment": ("https://biocpy.github.io/SingleCellExperiment", None),
316
+ "summarizedexperiment": ("https://biocpy.github.io/SummarizedExperiment", None),
317
+ "biocutils": ("https://biocpy.github.io/BiocUtils", None),
313
318
  }
314
319
 
315
320
  print(f"loading configurations for {project} {version} ...", file=sys.stderr)
@@ -0,0 +1,37 @@
1
+ # SingleCellExperiment
2
+
3
+ This package provides container class to represent single-cell experimental data as 2-dimensional matrices. In these matrices, the rows typically denote features or genomic regions of interest, while columns represent cells. In addition, a `SingleCellExperiment` (SCE) object may contain low-dimensionality embeddings, alternative experiments performed on same sample or set of cells. Follows Bioconductor's [SingleCellExperiment](https://bioconductor.org/packages/release/bioc/html/SingleCellExperiment.html).
4
+
5
+
6
+ ## Install
7
+
8
+ To get started, install the package from [PyPI](https://pypi.org/project/singlecellexperiment/)
9
+
10
+ ```bash
11
+ pip install singlecellexperiment
12
+ ```
13
+
14
+ ## Contents
15
+
16
+ ```{toctree}
17
+ :maxdepth: 2
18
+
19
+ Overview <tutorial>
20
+ Module Reference <api/modules>
21
+ Contributions & Help <contributing>
22
+ License <license>
23
+ Authors <authors>
24
+ Changelog <changelog>
25
+ ```
26
+
27
+
28
+ ## Indices and tables
29
+
30
+ - {ref}`genindex`
31
+ - {ref}`modindex`
32
+ - {ref}`search`
33
+
34
+ [Sphinx]: http://www.sphinx-doc.org/
35
+ [Markdown]: https://daringfireball.net/projects/markdown/
36
+ [reStructuredText]: http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
37
+ [MyST]: https://myst-parser.readthedocs.io/en/latest/
@@ -4,20 +4,26 @@
4
4
 
5
5
  # SingleCellExperiment
6
6
 
7
- Container class to represent single-cell experiments; follows Bioconductor's [SingleCellExperiment](https://bioconductor.org/packages/release/bioc/html/SingleCellExperiment.html).
7
+ This package provides container class to represent single-cell experimental data as 2-dimensional matrices. In these matrices, the rows typically denote features or genomic regions of interest, while columns represent cells. In addition, a `SingleCellExperiment` (SCE) object may contain low-dimensionality embeddings, alternative experiments performed on same sample or set of cells. Follows Bioconductor's [SingleCellExperiment](https://bioconductor.org/packages/release/bioc/html/SingleCellExperiment.html).
8
8
 
9
9
 
10
10
  ## Install
11
11
 
12
- Package is published to [PyPI](https://pypi.org/project/singlecellexperiment/)
12
+ To get started, install the package from [PyPI](https://pypi.org/project/singlecellexperiment/)
13
13
 
14
- ```shell
14
+ ```bash
15
15
  pip install singlecellexperiment
16
16
  ```
17
17
 
18
18
  ## Usage
19
19
 
20
- Readers are available to read AnnData, H5AD or 10x (MTX, H5) V3 formats as `SingleCellExperiment` objects.
20
+ The `SingleCellExperiment` extends [RangeSummarizedExperiment](https://github.com/BiocPy/SummarizedExperiment) and contains additional attributes:
21
+
22
+ - `reduced_dims`: Slot for low-dimensionality embeddings for each cell.
23
+ - `alternative_experiments`: Manages multi-modal experiments performed on the same sample or set of cells.
24
+ - `row_pairs` or `column_pairs`: Stores relationships between features or cells.
25
+
26
+ Readers are available to parse h5ad or `AnnData` objects to SCE:
21
27
 
22
28
  ```python
23
29
  import singlecellexperiment
@@ -51,7 +57,8 @@ tse = SingleCellExperiment(
51
57
  )
52
58
  ```
53
59
 
54
- Since `SingleCellExperiment` extends `SummarizedExperiment`, most methods especially slicing and accessors are applicable here. Checkout the [documentation](https://biocpy.github.io/SingleCellExperiment/) for more info.
60
+ Since `SingleCellExperiment` extends `RangeSummarizedExperiment`, most methods especially slicing and accessors are applicable here.
61
+ Checkout the [documentation](https://biocpy.github.io/SingleCellExperiment/) for more info.
55
62
 
56
63
  <!-- pyscaffold-notes -->
57
64
 
@@ -1,7 +1,9 @@
1
1
  furo
2
+ myst-nb
2
3
  # Requirements file for ReadTheDocs, check .readthedocs.yml.
3
4
  # To build the module reference correctly, make sure every external package
4
5
  # under `install_requires` in `setup.cfg` is also listed here!
5
6
  # sphinx_rtd_theme
6
7
  myst-parser[linkify]
7
8
  sphinx>=3.2.1
9
+ sphinx-autodoc-typehints