Skip to content

Commit 9bef940

Browse files
authored
Clarify generate_dataset() usage (#354)
Fixes #343
1 parent e2f1bcf commit 9bef940

7 files changed

Lines changed: 337 additions & 321 deletions

File tree

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export(AnnData)
1515
export(AnnDataView)
1616
export(as_AnnData)
1717
export(generate_dataset)
18+
export(get_generator_types)
1819
export(read_h5ad)
1920
export(write_h5ad)
2021
importFrom(Matrix,as.matrix)

NEWS.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,26 @@
99
## Major changes
1010

1111
- Refactor obs/var_names handling for improved data consistency (PR #328)
12-
- `InMemoryAnnData` now stores `obs_names` and `var_names` as separate private fields instead of relying on rownames of `obs`/`var` data.frames
13-
- `HDF5AnnData` maintains separate obs/var names management to ensure consistency between obs/var data.frames and dimnames
14-
- All matrix data (`X`, `layers`, `obsm`, `varm`, `obsp`, `varp`) is now stored internally **without** dimnames for consistency
15-
- Dimnames are added **on-the-fly** when users access data, ensuring proper obs/var name display
12+
- `InMemoryAnnData` now stores `obs_names` and `var_names` as separate private
13+
fields instead of relying on rownames of `obs`/`var` data.frames
14+
- `HDF5AnnData` maintains separate obs/var names management to ensure
15+
consistency between obs/var data.frames and dimnames
16+
- All matrix data (`X`, `layers`, `obsm`, `varm`, `obsp`, `varp`) is now
17+
stored internally **without** dimnames for consistency
18+
- Dimnames are added **on-the-fly** when users access data, ensuring proper
19+
obs/var name display
1620

1721
## Minor changes
1822

1923
- Refactor setter methods in `HDF5AnnData` and `InMemoryAnnData` to use pipe
2024
operators for cleaner code (PR #328)
21-
- Add explanatory comments for matrix generation alignment with dummy-anndata
22-
(PR #328)
25+
- Add explanatory comments for matrix generation alignment with Python
26+
**dummy-anndata** (PR #328)
27+
- Add `get_generator_types()` function return allowed/example types for
28+
`generate_dataset()` (PR #354)
29+
- Add checks for type arguments to `generate_dataset()` (PR #354)
30+
- Generalise the layers created by `generate_dataset()` when `format = "Seurat"`
31+
(PR #354)
2332

2433
## Bug fixes
2534

@@ -31,16 +40,19 @@
3140
(expected_colnames → expected_rownames) (PR #328)
3241
- Fix Seurat conversion for PCA loadings with variable feature subsets (PR #328)
3342
- Seurat PCA loadings only contain variable features, not all genes
34-
- Now properly expands loadings matrix to include all genes with zeros for non-variable features
43+
- Now properly expands loadings matrix to include all genes with zeros for
44+
non-variable features
3545
- Adds warning when rownames don't match var_names during conversion
3646

3747
## Documentation
3848

39-
- `citation("anndataR")` now returns details of the **{anndataR}** preprint (PR #351)
49+
- `citation("anndataR")` now returns details of the **{anndataR}** preprint
50+
(PR #351)
4051

4152
# anndataR 0.99.2
4253

43-
* Add `@return` to R6 object man pages to address **{BiocCheck}** warning (PR #319)
54+
* Add `@return` to R6 object man pages to address **{BiocCheck}** warning
55+
(PR #319)
4456

4557
# anndataR 0.99.1
4658

0 commit comments

Comments
 (0)