https://github.com/wilsontom/gaml2r
Extract HPLC data from GAML files
https://github.com/wilsontom/gaml2r
gaml hplc xml
Last synced: 8 months ago
JSON representation
Extract HPLC data from GAML files
- Host: GitHub
- URL: https://github.com/wilsontom/gaml2r
- Owner: wilsontom
- Created: 2022-02-13T09:43:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-08-15T12:02:56.000Z (11 months ago)
- Last Synced: 2025-08-15T14:19:19.521Z (11 months ago)
- Topics: gaml, hplc, xml
- Language: R
- Homepage:
- Size: 7.51 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
Awesome Lists containing this project
README
# gaml2r
[](https://lifecycle.r-lib.org/articles/stages.html#stable) [](https://github.com/wilsontom/gaml2r/actions) [](https://codecov.io/gh/wilsontom/gaml2r) 
### Getting Started
``` r
remotes::install_github('wilsontom/gaml2r')
```
Then to open a GAML file simply use the `open_file` function;
``` r
myData <- gaml2r::openFile('my_file.gaml', output = 'list', include_injection_info = FALSE)
```
Using `output = 'list'` will return a list for each sample, where `output = 'tbl_df'` then all the data is returned in long format, as a tibble.
If the `gaml` file has been created using custom export options (to include the sample injection properties), then specifying `include_injection_info = TRUE` will output these values alongside the exported data.
The SHA1 Integrity Algorithm for a GAML file can be retrieved using the following function;
``` r
SHA1 <- gaml2r::get_sha1('my_file.gaml')
```
Details on the GAML conversion parameters can be retrieved using the `get_parameters` function.
``` r
GAML_Params <- gaml2r::get_parameters('my_file.gaml')
```