You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The guide below explains the main functions in the package. It is available in .pdf format here:
15
15
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)
17
17
18
-
# Guide for the janno R package v1.0.0
18
+
# Guide for the janno R package v1.0.0 to v1.1.0
19
19
20
20
## Installation
21
21
@@ -39,6 +39,8 @@ Before loading the `.janno` files they are validated with `janno::validate_janno
39
39
40
40
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`.
41
41
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
+
42
44
`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`.
`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`.
53
55
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
+
54
58
## Write `janno` objects back to `.janno` files
55
59
56
60
`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 `;`).
Copy file name to clipboardExpand all lines: qjanno.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The guide below explains the inner workings of qjanno and gives some examples fo
29
29
-[🗎 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)
30
30
-[🗎 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)
0 commit comments