Skip to content

Commit

Permalink
fix gene resultset processing
Browse files Browse the repository at this point in the history
  • Loading branch information
oganm committed Jul 9, 2024
1 parent 10f83f8 commit bf67802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/processors.R
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ processDifferentialExpressionAnalysisResultByGeneValueObject_tsv <- function(con
contrast_counts <- purrr::map_int(contrast_data,length)

contrast.ID <- contrast_data %>% purrr::map(function(x){
stringr::str_extract(x,'factor=[0-9:]*') %>%
stringr::str_extract(x,'factor=[0-9:]*') %>% na.omit() %>%
gsub('factor=',"",.) %>% strsplit(':') %>% purrr::map(sort) %>%
purrr::map(paste,collapse='_') %>% unlist
}) %>% unlist
Expand All @@ -1082,7 +1082,7 @@ processDifferentialExpressionAnalysisResultByGeneValueObject_tsv <- function(con
sub <- glue::glue('{property}=')

contrast_data %>% purrr::map(function(x){
stringr::str_extract(x,extract) %>%
stringr::str_extract(x,extract) %>% na.omit() %>%
gsub(sub,"",.)
}) %>% unlist %>% as.numeric
}
Expand Down

0 comments on commit bf67802

Please sign in to comment.