get_chromosome_list: A tools4ukbb function Function output: a list of all of the...

View source: R/get_chromosome_list.R

get_chromosome_listR Documentation

A tools4ukbb function Function output: a list of all of the files in your directory for which you have pvar and pgen pairs The chromosome pattern MUST be inbetween two underscores in your file name (ex: S2_chr2_date.pvar or S2_c2_date.pvar)

Description

A tools4ukbb function Function output: a list of all of the files in your directory for which you have pvar and pgen pairs The chromosome pattern MUST be inbetween two underscores in your file name (ex: S2_chr2_date.pvar or S2_c2_date.pvar)

Usage

get_chromosome_list(pattern, directory)

Arguments

pattern

the pattern by which you are labeling your chromosomes (eg: for files of pattern sample3_chr2_date.pvar, chromsome = "chr" OR for s1_c2_date.pvar, chromosome = "c")

directory

the directory with your pvar, pgen, and psam files

Examples

get_chromosome_list()

Lab-Jaiswal/tools4ukbb documentation built on May 12, 2022, 9:11 a.m.