create_manhattanplot: create_manhattanplot

Description Usage Arguments Details Value

View source: R/plots.R

Description

Function to create manhattanplot. Uses package EasyStrata - need to write 2 files: results flat text (with appropriate columns), and .ecf file which contains EasyStrata parameters.

Usage

1
2
3
4
5
6
7
8
9
create_manhattanplot(
  x,
  exposure,
  stat,
  annotation_file,
  output_dir,
  filename_suffix = "",
  sig_line = NA
)

Arguments

exposure

Exposure variable (string)

stat

GxEScan results chi-square statistic

annotation_file

File to be used for annotation. Should located in /media/work/tmp

filename_suffix

For convenience when you're creating test plots

dat

Input data

df

Degrees of freedom

Details

NOTE: using hardcoded paths to store temporary results text files, and to read annotation file. Be careful!

10/26/2020 - this might need further adjustment.. if subset analysis finds significant results, I need to output them into a data.frame

Value

Writes a .png file into location /media/work/gwis/posthoc/exposure


KimAE/figifs documentation built on March 10, 2021, 9:31 p.m.