| Title: | Read Prism Tables Into R |
|---|---|
| Description: | This package provides functions to read and parse GraphPad Prism files (.pzfx or .prism) into R data frames, enabling users to analyse and manipulate their data within the R environment. It currently consists of two functions - `get_table_names` and `read_prism`, both of which take the file path to a prism file as input and output either the table names or the table contents themselves. |
| Authors: | Miha Kosmac [aut, cre] |
| Maintainer: | Miha Kosmac <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2025-12-01 02:19:16 UTC |
| Source: | https://github.com/Biomiha/prism2R |
Get preferred analysis tables from a .prism file
get_analysis_tables(prism_file)get_analysis_tables(prism_file)
prism_file |
The path to the prism file |
A named list of data.frames with model parameters
# prism_file is the file path to the .prism file. Analysis data tables in Prism can include multiple (quite often hidden) tabs. # One of these is usually designated as the preferred tab and this is returned as a list object, commonly a data.frame. demo_file <- system.file("extdata", "demo_dataset.prism", package = "pRism") get_analysis_tables(demo_file)# prism_file is the file path to the .prism file. Analysis data tables in Prism can include multiple (quite often hidden) tabs. # One of these is usually designated as the preferred tab and this is returned as a list object, commonly a data.frame. demo_file <- system.file("extdata", "demo_dataset.prism", package = "pRism") get_analysis_tables(demo_file)
Get the names of the prism data tables
get_table_names(prism_file)get_table_names(prism_file)
prism_file |
The path to the prism file |
A vector of table names
# prism_file is the file path to the prism file. It needs to either be a .pzfx or a .prism file. demo_file <- system.file("extdata", "demo_dataset.prism", package = "pRism") get_table_names(demo_file)# prism_file is the file path to the prism file. It needs to either be a .pzfx or a .prism file. demo_file <- system.file("extdata", "demo_dataset.prism", package = "pRism") get_table_names(demo_file)
Read prism data tables into R
read_prism(prism_file, sheet = NA)read_prism(prism_file, sheet = NA)
prism_file |
a string - the path to the prism file |
sheet |
Which table to read in. |
A data.frame that tries to reproduce the data table output in prism or a named list of data.frames.
# prism_file is the file path to the prism file. It needs to either be a .pzfx or a .prism file. demo_file <- system.file("extdata", "demo_dataset.prism", package = "pRism") read_prism(demo_file, sheet = 1) # This will read only the first data table. read_prism(demo_file, sheet = "XY: Entering replicate data") # This will read the selected data table. read_prism(demo_file, sheet = NA) # This will read all data tables in the file.# prism_file is the file path to the prism file. It needs to either be a .pzfx or a .prism file. demo_file <- system.file("extdata", "demo_dataset.prism", package = "pRism") read_prism(demo_file, sheet = 1) # This will read only the first data table. read_prism(demo_file, sheet = "XY: Entering replicate data") # This will read the selected data table. read_prism(demo_file, sheet = NA) # This will read all data tables in the file.