SingleCellExperiment 0.6.0__tar.gz → 0.6.1__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 (53) hide show
  1. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/PKG-INFO +1 -1
  2. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/SingleCellExperiment.egg-info/PKG-INFO +1 -1
  3. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/singlecellexperiment/SingleCellExperiment.py +20 -16
  4. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/.coveragerc +0 -0
  5. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/.github/workflows/publish-pypi.yml +0 -0
  6. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/.github/workflows/run-tests.yml +0 -0
  7. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/.gitignore +0 -0
  8. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/.pre-commit-config.yaml +0 -0
  9. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/.readthedocs.yml +0 -0
  10. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/AUTHORS.md +0 -0
  11. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/CHANGELOG.md +0 -0
  12. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/CONTRIBUTING.md +0 -0
  13. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/LICENSE.txt +0 -0
  14. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/README.md +0 -0
  15. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/Makefile +0 -0
  16. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/_static/.gitignore +0 -0
  17. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/authors.md +0 -0
  18. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/changelog.md +0 -0
  19. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/conf.py +0 -0
  20. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/contributing.md +0 -0
  21. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/index.md +0 -0
  22. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/license.md +0 -0
  23. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/readme.md +0 -0
  24. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/requirements.txt +0 -0
  25. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/docs/tutorial.md +0 -0
  26. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/pyproject.toml +0 -0
  27. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/setup.cfg +0 -0
  28. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/setup.py +0 -0
  29. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/SingleCellExperiment.egg-info/SOURCES.txt +0 -0
  30. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/SingleCellExperiment.egg-info/dependency_links.txt +0 -0
  31. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/SingleCellExperiment.egg-info/not-zip-safe +0 -0
  32. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/SingleCellExperiment.egg-info/requires.txt +0 -0
  33. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/SingleCellExperiment.egg-info/top_level.txt +0 -0
  34. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/singlecellexperiment/__init__.py +0 -0
  35. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/singlecellexperiment/_combineutils.py +0 -0
  36. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/singlecellexperiment/_ioutils.py +0 -0
  37. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/singlecellexperiment/io/__init__.py +0 -0
  38. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/singlecellexperiment/io/h5ad.py +0 -0
  39. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/src/singlecellexperiment/io/tenx.py +0 -0
  40. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/conftest.py +0 -0
  41. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/data/adata.h5ad +0 -0
  42. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/data/mocks.py +0 -0
  43. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/data/raw_feature_bc_matrix/barcodes.tsv +0 -0
  44. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/data/raw_feature_bc_matrix/features.tsv +0 -0
  45. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/data/raw_feature_bc_matrix/matrix.mtx +0 -0
  46. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/data/tenx.sub.h5 +0 -0
  47. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/test_sce.py +0 -0
  48. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/test_sce_combine_cols.py +0 -0
  49. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/test_sce_combine_rows.py +0 -0
  50. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/test_sce_io.py +0 -0
  51. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/test_sce_methods.py +0 -0
  52. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tests/test_sce_slice.py +0 -0
  53. {singlecellexperiment-0.6.0 → singlecellexperiment-0.6.1}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SingleCellExperiment
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: Container class for single-cell experiments
5
5
  Home-page: https://github.com/BiocPy/SingleCellExperiment
6
6
  Author: jkanche
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: SingleCellExperiment
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: Container class for single-cell experiments
5
5
  Home-page: https://github.com/BiocPy/SingleCellExperiment
6
6
  Author: jkanche
@@ -280,7 +280,7 @@ class SingleCellExperiment(RangedSummarizedExperiment):
280
280
  row_names=_row_names_copy,
281
281
  column_names=_col_names_copy,
282
282
  metadata=_metadata_copy,
283
- reduced_dims=_red_dim_copy,
283
+ reduced_dimensions=_red_dim_copy,
284
284
  main_experiment_name=_main_expt_name_copy,
285
285
  alternative_experiments=_alt_expt_copy,
286
286
  row_pairs=_row_pair_copy,
@@ -302,7 +302,7 @@ class SingleCellExperiment(RangedSummarizedExperiment):
302
302
  row_names=self._row_names,
303
303
  column_names=self._column_names,
304
304
  metadata=self._metadata,
305
- reduced_dims=self._reduced_dims,
305
+ reduced_dimensions=self._reduced_dims,
306
306
  main_experiment_name=self._main_experiment_name,
307
307
  alternative_experiments=self._alternative_experiments,
308
308
  row_pairs=self._row_pairs,
@@ -342,7 +342,7 @@ class SingleCellExperiment(RangedSummarizedExperiment):
342
342
  output += ", alternative_experiments=" + ut.print_truncated_list(self.alternative_experiment_names)
343
343
 
344
344
  if self._reduced_dims is not None:
345
- output += ", reduced_dims=" + ut.print_truncated_list(self.reduced_dim_names)
345
+ output += ", reduced_dimensions=" + ut.print_truncated_list(self.reduced_dim_names)
346
346
 
347
347
  if self._main_experiment_name is not None:
348
348
  output += ", main_experiment_name=" + self._main_experiment_name
@@ -381,7 +381,9 @@ class SingleCellExperiment(RangedSummarizedExperiment):
381
381
  output += f"column_names({0 if self._column_names is None else len(self._column_names)}): {' ' if self._column_names is None else ut.print_truncated_list(self._column_names)}\n"
382
382
 
383
383
  output += f"main_experiment_name: {' ' if self._main_experiment_name is None else self._main_experiment_name}\n"
