diff --git a/pharmsol/all.html b/pharmsol/all.html index 5a9059f..f1c8866 100644 --- a/pharmsol/all.html +++ b/pharmsol/all.html @@ -1,2 +1,2 @@ List of all items in this crate -

List of all items

Structs

Enums

Traits

Macros

Functions

\ No newline at end of file +

List of all items

Structs

Enums

Traits

Macros

Functions

\ No newline at end of file diff --git a/pharmsol/data/parse_pmetrics/fn.write_pmetrics_observations.html b/pharmsol/data/parse_pmetrics/fn.write_pmetrics_observations.html deleted file mode 100644 index 0c75590..0000000 --- a/pharmsol/data/parse_pmetrics/fn.write_pmetrics_observations.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Redirection - - -

Redirecting to ../../../pharmsol/prelude/data/fn.write_pmetrics_observations.html...

- - - \ No newline at end of file diff --git a/pharmsol/prelude/data/fn.read_pmetrics.html b/pharmsol/prelude/data/fn.read_pmetrics.html index ca31a99..c0e793f 100644 --- a/pharmsol/prelude/data/fn.read_pmetrics.html +++ b/pharmsol/prelude/data/fn.read_pmetrics.html @@ -1,4 +1,4 @@ read_pmetrics in pharmsol::prelude::data - Rust -
pub fn read_pmetrics(path: &Path) -> Result<Data, Box<dyn Error>>
Expand description

Read a Pmetrics datafile and convert it to a Data object

+
pub fn read_pmetrics(path: &Path) -> Result<Data, Box<dyn Error>>
Expand description

Read a Pmetrics datafile and convert it to a Data object

For specific details, see the [Row] struct.

\ No newline at end of file diff --git a/pharmsol/prelude/data/fn.write_pmetrics_observations.html b/pharmsol/prelude/data/fn.write_pmetrics_observations.html deleted file mode 100644 index e884621..0000000 --- a/pharmsol/prelude/data/fn.write_pmetrics_observations.html +++ /dev/null @@ -1,2 +0,0 @@ -write_pmetrics_observations in pharmsol::prelude::data - Rust -
pub fn write_pmetrics_observations(data: &Data, file: &File)
\ No newline at end of file diff --git a/pharmsol/prelude/data/index.html b/pharmsol/prelude/data/index.html index 59ed8e7..5aeb173 100644 --- a/pharmsol/prelude/data/index.html +++ b/pharmsol/prelude/data/index.html @@ -1,2 +1,2 @@ pharmsol::prelude::data - Rust -

Module pharmsol::prelude::data

source ·

Structs§

Enums§

Functions§

\ No newline at end of file +

Module pharmsol::prelude::data

source ·

Structs§

Enums§

Functions§

