Releases: theislab/ehrdata
Releases · theislab/ehrdata
0.2.1 🌈 Release
0.2.0 🌈 Release
Fixed
- Assigning .X to a view of an X-less {class}~ehrdata.EHRData (e.g. one created with layers= only) no longer raises TypeError: 'NoneType' object does not support item assignment. The view is now materialised before the assignment, consistent with how AnnData handles other field modifications on views. (#233) @eroell
Modified
0.1.2 🌈 Release
Added
- {func}
~ehrdata.io.from_pandaswithformat='long'provides a new keyword argumentfill_time_gapsthat fills missing timegaps in the common case of integer time steps from 0 to n_timesteps (#229) @eroell
Modified
- {func}
~ehrdata.dt.mimic_2columncensor_flgswitched to lifeline's convention with 1=event, 0=censored, before this dataset loader function had them vice versa since the dataset provides them as such originally. (#227) @sueoglu
Fixed
- {func}
~ehrdata.io.from_pandaswithformat='long'misordered entries in.X/.layerswith.obsif the input df was not sorted for the obs id keys, which is now fixed. (#228) @eroell
Documentation
0.1.1 🌈 Release
0.1.0 🌈 Release
Added
- {func}
~ehrdata.move_to_obsand {func}~ehrdata.move_to_xare new helpers for conveniently moving variables from central 2D arrays to the.obsfield, and vice versa. (#199) @eroell - {func}
~ehrdata.dt.physionet2019as another out-of-the-box, conveniently available dataset with 40'000 ICU stays from the Physionet 2019 challenge. (#204) @eroell time_precisionparameter ("date"or"datetime") to {func}~ehrdata.io.omop.setup_variablesand {func}~ehrdata.io.omop.setup_interval_variablesfor finer temporal granularity control. (#210) @eroell
Fixed
- {func}
~ehrdata.io.read_h5adfixed issues whenbacked=True. (#199) @eroell - {func}
~ehrdata.io.read_h5adfixed bug when.XisNoneandharmonize_missing_featuresisTrue. (#206) @eroell - {func}
~ehrdata.io.omop.setup_obswithobservation_table="person_visit_occurrence"now supports multiple visits per patient, creating one row per visit with unique observation IDs, instead of failing with xarray conversion errors with non-unique indices. (#210) @eroell - OMOP time interval boundaries now use half-open intervals
[start, end)to prevent duplicate measurements at interval boundaries. (#210) @eroell
Maintenance
- Support Python3.14 (#194) @Zethson
- Address
FutureWarnings across multiple places (#200) @eroell - Enhanced tutorial structure (#208) @eroell
Modified
- Dataset generator function
ed.dt.ehrdata_blobsnow takesn_cat_varandn_categoriesarguments to generate categorical (integer encoded) time series data (#207) @sueoglu - If
enrich_var_with_feature_info=Truein {func}~ehrdata.io.omop.setup_variablesand {func}~ehrdata.io.omop.setup_interval_variables,data_table_concept_idsnot included within the concept table are now mapped from their respective alternateconcept_idincluded in the concept_relationship table to retrieve the available feature information. (#205) @KilianDahm - {func}
~ehrdata.io.omop.setup_variablesand {func}~ehrdata.io.omop.setup_interval_variableswith use of"person"now checksbirth_datetimefor meaningful behaviour and error messages. (#210) @eroell - {func}
~ehrdata.integrations.vitessce.gen_default_configprovides convenience to generate a config directly from anEHRDataobject, and should be used instead of the previousehrdata.integrations.vitessce.gen_config. (#211) @eroell
0.0.10 🌈 Release
EHRData drops the .R field, and now supports 3D data storage in any slot of .layers. See the tutorials/getting_started tutorial for an introduction to this behaviour. In the future, .X will be enabled soon for 3D data storage as well.
Maintenance
Modified
EHRDatadrops the.Rfield in favor of using.layersfor any 3D data arrays (#184) @eroellEHRData's shape property will always return a 3 dimensional shape. If anEHRDataobject has flat arrays only, the third dimension will be 1. (#184) @eroell @flying-sheep @Zethson- The following functions now take a
layerargument:ehrdata.io.read_csv,ehrdata.io.from_pandas,ehrdata.io.to_pandas,ehrdata.io.omop.setup_variables,ehrdata.io.omop.setup_interval_variables,ehrdata.dt.ehrdata_blobs,ehrdata.dt.physionet2012. If it is let to its default,None, the.Xfield ofEHRDatais used. Since.Xis 2D in this release, in cases with 3D data, thelayerargument needs to be used. (#184) @eroell ehrdata.io.write_zarrnow writes anEHRDataspecific store encoding, withanndataas a substore. This change allows to useAnnDatawith its change to consolidated Zarr metadata, and better isolatesAnnData's io. (#185) @eroell @flying-sheepehrdata.io.read_zarris adapted to read the new store encoding, and can also deal withAnnDatastores. (#185) @eroell @flying-sheep