resize_to_shared_individuals_from_files: Resize the 'gcae_input_data' to only contain the shared...

View source: R/resize_to_shared_individuals_from_files.R

resize_to_shared_individuals_from_filesR Documentation

Resize the gcae_input_data to only contain the shared individuals.

Description

Resize the gcae_input_data to only contain the shared individuals.

Usage

resize_to_shared_individuals_from_files(gcae_input_filenames, verbose = FALSE)

Arguments

gcae_input_filenames

the GCAE input filenames, in the form of a list with the following elements:

  • bed_filename: path to a .bed file, as can be read by read_plink_bed_file

  • bim_filename: path to a .bim file, as can be read by read_plink_bim_file

  • fam_filename: path to a .fam file, as can be read by read_plink_fam_file

  • phe_filename: path to a .phe file, as can be read by read_plink_phe_file

  • labels_filename: path to a .csv file as can be read by read_labels_file

verbose

the verbosity of a function. Set to TRUE for more output. Use check_verbose to detect if this argument is valid.

Value

the gcae_input_data with only shared individuals

Author(s)

Richèl J.C. Bilderbeek

See Also

Related resize functions:

  • Use resize_to_shared_individuals_from_data to resize the data in in-memory data

  • Use resize_to_shared_individuals_from_files to resize the data in files

Examples

gcae_input_data <- create_test_gcae_input_data()

# Show before
summarise_gcae_input_data(gcae_input_data)

gcae_input_data <- resize_to_shared_individuals_from_data(gcae_input_data)

# Show after
summarise_gcae_input_data(gcae_input_data)

richelbilderbeek/gcaer documentation built on March 25, 2024, 3:08 p.m.