Learn R Programming

TransProR (version 1.0.2)

seek_gtex_organ: Load and Process GTEX Phenotype Data to Retrieve Primary Site Counts

Description

This function reads the GTEX phenotype data from a specified path, renames its columns for better readability, and then returns a table of primary site counts.

Usage

seek_gtex_organ(path = "./download_data/GTEX_phenotype")

Value

A table representing the count of samples per primary site.

Arguments

path

The path to the GTEX phenotype data file. Default is "./download_data/GTEX_phenotype".

Examples

Run this code
# Get the file path to the example data in the package
path <- system.file("extdata", "GTEX_phenotype_test", package = "TransProR")
# Call the `seek_gtex_organ` function with the path and print the result
SeekGtexOrgan <- seek_gtex_organ(path = path)

Run the code above in your browser using DataLab