Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

First try at deg pred #25

Closed
wants to merge 2 commits into from
Closed

First try at deg pred #25

wants to merge 2 commits into from

Conversation

PierreBoyeau
Copy link
Collaborator

@PierreBoyeau PierreBoyeau commented Nov 28, 2022

Fixes #20

I tried something for the DEG prediction,

There are two components.

  1. The main distance computation can return a tensor of LFCs of shape (n_samples, n_samples, n_genes). Element i, j, g computes the LFC for gene g between counterfactuals for samples i and j, aggregated over all cells.
  2. This output can be used to rank genes given some binary sample metadata. To do so, we could compute the mean of the LFC for pairs of donors s1, s2, s.t. s1 has metadata 1, s_2 metadata 2

I also computed a dataframe mapping scvi sample ids to metadata covariates.

@PierreBoyeau
Copy link
Collaborator Author

there is a bug in the computation of step 2, i will correct it ASAP

@PierreBoyeau PierreBoyeau changed the title first try at deg pred [WIP]: first try at deg pred Nov 28, 2022
@codecov
Copy link

codecov bot commented Nov 28, 2022

Codecov Report

Merging #25 (0db45d3) into main (1eced8f) will increase coverage by 0.19%.
The diff coverage is 98.11%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   98.67%   98.87%   +0.19%     
==========================================
  Files           6        6              
  Lines         302      355      +53     
==========================================
+ Hits          298      351      +53     
  Misses          4        4              
Flag Coverage Δ
unittests 98.87% <98.11%> (+0.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/scvi_v2/_model.py 99.29% <98.11%> (-0.71%) ⬇️
src/scvi_v2/_module.py 97.65% <0.00%> (+0.78%) ⬆️

@PierreBoyeau PierreBoyeau changed the title [WIP]: first try at deg pred First try at deg pred Nov 29, 2022
@justjhong
Copy link
Collaborator

will this be closed for #34 ? @PierreBoyeau

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Taking counterfactual samples through to gex to rank genes
2 participants