Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichao25 authored Jul 12, 2024
2 parents c9fa676 + 26bc5a5 commit 1d6ba32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dynamo/plot/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ def highest_frac_genes(

if gene_annotations is None:
if gene_annotation_key in adata.var:
gene_annotations = adata.var[gene_annotation_key][selected_indices]
gene_annotations = adata.var[gene_annotation_key].iloc[selected_indices]

else:
main_warning(
Expand All @@ -930,8 +930,8 @@ def highest_frac_genes(

if gene_annotations is not None:
ax2 = ax.twiny()
ax2.set_xlim(ax.get_ylim())
ax2.set_xticks(ax.get_yticks())
ax2.set_xlim(ax.get_xlim())
ax2.set_xticks(ax.get_xticks())
ax2.set_xticks(list(range(len(gene_annotations))))
ax2.set_xticklabels(gene_annotations, rotation=v_rotation, ha="left")
ax2.set_xlabel(gene_annotation_key)
Expand Down
2 changes: 1 addition & 1 deletion dynamo/tools/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def cluster_community(
def cluster_community_from_graph(
graph=None,
graph_sparse_matrix: Union[np.ndarray, csr_matrix, None] = None,
method: Literal["leiden", "louvain"] = "louvain",
method: Literal["leiden", "louvain"] = "leiden",
directed: bool = False,
**kwargs
) -> Any:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ seaborn>=0.9.0
colorcet>=2.0.1
tqdm
igraph>=0.7.1
louvain>=0.8.0
leidenalg
pynndescent>=0.5.2
pre-commit
networkx>=2.6
Expand Down

0 comments on commit 1d6ba32

Please sign in to comment.