Giter VIP home page Giter VIP logo

pharmaverseadam's Introduction

pharmaverseadam

CRAN status

Test data (ADaM) for the pharmaverse family of packages

Purpose

To provide a one-stop-shop for ADaM test data in the pharmaverse family of packages.

Package Contents

The ADaM contents of this package is populated by an action that executes the {admiral}, {admiralonco}, {admiralophtha} and {admiralvaccine} templates and saves the resulting datasets here. This action can be triggered manually by the package maintainers in two scenarios:

  • Regularly, upon new releases of {admiral}, {admiralonco}, {admiralophtha} and {admiralvaccine};
  • Ad-hoc, whenever templates in the above packages have been updated but releases are far away in the calendar. In this case, the ADaM datasets are created using the development version of the templates.

Installation

The package is available from CRAN and can be installed by running install.packages("pharmaverseadam"). To install the latest development version of the package directly from GitHub use the following code:

if (!requireNamespace("remotes", quietly = TRUE)) {
  install.packages("remotes")
}

remotes::install_github("pharmaverse/pharmaverseadam", ref = "main")

pharmaverseadam's People

Contributors

actions-user avatar bms63 avatar dgrassellyb avatar gg106046 avatar kaz462 avatar manciniedoardo avatar pharmaverse-bot avatar rossfarrugia avatar sadchla-codes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pharmaverseadam's Issues

Update readme to include extension packages

          Does "{admiral} template" refer to the templates in admiral core only or does it include the templates in the extension packages {admiralonco}, {admiralophta}, {admiralvaccines}, ...?

If it includes extension packages, we may need to add something regarding the requirements for the CI/CD workflow to process them.

Originally posted by @bundfussr in #6 (comment)

CRAN package doesn't install on R 4.2.2

Background Information

@manciniedoardo @bms63 any idea when installing from CRAN using install.packages() on R 4.2.2 we get:

Warning in install.packages :
  package ‘pharmaverseadam’ is not available for this version of R

Installing latest GitHub devel version works.

Definition of Done

No response

Documentation: Add badges to website

Please select a category the issue is focused on?

No response

Let us know where something needs a refresh or put your idea here!

Add badges to website as package is now available on pharmaverse.

Bug: Some templates are not running

What happened?

Just reporting issues running templates for admiral family packages :

  • admiralonco :
    ad_adrs_basic.R :
