Skip to content

Commit

Permalink
Merge pull request #557 from gagneurlab/external_hpo
Browse files Browse the repository at this point in the history
read in external hpo_file correctly from snakemake params
  • Loading branch information
vyepez88 authored Jun 21, 2024
2 parents f0ac34f + da0ca79 commit bdddf24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drop/template/Scripts/Pipeline/SampleAnnotation.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ suppressPackageStartupMessages({
})

sa <- fread(snakemake@input$sampleAnnotation)
hpo_file <- snakemake@params$hpo_file

#'
#' Number of rows and columns in the sample annotation: `r dim(sa)`
Expand Down Expand Up @@ -80,7 +81,7 @@ unique(sa[,.(RNA_ID, DROP_GROUP)])$DROP_GROUP %>% strsplit(',') %>% unlist %>%
if(!is.null(sa$HPO_TERMS) & !all(is.na(sa$HPO_TERMS)) & ! all(sa$HPO_TERMS == '')){
sa2 <- sa[, .SD[1], by = RNA_ID]

filename <- ifelse(is.null(snakemake@params$hpo_file),
filename <- ifelse(is.null(hpo_file),
'https://www.cmm.in.tum.de/public/paper/drop_analysis/resource/hpo_genes.tsv.gz',
hpo_file)
hpo_dt <- fread(filename)
Expand Down

0 comments on commit bdddf24

Please sign in to comment.