Skip to content

Commit d309843

Browse files
committed
warning about the version-specific behaviour of the janno R package
1 parent 85438ca commit d309843

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

janno_r_package.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ remotes::install_github('poseidon-framework/janno')
1313

1414
The guide below explains the main functions in the package. It is available in .pdf format here:
1515

16-
- [🗎 Guide for the janno R package v1.0.0](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/janno_r_package.pdf) (shown below)
16+
- [🗎 Guide for the janno R package v1.0.0 to v1.1.0](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/janno_r_package.pdf) (shown below)
1717

18-
# Guide for the janno R package v1.0.0
18+
# Guide for the janno R package v1.0.0 to v1.1.0
1919

2020
## Installation
2121

@@ -39,6 +39,8 @@ Before loading the `.janno` files they are validated with `janno::validate_janno
3939

4040
Usually the `.janno` files are first loaded as normal `.tsv` files with every column type set to `character` and then the columns are transformed to the specified types. This transformation can be turned off with `to_janno = FALSE`.
4141

42+
Note that the transformation is always done according to the specific Poseidon schema version a given janno R package version supports. `read_janno()` is not aware of the schema version a `.janno` file was intended to follow. See the [version table](version_table.md) for a lookup table which janno version supports which schema version. The package also reports this upon loading in its start-up message.
43+
4244
`read_janno()` returns an object of class `janno`. This class is derived from the [`tibble`](https://tibble.tidyverse.org/) class, which integrates well with the tidyverse [@Wickham2019](https://doi.org/10.21105/joss.01686) and its packages, e.g. `dplyr` or `ggplot2`.
4345

4446
## Validate `.janno` files
@@ -51,6 +53,8 @@ my_janno_issues <- janno::validate_janno("path/to/my/janno_file.janno")
5153

5254
`validate_janno` returns a `tibble` with issues in the respective `.janno` files. For edge cases this validation may yield slightly different results than `trident validate`.
5355

56+
Note that the validation is always done against the specific Poseidon schema version a given janno R package version supports. `validate_janno()` is not aware of the schema version a `.janno` file was intended to follow.
57+
5458
## Write `janno` objects back to `.janno` files
5559

5660
`janno` objects usually contain list columns, that can not directly be written to a flat text file like the `.janno` file. The function `write_janno` solves that. It employs a helper function `flatten_janno()`, which translates list columns to the string list format in `.janno` files (so: multiple values for one cell separated by `;`).

qjanno.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The guide below explains the inner workings of qjanno and gives some examples fo
2929
- [🗎 Guide for qjanno v1.0.0.0 to v1.0.0.1](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/qjanno.pdf) (shown below)
3030
- [🗎 Guide for qjanno v1.0.0](https://github.com/poseidon-framework/poseidon-framework.github.io/blob/master/qjanno_guide_archive/qjanno_guide_1.0.0.pdf)
3131

32-
# Guide for qjanno v1.0.0.0 to v1.0.0.1
32+
# Guide for qjanno v1.0.0.0 to v1.0.1.0
3333

3434
## Background
3535

0 commit comments

Comments
 (0)