readHLADataset: Extract HLA typing information for all samples present in a...

Description Usage Arguments Value Author(s) Examples

View source: R/parseHLADataset.R

Description

Parses a text file containing HLA allele typing for one or multiple samples and transforms it into an object. Beware that samples with at least one missing HLA type for the allele group are going to be removed.

Usage

1
readHLADataset(hlaFilePath)

Arguments

hlaFilePath

a character string, the filepath to a text file containing the information about the samples typing. The name must correspond to an existing text file. The text file must have a header.

Value

a list of class HLADataset containing the following elements:

Author(s)

Adewunmi Adelaja

Examples

1
2
3
4
5
6
7
8
9
## Get path where some HLA database files are stored
directory <- system.file("extdata", package = "HLAClustRView")
fileName <- paste0(directory, "/Samples_HLA_typing.txt")

## Parse file to extract HLA typing for all samples
ex <- readHLADataset(hlaFilePath=fileName)

## Show the output HLADataset object
print(ex)

NCBI-Hackathons/Integrating-HLA-typing-methods-and-RNA-seq documentation built on Nov. 23, 2019, 1:57 a.m.