Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions RcppTskit/.Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
^[.]?air[.]toml$
^[.]?jarl[.]toml$
^\.Rproj\.user$
^\.idea$
^src/\.idea$
^src/tskit/\.idea$
^\.\.$
^\.clang-format$
^\.covrignore$
Expand Down
30 changes: 26 additions & 4 deletions RcppTskit/NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,31 @@ and releases adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html
to append site rows from \code{R}, mirroring `tsk_site_table_add_row()`.
- Added `rtsk_mutation_table_add_row()` and
`TableCollection$mutation_table_add_row()` to append mutation rows from
\code{R}, mirroring `tsk_mutation_table_add_row()`.
- TODO
`R`, mirroring `tsk_mutation_table_add_row()`.
- Added `rtsk_population_table_add_row()` and
`TableCollection$population_table_add_row()` to append population rows from
`R`, mirroring `tsk_population_table_add_row()`.
- Added `rtsk_migration_table_add_row()` and
`TableCollection$migration_table_add_row()` to append migration rows from
`R`, mirroring `tsk_migration_table_add_row()`.
- Added `rtsk_provenance_table_add_row()` and
`TableCollection$provenance_table_add_row()` to append provenance rows from
`R`, mirroring `tsk_provenance_table_add_row()`.
- Added `rtsk_node_table_get_row()` and `TableCollection$node_table_get_row()`
to retrieve node-table rows by 0-based row index.
- Added `rtsk_table_collection_sort()` and `TableCollection$sort()` to sort
table collection.
- Added `rtsk_table_collection_simplify()` and
`TableCollection$simplify()` to simplify table collection.
- Added low-level variant iterators
(`rtsk_variant_iterator_init()`/`rtsk_variant_iterator_next()`) and a

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sync the names of these functions

user-facing `TreeSequence$variants()` method to iterate over decoded
site-by-site variants from `R`, aligned with `Python` API
semantics for `samples`, `isolated_as_missing`, `alleles`, and
`left`/`right` intervals.
- Added `rtsk_treeseq_get_samples()` and `TreeSequence$samples()` to retrieve
sample node IDs from a tree sequence, with `TreeSequence$samples()` now
supporting `population` and `time` filters.

### Changed

Expand All @@ -53,17 +76,16 @@ and releases adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html
`pointer` to `xptr`.
- Ensured `TableCollection$tree_sequence()` matches `tskit Python` API:
it now builds indexes on the `TableCollection`, if indexes are not present.
- Refined integer validation behaviour across scalar and optional vector inputs.
- We now use `bit64::integer64` (signed 64 bit integer) instead of `int` aiming
to approach `tsk_size_t` in `tskit C` (unsigned 64 bit integer); in low-level
`rtsk_treeseq_get_num_*()` wrappers and count/metadata-length fields.
- TODO

### Maintenance

- Turn vignette URL as hyperlinks and similar cosmetics.
- State that we mirror the `R/Python` APIs and `C++/C` APIs across the package.
- Update `tskit C` to 1.3.1
- TODO

## [0.2.0] - 2026-02-22

Expand Down
Loading
Loading