mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 19:57:24 +01:00
Allow selecting the expression dataset
This commit is contained in:
parent
2f24812c90
commit
510fafeb6e
15 changed files with 110 additions and 57 deletions
12
scripts/hpa.R
Normal file
12
scripts/hpa.R
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
library(data.table)
|
||||
library(here)
|
||||
|
||||
i_am("scripts/hpa.R")
|
||||
|
||||
# Source: https://www.proteinatlas.org/download/rna_tissue_hpa.tsv.zip
|
||||
data <- fread(here("scripts", "input", "rna_tissue_hpa.tsv"))
|
||||
setnames(data, c("Gene", "Tissue", "nTPM"), c("gene", "sample", "expression"))
|
||||
data[, `:=`("Gene name" = NULL, TPM = NULL, pTPM = NULL)]
|
||||
|
||||
hpa_tissues <- ubigen::analyze(data)
|
||||
usethis::use_data(hpa_tissues, overwrite = TRUE)
|
||||
Loading…
Add table
Add a link
Reference in a new issue