Stereopy integration - #48
Open
milka1g wants to merge 17 commits into
Open
Conversation
milka1g
requested review from
josicb16 and
vladimirkovacevic
and removed request for
josicb16
July 4, 2023 14:37
vladimirkovacevic
requested changes
Jul 4, 2023
| """ | ||
| stats = self.tissue.uns['cell mixtures stats'] | ||
| sc.settings.set_figure_params(dpi=300, facecolor='white') | ||
| set_figure_params(dpi=300, facecolor='white') |
Collaborator
There was a problem hiding this comment.
should it be used everywhere? Since now we have different dpis at different places in code.
| """Plot a table showing cell type abundance per cluster.""" | ||
|
|
||
| sc.settings.set_figure_params(dpi=300, facecolor='white') | ||
| set_figure_params(dpi=300, facecolor='white') |
| total = total.loc[sorted(total.index.values, key=lambda x: float(x) if x != "total_cells" else float('inf'))] | ||
|
|
||
| sc.settings.set_figure_params(dpi=300, facecolor='white') | ||
| set_figure_params(dpi=300, facecolor='white') |
| df = pd.concat(cells_in_comm_per_slice.values(), axis=1).fillna(0).mul(100).T | ||
| df = df[sorted(df.columns.values, key=lambda x: float(x) if x != "unknown" else float('inf'))] | ||
| sc.settings.set_figure_params(dpi=200, facecolor='white') | ||
| set_figure_params(dpi=200, facecolor='white') |
| fig, ax = plt.subplots(figsize=(20,10)) | ||
| fig.subplots_adjust(wspace=0) | ||
| sc.settings.set_figure_params(dpi=300, facecolor='white') | ||
| set_figure_params(dpi=300, facecolor='white') |
| axes = axes.ravel() | ||
| fig.subplots_adjust(wspace=0) | ||
| sc.settings.set_figure_params(dpi=300, facecolor='white') | ||
| set_figure_params(dpi=300, facecolor='white') |
|
|
||
| logging.info(f'main.py took {total_time:.4f}s') | ||
| logging.warning('END') | ||
| logger.info(f'main.py took {total_time:.4f}s') |
Owner
There was a problem hiding this comment.
Cell Community Detection took... instead main.py
Owner
There was a problem hiding this comment.
Add this as warning instead info
| logging.info(f'main.py took {total_time:.4f}s') | ||
| logging.warning('END') | ||
| logger.info(f'main.py took {total_time:.4f}s') | ||
| logger.warning('END') |
| scipy==1.7.3 | ||
| seaborn~=0.11.1 | ||
| anndata==0.8.0 | ||
| tqdm>=4.60.0 |
vladimirkovacevic
approved these changes
Aug 10, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removed scanpy as a dependency and used stereopy's function for calculating neighbor graph and leiden clustering. Updated functions to use AnnBasedStereoExpData and updated tutorial notebook. Using stereopy's logger and AlgorithmBase base class.