get.soma: Load Raw SomaLogic Proteomic Data From Text File

Description Usage Arguments Value Examples

View source: R/load-data.R View source: R/load-data copy.R

Description

This is the function to read and process raw text file proteomics data from SomaLogic. Data can provided with a label to preserve mapping from SeqId to UniProt Full Name. Study ID is preserved in the ID data column.

Usage

1
get.soma(path, labels = NULL, id = "SampleId")

Arguments

path

File path to the SomaLogic text file with protein data.

labels

Output of get.labels() function protein mapping dictionary

id

Variable name of Study Identifier in SomaLogic Text File used to map study subjects to clinical data.

Value

Tibble containing raw proteomic data for all measured subjects. Tibble will be labelled if labelling dictionary is provided. Sample ID to map to subject study id is stored in the id variable.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
labels <- get.labels('data/proteinMapping.csv', sid,
                     uniprot.full.name,
                     entrezgenesymbol,
                     flag2 == 0)

soma.data.fifth <- get.soma('data/somaV5.txt', labels = labels)
soma.data.third <- get.soma('data/somaV3.txt', labels = labels)

## End(Not run)

pranavdorbala/proteomicsHF documentation built on March 9, 2021, 12:22 a.m.