read_fusion: Format univariate FUSION TWAS output across multiple traits...

View source: R/read_fusion.R

read_fusionR Documentation

Format univariate FUSION TWAS output across multiple traits for subsequent use in a multivariate TWAS [T-SEM]

Description

Function to format TWAS summary statistics for T-SEM

Usage

read_fusion(files,trait.names=NULL,binary=NULL,N=NULL,perm=FALSE, ...)

Arguments

files

List of FUSION files.

trait.names

What names to use when naming the beta and SE columns for each trait

binary

Vector specifying whether each trait is binary (TRUE) or continuous (FALSE)

N

The sample size to use when backing out the betas and SEs from FUSION Z-statistics. This should reflect the sum of effective sample size for binary traits

perm

Whether you want to use the permutation test p-values from FUSION. Default = FALSE

Value

The function combines and formats FUSION TWAS summary statistics for subsequent T-SEM analyses. The function returns a single data.frame.


MichelNivard/GenomicSEM documentation built on June 15, 2024, 10:41 a.m.