Error in filter_joined(dataset, by_vars = subject_keys, order = order,  : 
  argument "dataset_add" is missing, with no default
Calls: %>% ... filter_joined -> assert_data_frame -> is.data.frame
In addition: Warning message:
The `filter` argument of `filter_joined()` is deprecated as of admiral 1.0.0.
ℹ Please use the `filter_join` argument instead.
ℹ The deprecated feature was likely used in the admiralonco package.
  Please report the issue at <https://github.com/pharmaverse/admiralonco/issues>. 
Execution halted

ad_adtr.R :

Error in derive_vars_joined(., dataset_add = adtr_sum, by_vars = exprs(USUBJID),  : 
  argument "join_type" is missing, with no default
Calls: %>% ... derive_vars_joined -> get_joined_data -> assert_character_scalar
Execution halted
  • admiralvaccine :
    ad_adce.R :
Error in derive_vars_joined(adce02, dataset_add = adperiods, by_vars = exprs(STUDYID,  : 
 argument "join_type" is missing, with no default
Calls: %>% ... der

ad_adface.R

Error in derive_vars_joined(adface, dataset_add = period_ref, by_vars = exprs(STUDYID,  : 
 argument "join_type" is missing, with no default
Calls: %>% ... derive_vars_joined -> get_joined_data -> assert_character_scalar
Execution halted
  • ad_adis.R
Error in derive_vars_joined(adis_crit, dataset_add = period_ref, by_vars = exprs(STUDYID,  : 
  argument "join_type" is missing, with no default
Calls: derive_var
  • ad_adsl.R
Error in library(admiral.test) : 
  there is no package called ‘admiral.test’
Execution halted

(for some of them it seems just related to the use of deprecated functions and use of admiral.test that has been decommissioned )

Session Information

No response

Reproducible Example

No response

General Issue: 1.0 release

Background Information and pre-release tasks

  • Release after admiral releases on week of 3rd June
  • update description file and changelog
  • change icon in chrome tab to package hex
  • add @sadchla-codes as developer

Definition of Done

  • devtools::release()

[Feature Request] Missing variables in the ADCM dataset

Hello,

While testing safety templates in scda.test, we found that the following variables are missing from the ADCM dataset:

  • CMENRTPT
  • ATIREL
  • ATC1, ATC2, ATC3, ATC4

If you require any further details please let me/the SME team know.

Thanks!!

ADaM BDS datasets non-compliance with the IG

Please select a category the issue is focused on?

No response

Let us know where something needs a refresh or put your idea here!

Hi,

I noticed that there are some records/values has non-compliance with the ADaM IG. Maybe I could record some issues and hope this would be useful for your work.

  1. ADSL: The label of ADSL should be "Subject-Level Analysis Dataset", not "Demographics".
  2. ADLB: PARAMCD in ("BASO", “LYMPH”)has two corresponding PARAM values.
  3. ADPC: ATPT="Pre-dose" assigned 3 different values of ATPTN(-0.5,24,48).

Documentation: Improve reference page

Please select a category the issue is focused on?

No response

Let us know where something needs a refresh or put your idea here!

Could we improve the text here, similar to what we are doing in pharmaversesdtm?
image
I'm also seeing this is titled "Function Reference" - maybe dataset reference is better?

@kaz462 @sadchla-codes tagging you both, feel free to action as appropriate

uncleaned join for the adpp data?

Several variables have .x and .y variables

> names(adpp)
 [1] "STUDYID"  "USUBJID"  "PPTESTCD" "PPTEST"   "PPCAT"    "PPORRES"  "PPORRESU" "PPSTRESU" "PPSPEC"   "PPRFDTC" 
[11] "TRTSDT.x" "TRTEDT.x" "DTHDT.x"  "EOSDT.x"  "TRT01P.x" "TRT01A.x" "ADT"      "ADY"      "PARAMCD"  "AVAL"    
[21] "AVALC"    "SRCDOM"   "SRCVAR"   "SRCSEQ"   "VISIT"    "VISITNUM" "AVISIT"   "AVISITN"  "TRTP"     "TRTA"    
[31] "AVALCA1N" "AVALCAT1" "SUBJID"   "RFSTDTC"  "RFENDTC"  "RFXSTDTC" "RFXENDTC" "RFICDTC"  "RFPENDTC" "DTHDTC"  
[41] "DTHFL"    "SITEID"   "AGE"      "AGEU"     "SEX"      "RACE"     "ETHNIC"   "ARMCD"    "ARM"      "ACTARMCD"
[51] "ACTARM"   "COUNTRY"  "DMDTC"    "DMDY"     "TRT01P.y" "TRT01A.y" "TRTSDTM"  "TRTSTMF"  "TRTEDTM"  "TRTETMF" 
[61] "TRTSDT.y" "TRTEDT.y" "TRTDURD"  "SCRFDT"   "EOSDT.y"  "EOSSTT"   "FRVDT"    "RANDDT"   "DTHDT.y"  "DTHADY"  
[71] "LDDTHELD" "LSTALVDT" "AGEGR1"   "SAFFL"    "RACEGR1"  "REGION1"  "LDDTHGR1" "DTH30FL"  "DTHA30FL" "DTHB30FL"

[feature] Missing variables in the adpp and adpc data

Dear maintainer

While we were testing templates using the pharmaverseadam data, we noticed that

  • adpc and adpp data do not have urine data,
  • avisit variable is empty
  • adpp PPCAT column only has "COMPARTMENTAL", and doesn't have any other options
  • AVALU is currently missing, consider to use derive this from PPORRESU

Many thanks for your consideration.

Documentation: Update the package icon

Please select a category the issue is focused on?

Other

Let us know where something needs a refresh or put your idea here!

Update the package icon to reflect pharmaverseadam

[Feature Request] Missing variables in ADEG and ADEX

Hello again,

While testing safety templates in scda.test, we found that the following variables are missing from the ADEG and ADEX datasets:

  • AVALU (missing from both ADEG and ADEX - if difficult, we could add this into our pre-processing steps)
  • WORS02FL (missing from ADEG)
  • PARCAT2 (missing from ADEX)

If you require any further details please let me/the SME team know.

Thanks!

Clean up variable names: remove illegal characters

adpp contains variables with suffix .x, .y
we should do a thorough check and clean up those variables @pharmaverse/admiraldata

"TRTSDT.y" "TRTEDT.y" "DTHDT.y" "EOSDT.y"  "TRT01P.y" "TRT01A.y" 
"TRTSDT.x" "TRTEDT.x" "DTHDT.x" "EOSDT.x"  "TRT01P.x" "TRT01A.x"

found this issue when I try to convert the data to .xpt file

Error: Failed to create column `TRTSDT.x`: A provided name contains an illegal character.

Create a data-driven `define-xml` from P21

generate a blank data-driven define-xml along with the Excel spec, so that we can -
2023Q4

  • apply variable labels

In the future:

  • manually enter the derivation text for each variable
  • add a column for "admiral function" used in the Variable and ValueLevel sheets
  • link some work from the following issue: pharmaverse/admiral#688

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.