Skip to contents

PlinkSummary: Summary of PLINK format genotype dataset

Usage

PlinkSummary(DataDir, ResultDir = tempdir(), finput)

Arguments

DataDir

A character string for the file path of the input PLINK binary files.

ResultDir

A character string for the file path of the PLINK program to be set up.

finput

Character string, specifying the prefix of the input PLINK binary files. This file needs to be in DataDir.

Value

This function is called for its side effect: printing summary statistics to the console. It returns NULL invisibly.

Examples

DataDir <- GXwasR:::GXwasR_data()
ResultDir <- tempdir()
finput <- "GXwasR_example"

x <- PlinkSummary(DataDir, ResultDir, finput)
#>  Dataset: GXwasR_example
#>  Number of missing phenotypes: 0
#>  Number of males: 125
#>  Number of females: 151
#>  This is case-control data
#>  Number of cases: 108
#>  Number of controls: 168
#>  Number of cases in males: 53
#>  Number of controls in males: 72
#>  Number of cases in females: 55
#>  Number of controls in females: 96
#>  Number of chromosomes: 12
#>   - Chr: 1
#>   - Chr: 2
#>   - Chr: 3
#>   - Chr: 4
#>   - Chr: 5
#>   - Chr: 6
#>   - Chr: 7
#>   - Chr: 8
#>   - Chr: 9
#>   - Chr: 10
#>   - Chr: 23
#>   - Chr: 24
#>  Total number of SNPs: 26527
#>  Total number of samples: 276