shapeit_split: Split Shapeit files (.haps/.sample)

Description Usage Arguments Value Author(s) Examples

View source: R/shapeit_split.R

Description

Split a single dataset (.haps/.sample) by chromossome into multiple files.

Usage

1
shapeit_split(haps_file, output_dir, output_prefix)

Arguments

haps_file

Character. File name (with or without .haps extension).

output_dir

Character. Desired folder to outputs. Default set to the current folder.

output_prefix

Character. Desired name to output files after "chrX", where "X" stands by the chromosome ID. Default set to none.

Value

Multiple files from dataset splitted by chromosome unique IDs.

Author(s)

CainĂ£ Max Couto da Silva

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
dataset <- "merged.haps" # or just "merged" without .haps extension
split_haps(haps_file = dataset, output_dir = "splitted_files/", output_prefix = "_phased")

# Then, multiple files splitted by chromosomes will be created at the folder "splitted_files",
named "chrID_phased.EXT", where ID is the unique chromosome ID, and EXT is the correspoding extension (.haps/.sample)


## End(Not run)

cmcouto-silva/gt documentation built on June 6, 2021, 7:14 p.m.