mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 07:28:12 +08:00
feat: diffexp returns two genesets (#2230)
* feat: return two lists for diffexp (#2221) * sp * split out derive sort order, tests passing * sp * return diff exp results in two lists * update * copy implementation over to desktop * add tests for two lists * small fixes to complete backend implementation * accept new diffexp response * map diff exp response to genesets * delete ) * name diffexp genesets with population names * take constants out of state and allow width prop to override * shorten mini-histo properly truncate and resize depending on expansion * prepend new genesets * rename data within diffexp action * backend * move diffexp ttest to common code module, update tests * update for unit tests * reference actual var Co-authored-by: Madison Dunitz <madison.dunitz@chanzuckerberg.com> Co-authored-by: Madison Dunitz <dunitzm@gmail.com>
This commit is contained in:
co-authored by
Madison Dunitz
Madison Dunitz
parent
7ed53c0f5b
commit
28b526b3fc
@@ -68,7 +68,7 @@ class DataAdaptor(metaclass=ABCMeta):
|
||||
|
||||
@abstractmethod
|
||||
def compute_embedding(self, method, filter):
|
||||
"""compute a new embedding on the specified obs subset, and return the embedding schema. """
|
||||
"""compute a new embedding on the specified obs subset, and return the embedding schema."""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
@@ -324,7 +324,12 @@ class DataAdaptor(metaclass=ABCMeta):
|
||||
):
|
||||
raise ExceedsLimitError("Diffexp request exceeds max cell count limit")
|
||||
|
||||
result = self.compute_diffexp_ttest(obs_mask_A, obs_mask_B, top_n, self.dataset_config.diffexp__lfc_cutoff)
|
||||
result = self.compute_diffexp_ttest(
|
||||
maskA=obs_mask_A,
|
||||
maskB=obs_mask_B,
|
||||
top_n=top_n,
|
||||
lfc_cutoff=self.dataset_config.diffexp__lfc_cutoff,
|
||||
)
|
||||
|
||||
try:
|
||||
return jsonify_numpy(result)
|
||||
|
||||
Reference in New Issue
Block a user