Skip to content

Iz dev#29

Merged
jwildfire merged 15 commits intomasterfrom
IZ_dev
Aug 13, 2020
Merged

Iz dev#29
jwildfire merged 15 commits intomasterfrom
IZ_dev

Conversation

@isaaczhao-alk
Copy link
Copy Markdown
Contributor

@isaaczhao-alk isaaczhao-alk commented Aug 12, 2020

  • Trimmed down ~500-1000 lines of redundant code
  • Took off colors for dots since it's non-informative and hard to distinguish. Can easily add back in if needed.
  • AE filters include seriousness, drug related, mild, moderate, severe
  • Don't think summary by "Events" is fully functional yet.
  • Need to figure out a better way to organize the UI inputs

To do:

  • Side by side comparison by gender, age, etc.
  • Animation where each frame is a decile of the entire study treatment period
  • Add "Odds Ratio". Not sure how to calculate this.
  • Add more than 2 treatment options. Perhaps side by side plots per treatment arm?

You can test app by using the dataset here: https://github.com/SafetyGraphics/volcano-plot/blob/IZ_dev/data/test_data.csv

image

Copy link
Copy Markdown
Contributor

@jwildfire jwildfire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just made a few minor tweaks for now. Will look at more detail as I work in v0.2

@@ -0,0 +1,77 @@

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed an issue to convert this to the standard data flow used in packages in the next version. See #30.

library(readr)
adae <- haven::read_xpt("https://github.com/phuse-org/phuse-scripts/raw/master/data/adam/cdisc/adae.xpt") %>% select(USUBJID, TRTEMFL, SAFFL)
adsl <- haven::read_xpt("https://github.com/phuse-org/phuse-scripts/raw/master/data/adam/cdisc/adsl.xpt")
ae = read_xpt("data/ae.xpt") %>% select(-STUDYID, -DOMAIN )
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for making this reproducible.

}


################################################################################
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just did a quick read here for now. Will dig in to the details as I sort out modularization in v0.2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job simplifying the code!

@jwildfire jwildfire merged commit 83f863c into master Aug 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants