JGASmits / AnanseSeurat

Single cell ANANSE Gene-regulatory-network analysis from Seurat objects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

config_scANANSE doesnt accept contrasts in vector form

JGASmits opened this issue · comments

Good catch @Rebecza

contrasts_vector <- c('1_0', '1_2', '1_3',)
config_scANANSE(...,
additional_contrasts = contrasts_vector)

doesnt cause the additional contrasts to be added. This is due to a 'astype == list' check that isnt optimal
This issue is prevented by either supplying a list to the current version on CRAN (CRAN version 1.1.0):

contrasts_vector <- list('3_0', '3_0', '1_0', '0_1', '2_0', '0_2', '2_6', '6_2')
config_scANANSE(...,
additional_contrasts = contrasts_vector)

It however will be updated and will also accept vectors.
These fixes will be incorporated in the next CRAN release

fixed in #8a04b0a