Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjzhang committed Mar 2, 2022
1 parent d7eb7d7 commit 6511361
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/scdrs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def compute_score(
adj_prop : str, optional
Cell group annotation (e.g., cell type) in `adata.obs.columns` used for adjusting
for cell group proportions. Cells are inversely weighted by the corresponding
group size.Default is None.
group size. Default is None.
flag_filter_data : bool, optional
If to apply minimal cell and gene filtering to h5ad_file. Default is True.
flag_raw_count : bool, optional
Expand Down
1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ Examples
file_format
versions
notebooks/quickstart.ipynb
examples
downloads


4 changes: 4 additions & 0 deletions docs/reference_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ out_folder : str
:code:`<trait>` is from :code:`gs_file` file.
cov_file : str, optional
scDRS covariate :code:`.cov` file. Default is :code:`None`.
adj_prop : str, optional
Cell group annotation (e.g., cell type) in :code:`adata.obs.columns` used for adjusting
for cell group proportions. Cells are inversely weighted by the corresponding
group size. Default is :code:`None`.
flag_filter_data : bool, optional
If to apply minimal cell and gene filtering to :code:`h5ad_file`. Default is :code:`True`.
flag_raw_count : bool, optional
Expand Down
4 changes: 1 addition & 3 deletions scdrs/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def downstream_group_analysis(
mc_z = (score_q95 - v_ctrl_score_q95.mean()) / v_ctrl_score_q95.std()
df_res.loc[group, ["assoc_mcp", "assoc_mcz"]] = [mc_p, mc_z]

# Heterogeneity @Kangcheng: could you review
# Heterogeneity
df_rls = test_gearysc(
adata[cell_list], df_reg.loc[cell_list, :], groupby=group_col
)
Expand Down Expand Up @@ -904,7 +904,6 @@ def downstream_gene_analysis(
##############################################################################
##################### Subroutines for downstream analysis ####################
##############################################################################
# @Kangcheng: could you review
def test_gearysc(
adata: anndata.AnnData,
df_full_score: pd.DataFrame,
Expand Down Expand Up @@ -1028,7 +1027,6 @@ def distribution_match(v, ref):
return df_rls


# @Kangcheng: could you review
def gearys_c(adata, vals):
"""
Compute Geary's C statistics for an AnnData.
Expand Down

0 comments on commit 6511361

Please sign in to comment.