martinjzhang / scDRS

Single-cell disease relevance score (scDRS)
https://martinjzhang.github.io/scDRS/
MIT License
110 stars 15 forks source link

Gene weights #6

Closed KangchengHou closed 2 years ago

KangchengHou commented 2 years ago

Move gene set reading and processing into function scdrs.util.load_gs. This function handles

  1. Read .gs file, support both old version of gene sets or gene sets with continuous weights.
  2. Convert to homolog genes between mouse and human if needed.
  3. Overlap with the prespecified set of genes, e.g., adata.var_names if needed.

Corresponding tests are also added.