Description Usage Arguments Details Value Examples
View source: R/load-data.R View source: R/load-data copy.R
This is a function to generate a dictionary to translate from SeqId to Protein Name and Entrez Gene Symbol. Output from this function is used in creating tables, figures, and labels for SeqIds. This function also requires an input for data cleaning flags. Proteins that are flagged will not be included in the final label frame.
1 | get.labels(path, term, name, gene, flag)
|
path |
File Path to SomaLogic Data Dictionary |
term |
Column Variable ID for the SeqId term |
name |
Column Variable ID for the UniProt Full Name Column |
gene |
Column Variable ID for the Entrez Gene Symbol Column |
flag |
Filtering Function for Proteins that Pass QC |
The term, name, gene, and flag functions must be provided as-is (not as strings). This is a quirk of using tidyverse and dplyr.
Tibble with columns term
for SeqId, name
for
UniProt Name, and gene
for Entrez Gene Symbol. Data Frame rownames
are set as the SeqId identifiers.
1 2 3 4 5 6 7 | ## Not run:
labels <- get.labels('data/proteinMapping.csv', sid,
uniprot.full.name,
entrezgenesymbol,
flag2 == 0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.