Skip to content

Commit

Permalink
get_dataset_differential_expression_analyses has keep_non_specific ar…
Browse files Browse the repository at this point in the history
…gument
  • Loading branch information
oganm committed Jul 10, 2024
1 parent 9ad44e2 commit f379415
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gemmapy/gemmapy_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,8 @@ def make_anndata(pack):
return out

def get_differential_expression_values(self,
dataset:Optional[str|int] = None,
dataset:Optional[str|int] = None,
keep_non_specific:bool = False,
result_sets:Optional[List[str|int]] = None,
readable_contrasts:bool = False,
**kwargs)->List[DataFrame]:
Expand Down Expand Up @@ -1636,6 +1637,10 @@ def get_differential_expression_values(self,

for rs in result_sets:
df = self.__get_result_set(rs)

if not keep_non_specific:
df = df[~df.GeneSymbol.str.contains("|",regex = False,na = True)]

if readable_contrasts:
factors = pd.concat(
list(all_factors[all_factors.result_ID == rs].experimental_factors)
Expand Down

0 comments on commit f379415

Please sign in to comment.