384
- output += f"reduced_dims({len(self.reduced_dim_names)}): {ut.print_truncated_list(self.reduced_dim_names)}\n"
384
+ output += (
385
+ f"reduced_dimensions({len(self.reduced_dim_names)}): {ut.print_truncated_list(self.reduced_dim_names)}\n"
386
+ )
385
387
  output += f"alternative_experiments({len(self.alternative_experiment_names)}): {ut.print_truncated_list(self.alternative_experiment_names)}\n"
386
388
  output += f"row_pairs({len(self.row_pair_names)}): {ut.print_truncated_list(self.row_pair_names)}\n"
387
389
  output += f"column_pairs({len(self.column_pair_names)}): {ut.print_truncated_list(self.column_pair_names)}\n"
@@ -407,11 +409,13 @@ class SingleCellExperiment(RangedSummarizedExperiment):
407
409
  """Alias for :py:meth:`~get_reduced_dimensions`, for back-compatibility."""
408
410
  return self.get_reduced_dimensions()
409
411
 
410
- def set_reduced_dimensions(self, reduced_dims: Dict[str, Any], in_place: bool = False) -> SingleCellExperiment:
412
+ def set_reduced_dimensions(
413
+ self, reduced_dimensions: Dict[str, Any], in_place: bool = False
414
+ ) -> SingleCellExperiment:
411
415
  """Set new reduced dimensions.
412
416
 
413
417
  Args:
414
- reduced_dims:
418
+ reduced_dimensions:
415
419
  New embeddings.
416
420
 
417
421
  in_place:
@@ -421,15 +425,15 @@ class SingleCellExperiment(RangedSummarizedExperiment):
421
425
  A modified ``SingleCellExperiment`` object, either as a copy of the original
422
426
  or as a reference to the (in-place-modified) original.
423
427
  """
424
- _validate_reduced_dims(reduced_dims, self.shape)
428
+ _validate_reduced_dims(reduced_dimensions, self.shape)
425
429
 
426
430
  output = self._define_output(in_place)
427
- output._reduced_dims = reduced_dims
431
+ output._reduced_dims = reduced_dimensions
428
432
  return output
429
433
 
430
- def set_reduced_dims(self, reduced_dims: Dict[str, Any], in_place: bool = False) -> SingleCellExperiment:
434
+ def set_reduced_dims(self, reduced_dimensions: Dict[str, Any], in_place: bool = False) -> SingleCellExperiment:
431
435
  """Alias for :py:meth:`~set_reduced_dimensions`, for back-compatibility."""
432
- return self.set_reduced_dimensions(reduced_dims=reduced_dims, in_place=in_place)
436
+ return self.set_reduced_dimensions(reduced_dimensions=reduced_dimensions, in_place=in_place)
433
437
 
434
438
  @property
435
439
  def reduced_dims(self) -> Dict[str, Any]:
@@ -437,13 +441,13 @@ class SingleCellExperiment(RangedSummarizedExperiment):
437
441
  return self.get_reduced_dimensions()
438
442
 
439
443
  @reduced_dims.setter
440
- def reduced_dims(self, reduced_dims: Dict[str, Any]):
444
+ def reduced_dims(self, reduced_dimensions: Dict[str, Any]):
441
445
  """Alias for :py:meth:`~set_reduced_dimensions`."""
442
446
  warn(
443
447
  "Setting property 'reduced_dims' is an in-place operation, use 'set_reduced_dimensions' instead",
444
448
  UserWarning,
445
449
  )
446
- self.set_reduced_dimensions(reduced_dims, in_place=True)
450
+ self.set_reduced_dimensions(reduced_dimensions, in_place=True)
447
451
 
448
452
  @property
449
453
  def reduced_dimensions(self) -> Dict[str, Any]:
@@ -451,13 +455,13 @@ class SingleCellExperiment(RangedSummarizedExperiment):
451
455
  return self.get_reduced_dimensions()
452
456
 
453
457
  @reduced_dimensions.setter
454
- def reduced_dimensions(self, reduced_dims: Dict[str, Any]):
458
+ def reduced_dimensions(self, reduced_dimensions: Dict[str, Any]):
455
459
  """Alias for :py:meth:`~set_reduced_dimensions`."""
456
460
  warn(
457
461
  "Setting property 'reduced_dimensions' is an in-place operation, use 'set_reduced_dimensions' instead",
458
462
  UserWarning,
459
463
  )
460
- self.set_reduced_dimensions(reduced_dims, in_place=True)
464
+ self.set_reduced_dimensions(reduced_dimensions, in_place=True)
461
465
 
462
466
  ####################################
463
467
  ######>> reduced_dims_names <<######
@@ -1119,7 +1123,7 @@ class SingleCellExperiment(RangedSummarizedExperiment):
1119
1123
  column_names=slicer.column_names,
1120
1124
  metadata=self._metadata,
1121
1125
  main_experiment_name=self._main_experiment_name,
1122
- reduced_dims=new_reduced_dims,
1126
+ reduced_dimensions=new_reduced_dims,
1123
1127
  alternative_experiments=new_alt_expts,
1124
1128
  row_pairs=new_row_pairs,
1125
1129
  column_pairs=new_col_pairs,
@@ -1217,7 +1221,7 @@ class SingleCellExperiment(RangedSummarizedExperiment):
1217
1221
  row_data=biocframe.BiocFrame.from_pandas(input.var),
1218
1222
  column_data=biocframe.BiocFrame.from_pandas(input.obs),
1219
1223
  metadata=_metadata,
1220
- reduced_dims=obsm,
1224
+ reduced_dimensions=obsm,
1221
1225
  row_pairs=varp,
1222
1226
  column_pairs=obsp,
1223
1227
  )