Skip to content

Commit

Permalink
Revert 8 spaces in function definitions in con
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Sep 24, 2024
1 parent cd60b2d commit 2ccebf5
Showing 1 changed file with 58 additions and 58 deletions.
116 changes: 58 additions & 58 deletions src/indra_cogex/client/enrichment/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@


def get_rat_scores(
path: Union[Path, str, pd.DataFrame],
gene_symbol_column_name: str,
score_column_name: str,
read_csv_kwargs: Optional[Dict[str, Any]] = None,
path: Union[Path, str, pd.DataFrame],
gene_symbol_column_name: str,
score_column_name: str,
read_csv_kwargs: Optional[Dict[str, Any]] = None,
) -> Dict[str, float]:
"""Load a differential gene expression file with rat measurements.
Expand Down Expand Up @@ -88,10 +88,10 @@ def map_rat_symbol_to_hgnc_id(rat_gene_name: str) -> Union[str, None]:


def get_mouse_scores(
path: Union[Path, str, pd.DataFrame],
gene_symbol_column_name: str,
score_column_name: str,
read_csv_kwargs: Optional[Dict[str, Any]] = None,
path: Union[Path, str, pd.DataFrame],
gene_symbol_column_name: str,
score_column_name: str,
read_csv_kwargs: Optional[Dict[str, Any]] = None,
) -> Dict[str, float]:
"""Load a differential gene expression file with mouse measurements.
Expand Down Expand Up @@ -130,10 +130,10 @@ def map_mouse_symbol_to_hgnc_id(mouse_gene_name: str) -> Union[str, None]:


def get_human_scores(
path: Union[Path, str, pd.DataFrame],
gene_symbol_column_name: str,
score_column_name: str,
read_csv_kwargs: Optional[Dict[str, Any]] = None,
path: Union[Path, str, pd.DataFrame],
gene_symbol_column_name: str,
score_column_name: str,
read_csv_kwargs: Optional[Dict[str, Any]] = None,
) -> Dict[str, float]:
"""Load a differential gene expression file with human measurements.
Expand Down Expand Up @@ -165,12 +165,12 @@ def get_human_scores(


def _get_species_scores(
path: Union[Path, str, pd.DataFrame],
gene_symbol_column_name: str,
score_column_name: str,
read_csv_kwargs: Optional[Dict[str, Any]] = None,
*,
func,
path: Union[Path, str, pd.DataFrame],
gene_symbol_column_name: str,
score_column_name: str,
read_csv_kwargs: Optional[Dict[str, Any]] = None,
*,
func,
) -> Dict[str, float]:
"""
Retrieve species-specific scores from gene expression data.
Expand Down Expand Up @@ -226,11 +226,11 @@ def _get_species_scores(

@autoclient()
def wikipathways_gsea(
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
**kwargs,
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
**kwargs,
) -> pd.DataFrame:
"""Run GSEA with WikiPathways gene sets.
Expand Down Expand Up @@ -262,11 +262,11 @@ def wikipathways_gsea(

@autoclient()
def reactome_gsea(
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
**kwargs,
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
**kwargs,
) -> pd.DataFrame:
"""Run GSEA with Reactome gene sets.
Expand Down Expand Up @@ -298,11 +298,11 @@ def reactome_gsea(

@autoclient()
def phenotype_gsea(
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
**kwargs,
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
**kwargs,
) -> pd.DataFrame:
"""Run GSEA with HPO phenotype gene sets.
Expand Down Expand Up @@ -334,11 +334,11 @@ def phenotype_gsea(

@autoclient()
def go_gsea(
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
**kwargs,
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
**kwargs,
) -> pd.DataFrame:
"""Run GSEA with gene sets for each Gene Ontology term.
Expand Down Expand Up @@ -370,13 +370,13 @@ def go_gsea(

@autoclient()
def indra_upstream_gsea(
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
minimum_evidence_count: Optional[int] = None,
minimum_belief: Optional[float] = None,
**kwargs,
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
minimum_evidence_count: Optional[int] = None,
minimum_belief: Optional[float] = None,
**kwargs,
) -> pd.DataFrame:
"""Run GSEA for each entry in the INDRA database and the set
of human genes that it regulates.
Expand Down Expand Up @@ -419,13 +419,13 @@ def indra_upstream_gsea(

@autoclient()
def indra_downstream_gsea(
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
minimum_evidence_count: Optional[int] = None,
minimum_belief: Optional[float] = None,
**kwargs,
scores: Dict[str, float],
directory: Union[None, Path, str] = None,
*,
client: Neo4jClient,
minimum_evidence_count: Optional[int] = None,
minimum_belief: Optional[float] = None,
**kwargs,
) -> pd.DataFrame:
"""Run GSEA for each entry in the INDRA database and the set
of human genes that are upstream regulators of it.
Expand Down Expand Up @@ -479,12 +479,12 @@ def indra_downstream_gsea(


def gsea(
scores: Dict[str, float],
gene_sets: Dict[Tuple[str, str], Set[str]],
directory: Union[None, Path, str] = None,
alpha: Optional[float] = None,
keep_insignificant: bool = True,
**kwargs,
scores: Dict[str, float],
gene_sets: Dict[Tuple[str, str], Set[str]],
directory: Union[None, Path, str] = None,
alpha: Optional[float] = None,
keep_insignificant: bool = True,
**kwargs,
) -> pd.DataFrame:
"""Run GSEA on pre-ranked data.
Expand Down

0 comments on commit 2ccebf5

Please sign in to comment.