SomaDataIO 6.0.0
We are now on CRAN! 🥳
New changes
- New clinical data merge CLI tool (#25)
Rscript --vanilla merge_clin.R
for merging clinical variables
into existing*.adat
SomaScan data files- added 2 new example
meta.csv
andmeta2.csv
files
to run examples with random data but with valid index keys - see
dir(system.file("cli", "merge", package = "SomaDataIO"))
Package data objects
- general reorganization of package objects, trimming
and slimming, renaming, and file structure (#32) example_data.adat
was reduced in size ton = 10
samples (from 192)
to conform to CRAN size requirements (< 5MB)- the current file was renamed
example_data10.adat
to reflect this change - this likely has far-reaching consequences for users who access
this flat file viasystem.file()
- the
example_data
object itself however remains true to its original
file (https://github.com/SomaLogic/SomaLogic-Data/blob/master/example_data.adat
) - the directory location
inst/example/
was renamedinst/extdata/
to conform to CRAN package standard naming conventions - the file
single_sample.adat
was removed from package data
as it is now redundant (however still used in unit testing) SomaDataObjects
was renamed and is nowSomaScanObjects
Gradual deprecation
read.adat()
is now soft-deprecated; please useread_adat() instead
- lifecycle for soft-deprecated
warn()
->stop()
for functions
that have been been soft deprecated sincev5.0.0
getSomamers()
getSomamerData()
meltExpressionSet()
S3 Methods
- New S3 print method default
tibble
has newmax_extra_cols =
argument, which
is set to6
for theprint.soma_adat
method
- New S3 merge method (#31)
- calling
base::merge()
on asoma_adat
is strongly discouraged - we now redirect users to use
dplyr::*_join()
alternatives
which are designed to preservesoma_adat
attributes
- calling
Internal upgrades
-
Code hardening for
prepHeaderMeta()
- some ADATs do not have
CreatedDate
andCreatedBy
in the HEADER entry. This currently breaks the writer - simplified to make more robust but also refactor
to be more convenient (for abnormal ADATs not generated
by standard SomaScan processing) CreatedDateHistory
was removed as an entry from written ADATsCreatedByHistory
was combined and dated for written ADATsNULL
behavior remains if keys are missingCreatedBy
andCreatedDate
will be generated either
as new entries or over-written as appropriate
- some ADATs do not have
-
Numerous non-user-facing (API) changes internal package
maintenance, efficiency, and structural upgrades were included