\ No newline at end of file diff --git a/pharmsol/prelude/data/sidebar-items.js b/pharmsol/prelude/data/sidebar-items.js index 5011b13..59421ec 100644 --- a/pharmsol/prelude/data/sidebar-items.js +++ b/pharmsol/prelude/data/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":["ErrorType","Event"],"fn":["read_pmetrics","write_pmetrics_observations"],"struct":["Covariates","Data","ErrorModel","Occasion","Subject"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["ErrorType","Event"],"fn":["read_pmetrics"],"struct":["Covariates","Data","ErrorModel","Occasion","Subject"]}; \ No newline at end of file diff --git a/search-index.js b/search-index.js index 26f9005..12d63af 100644 --- a/search-index.js +++ b/search-index.js @@ -1,5 +1,5 @@ var searchIndex = new Map(JSON.parse('[\ -["pharmsol",{"doc":"","t":"QQQQCKKCMCMCPPFFFGGPPFPFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHHHHHPGPFPNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNONNNNNNNNNNNNN","n":["fa","fetch_cov","fetch_params","lag","prelude","EstimateTheta","OptimalSupportPoint","data","estimate_theta","models","optimal_support_point","simulator","Add","Bolus","Covariates","Data","ErrorModel","ErrorType","Event","Infusion","Observation","Occasion","Prop","Subject","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","deserialize","drop","drop","drop","drop","drop","drop","drop","estimate_theta","expand","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","get_covariate","get_covariates","get_events","get_subjects","get_time","id","init","init","init","init","init","init","init","into","into","into","into","into","into","into","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","len","new","new","occasions","optimal_support_point","read_pmetrics","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","write_pmetrics_observations","one_compartment","one_compartment_with_absorption","two_compartments","two_compartments_with_absorption","Analytical","Equation","ODE","PopulationPredictions","SDE","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","default","deref","deref","deref_mut","deref_mut","drop","drop","fmt","from","from","from","from_subset","from_subset","get_population_predictions","get_psi","init","init","into","into","is_in_subset","is_in_subset","new_analytical","new_ode","simulate_subject","subject_predictions","to_owned","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip"],"q":[[0,"pharmsol"],[5,"pharmsol::prelude"],[12,"pharmsol::prelude::data"],[193,"pharmsol::prelude::models"],[197,"pharmsol::prelude::simulator"],[246,"ndarray::aliases"],[247,"ndarray::aliases"],[248,"serde::de"],[249,"core::fmt"],[250,"core::fmt"],[251,"std::collections::hash::map"],[252,"alloc::vec"],[253,"alloc::string"],[254,"std::path"],[255,"core::error"],[256,"alloc::boxed"],[257,"core::any"],[258,"std::fs"],[259,"nalgebra::base::alias"]],"d":["","","","","","","","","","","","","","","Covariates is a collection of Covariate","Data is a collection of Subjects, which are collections of …","","","An Event can be a Bolus, Infusion, or Observation","","","An Occasion is a collection of events, for a given Subject…","","Subject is a collection of blocks for one individual","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","Read a Pmetrics datafile and convert it to a Data object","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Analytical for one compartment Assumptions:","Analytical for one compartment with absorption Assumptions:","Analytical for two compartment Assumptions:","Analytical for two compartment with absorption Assumptions:","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Returns the argument unchanged.","","","","","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,1,0,6,0,8,9,0,0,0,0,0,9,9,0,8,0,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,9,10,11,13,7,8,9,10,11,12,13,12,12,7,8,9,9,10,10,11,11,12,12,13,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,13,10,10,12,9,11,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,12,7,13,11,11,0,7,8,9,10,11,12,13,9,10,11,12,13,7,8,9,10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f}}Aj}{{Dd{{D`{f}}}}}}{Df{{D`{f}}Aj}{{Dd{Al}}}}{Df{{D`{f}}}{{Dd{{Bl{Anf}}}}}}{Df{{D`{f}}}{{Dd{{Bl{Anf}}}}}}{Df{{D`{f}}fAj{D`{f}}}{{Dd{Al}}}}{Df{{D`{f}}{D`{f}}fAj{D`{f}}}{{Dd{Al}}}}{Cd{AnAn}}}d}{{{Df{{D`{f}}{D`{f}}f{D`{f}}{D`{f}}Aj}{{Dd{Al}}}}{Df{{D`{f}}}{{Dd{{Bl{Anf}}}}}}{Df{{D`{f}}}{{Dd{{Bl{Anf}}}}}}{Df{{D`{f}}fAj{D`{f}}}{{Dd{Al}}}}{Df{{D`{f}}{D`{f}}fAj{D`{f}}}{{Dd{Al}}}}{Cd{AnAn}}}d}``{ce{}{}}{c{{Bj{e}}}{}{}}011{c{{B`{e}}}{}{}}000{cCl{}}033","c":[],"p":[[10,"EstimateTheta",5],[6,"Equation",197],[1,"f64"],[8,"Array1",246],[8,"Array2",246],[10,"OptimalSupportPoint",5],[5,"ErrorModel",12],[6,"ErrorType",12],[6,"Event",12],[5,"Occasion",12],[5,"Subject",12],[5,"Data",12],[5,"Covariates",12],[1,"unit"],[1,"usize"],[6,"Result",247],[10,"Deserializer",248],[5,"Formatter",249],[8,"Result",249],[1,"str"],[6,"Option",250],[5,"HashMap",251],[1,"bool"],[5,"Vec",252],[5,"String",253],[1,"tuple"],[5,"Path",254],[10,"Error",255],[5,"Box",256],[5,"TypeId",257],[5,"File",258],[8,"DVector",259],[5,"PopulationPredictions",197],[17,"Output"],[1,"fn"]],"b":[[81,"impl-Debug-for-Event"],[82,"impl-Display-for-Event"],[83,"impl-Display-for-Occasion"],[84,"impl-Debug-for-Occasion"],[85,"impl-Display-for-Subject"],[86,"impl-Debug-for-Subject"],[87,"impl-Debug-for-Data"],[88,"impl-Display-for-Data"],[89,"impl-Debug-for-Covariates"],[90,"impl-Display-for-Covariates"]]}]\ +["pharmsol",{"doc":"","t":"QQQQCKKCMCMCPPFFFGGPPFPFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHHHHPGPFPNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNONNNNNNNNNNNNN","n":["fa","fetch_cov","fetch_params","lag","prelude","EstimateTheta","OptimalSupportPoint","data","estimate_theta","models","optimal_support_point","simulator","Add","Bolus","Covariates","Data","ErrorModel","ErrorType","Event","Infusion","Observation","Occasion","Prop","Subject","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","deref","deref","deref","deref","deref","deref","deref","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deref_mut","deserialize","deserialize","deserialize","deserialize","drop","drop","drop","drop","drop","drop","drop","estimate_theta","expand","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","from_subset","get_covariate","get_covariates","get_events","get_subjects","get_time","id","init","init","init","init","init","init","init","into","into","into","into","into","into","into","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","is_in_subset","len","new","new","occasions","optimal_support_point","read_pmetrics","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","one_compartment","one_compartment_with_absorption","two_compartments","two_compartments_with_absorption","Analytical","Equation","ODE","PopulationPredictions","SDE","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","default","deref","deref","deref_mut","deref_mut","drop","drop","fmt","from","from","from","from_subset","from_subset","get_population_predictions","get_psi","init","init","into","into","is_in_subset","is_in_subset","new_analytical","new_ode","simulate_subject","subject_predictions","to_owned","to_subset","to_subset","to_subset_unchecked","to_subset_unchecked","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip"],"q":[[0,"pharmsol"],[5,"pharmsol::prelude"],[12,"pharmsol::prelude::data"],[192,"pharmsol::prelude::models"],[196,"pharmsol::prelude::simulator"],[245,"ndarray::aliases"],[246,"ndarray::aliases"],[247,"serde::de"],[248,"core::fmt"],[249,"core::fmt"],[250,"std::collections::hash::map"],[251,"alloc::vec"],[252,"alloc::string"],[253,"std::path"],[254,"core::error"],[255,"alloc::boxed"],[256,"core::any"],[257,"nalgebra::base::alias"]],"d":["","","","","","","","","","","","","","","Covariates is a collection of Covariate","Data is a collection of Subjects, which are collections of …","","","An Event can be a Bolus, Infusion, or Observation","","","An Occasion is a collection of events, for a given Subject…","","Subject is a collection of blocks for one individual","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","","","","","","","","","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","Read a Pmetrics datafile and convert it to a Data object","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Analytical for one compartment Assumptions:","Analytical for one compartment with absorption Assumptions:","Analytical for two compartment Assumptions:","Analytical for two compartment with absorption Assumptions:","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","Returns the argument unchanged.","","","","","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,0,0,1,0,6,0,8,9,0,0,0,0,0,9,9,0,8,0,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,9,10,11,13,7,8,9,10,11,12,13,12,12,7,8,9,9,10,10,11,11,12,12,13,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,13,10,10,12,9,11,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,12,7,13,11,11,0,7,8,9,10,11,12,13,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,7,8,9,10,11,12,13,0,0,0,0,2,0,2,0,2,32,2,32,2,2,2,32,32,2,32,2,32,2,2,32,32,2,32,2,0,32,32,2,32,2,32,2,2,2,2,32,2,32,2,32,2,32,2,32,2,32,2,32,2],"f":"````````{{bd{h{f}}}{{j{f}}}}`{{ld{h{f}}}{{h{f}}}}`````````````{ce{}{}}0000000000000{nn}{A`A`}{AbAb}{AdAd}{AfAf}{AhAh}{AjAj}{{ce}Al{}{}}000000{Anc{}}0000000000000{c{{B`{Ab}}}Bb}{c{{B`{Ad}}}Bb}{c{{B`{Af}}}Bb}{c{{B`{Aj}}}Bb}{AnAl}000000{{Ahd{h{f}}}{{j{f}}}}{{Ahff}Ah}{{nBd}Bf}{{A`Bd}Bf}{{AbBd}Bf}0{{AdBd}Bf}0{{AfBd}Bf}0{{AhBd}Bf}0{{AjBd}Bf}0{cc{}}000000{ce{}{}}000000{{AjBh}{{Bj{`}}}}{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ptimalSupportPoint",5],[5,"ErrorModel",12],[6,"ErrorType",12],[6,"Event",12],[5,"Occasion",12],[5,"Subject",12],[5,"Data",12],[5,"Covariates",12],[1,"unit"],[1,"usize"],[6,"Result",246],[10,"Deserializer",247],[5,"Formatter",248],[8,"Result",248],[1,"str"],[6,"Option",249],[5,"HashMap",250],[1,"bool"],[5,"Vec",251],[5,"String",252],[1,"tuple"],[5,"Path",253],[10,"Error",254],[5,"Box",255],[5,"TypeId",256],[8,"DVector",257],[5,"PopulationPredictions",196],[17,"Output"],[1,"fn"]],"b":[[81,"impl-Debug-for-Event"],[82,"impl-Display-for-Event"],[83,"impl-Debug-for-Occasion"],[84,"impl-Display-for-Occasion"],[85,"impl-Display-for-Subject"],[86,"impl-Debug-for-Subject"],[87,"impl-Debug-for-Data"],[88,"impl-Display-for-Data"],[89,"impl-Display-for-Covariates"],[90,"impl-Debug-for-Covariates"]]}]\ ]')); if (typeof exports !== 'undefined') exports.searchIndex = searchIndex; else if (window.initSearch) window.initSearch(searchIndex); diff --git a/src/pharmsol/data/parse_pmetrics.rs.html b/src/pharmsol/data/parse_pmetrics.rs.html index 93252d6..8687771 100644 --- a/src/pharmsol/data/parse_pmetrics.rs.html +++ b/src/pharmsol/data/parse_pmetrics.rs.html @@ -355,36 +355,7 @@

Files

353 354 355 -356 -357 -358 -359 -360 -361 -362 -363 -364 -365 -366 -367 -368 -369 -370 -371 -372 -373 -374 -375 -376 -377 -378 -379 -380 -381 -382 -383
use crate::data::*;
-use csv::WriterBuilder;
 use serde::de::{MapAccess, Visitor};
 use serde::{de, Deserialize, Deserializer, Serialize};
 use std::collections::HashMap;
@@ -723,34 +694,7 @@ 

Files

deserializer.deserialize_map(CovsVisitor) } -pub fn write_pmetrics_observations(data: &Data, file: &std::fs::File) { - let mut writer = WriterBuilder::new().has_headers(true).from_writer(file); - - writer - .write_record(&["id", "block", "time", "out", "outeq"]) - .unwrap(); - for subject in data.get_subjects() { - for occasion in subject.occasions() { - for event in occasion.get_events(None, None, false) { - match event { - Event::Observation(obs) => { - // Write each field individually - writer - .write_record(&[ - &subject.id, - &occasion.index.to_string(), - &obs.time.to_string(), - &obs.value.to_string(), - &obs.outeq.to_string(), - ]) - .unwrap(); - } - _ => {} - } - } - } - } -} + // #[cfg(test)] // mod tests { // use super::*; diff --git a/src/pharmsol/lib.rs.html b/src/pharmsol/lib.rs.html index 5e0f12e..cca8872 100644 --- a/src/pharmsol/lib.rs.html +++ b/src/pharmsol/lib.rs.html @@ -65,7 +65,7 @@

Files

pub mod data { pub use crate::data::{ error_model::{ErrorModel, ErrorType}, - parse_pmetrics::{read_pmetrics, write_pmetrics_observations}, + parse_pmetrics::read_pmetrics, Covariates, Data, Event, Occasion, Subject, }; }