read_qploidy_standardization: Read Qploidy Standardization File

View source: R/standardization.R

read_qploidy_standardizationR Documentation

Read Qploidy Standardization File

Description

This function reads a file generated by the 'standardize' function and reconstructs a 'qploidy_standardization' object. The file contains metadata, filtering information, and the standardized dataset.

Usage

read_qploidy_standardization(qploidy_standardization_file)

Arguments

qploidy_standardization_file

A string specifying the path to the file generated by the 'standardize' function. The file should be in CSV format and include metadata, filters, and data sections.

Details

The function uses the 'vroom' package to efficiently read the file in chunks. The first row contains metadata ('info'), the second row contains filtering information ('filters'), and the remaining rows contain the standardized dataset ('data').

Value

An object of class 'qploidy_standardization', which is a list containing: - 'info': A named vector of standardization parameters. - 'filters': A named vector summarizing the number of markers removed at each filtering step. - 'data': A data frame containing the standardized dataset with BAF, Z-scores, and genotype information.


Qploidy documentation built on June 8, 2025, 10 a.m.