-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,452 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.10" | ||
# You can also specify other tool versions: | ||
# nodejs: "19" | ||
# rust: "1.64" | ||
# golang: "1.19" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- doc |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog][], | ||
and this project adheres to [Semantic Versioning][]. | ||
|
||
[keep a changelog]: https://keepachangelog.com/en/1.0.0/ | ||
[semantic versioning]: https://semver.org/spec/v2.0.0.html | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
|
||
- Basic tool, preprocessing and plotting functions |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# API | ||
|
||
## SCANVIDeep | ||
|
||
```{eval-rst} | ||
.. currentmodule:: scanvi_explainer | ||
``` | ||
|
||
```{eval-rst} | ||
.. autosummary:: | ||
:toctree: generated | ||
:nosignatures: | ||
scanvi_deep | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```{include} ../CHANGELOG.md | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
|
||
# This file only contains a selection of the most common options. For a full | ||
# list see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Path setup -------------------------------------------------------------- | ||
import sys | ||
from datetime import datetime | ||
from importlib.metadata import metadata | ||
from pathlib import Path | ||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
# NOTE: If you installed your project in editable mode, this might be stale. | ||
# If this is the case, reinstall it to refresh the metadata | ||
info = metadata("scanvi-explainer") | ||
project_name = info["Name"] | ||
|
||
author = ", ".join([x.split("<")[0].strip() for x in info["Author-email"].split(",")]) | ||
copyright = f"{datetime.now():%Y}, {author}." | ||
version = info["Version"] | ||
urls = dict(pu.split(", ") for pu in info.get_all("Project-URL")) | ||
repository_url = urls["Homepage"] | ||
|
||
# The full version, including alpha/beta/rc tags | ||
release = info["Version"] | ||
|
||
bibtex_bibfiles = ["references.bib"] | ||
templates_path = ["_templates"] | ||
nitpicky = True # Warn about broken links | ||
needs_sphinx = "4.0" | ||
|
||
html_context = { | ||
"display_github": True, # Integrate GitHub | ||
"github_user": "brickmanlab", | ||
"github_repo": project_name, | ||
"github_version": "master", | ||
"conf_py_path": "/docs/", | ||
} | ||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. | ||
# They can be extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. | ||
extensions = [ | ||
"myst_nb", | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.intersphinx", | ||
"sphinx.ext.autosummary", | ||
"sphinx.ext.napoleon", | ||
"sphinxcontrib.bibtex", | ||
"sphinx.ext.mathjax", | ||
"IPython.sphinxext.ipython_console_highlighting", | ||
] | ||
|
||
autosummary_generate = True | ||
autodoc_member_order = "groupwise" | ||
default_role = "literal" | ||
napoleon_google_docstring = False | ||
napoleon_numpy_docstring = True | ||
napoleon_include_init_with_doc = False | ||
napoleon_use_rtype = True # having a separate entry generally helps readability | ||
napoleon_use_param = True | ||
myst_heading_anchors = 6 # create anchors for h1-h6 | ||
myst_enable_extensions = [ | ||
"amsmath", | ||
"colon_fence", | ||
"deflist", | ||
"dollarmath", | ||
"html_image", | ||
"html_admonition", | ||
] | ||
myst_url_schemes = ("http", "https", "mailto") | ||
nb_output_stderr = "remove" | ||
nb_execution_mode = "off" | ||
nb_merge_streams = True | ||
typehints_defaults = "braces" | ||
|
||
source_suffix = { | ||
".rst": "restructuredtext", | ||
".ipynb": "myst-nb", | ||
".myst": "myst-nb", | ||
} | ||
|
||
intersphinx_mapping = { | ||
"python": ("https://docs.python.org/3", None), | ||
"anndata": ("https://anndata.readthedocs.io/en/stable/", None), | ||
"scanpy": ("https://scanpy.readthedocs.io/en/stable/", None), | ||
"numpy": ("https://numpy.org/doc/stable/", None), | ||
} | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# This pattern also affects html_static_path and html_extra_path. | ||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"] | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = "sphinx_book_theme" | ||
# html_static_path = ["_static"] | ||
# html_css_files = ["css/custom.css"] | ||
|
||
html_title = project_name | ||
|
||
html_theme_options = { | ||
"repository_url": repository_url, | ||
"use_repository_button": True, | ||
"path_to_docs": "docs/", | ||
"navigation_with_keys": False, | ||
} | ||
|
||
pygments_style = "default" | ||
|
||
nitpick_ignore = [ | ||
# If building the documentation fails because of a missing link that is outside your control, | ||
# you can add an exception to this list. | ||
# ("py:class", "igraph.Graph"), | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
scanvi\_explainer.scanvi\_deep | ||
============================== | ||
|
||
.. automodule:: scanvi_explainer.scanvi_deep | ||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
add_interim_values | ||
deeplift_grad | ||
deeplift_tensor_grad | ||
get_target_input | ||
linear_1d | ||
maxpool | ||
nonlinear_1d | ||
passthrough | ||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
|
||
SCANVIDeep | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
```{include} ../README.md | ||
``` | ||
|
||
```{toctree} | ||
:hidden: true | ||
:maxdepth: 1 | ||
api.md | ||
changelog.md | ||
notebooks/Example | ||
``` |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@article{Proks2024.02.16.580649, | ||
author = {Proks, Martin and Salehin, Nazmus and Brickman, Joshua M.}, | ||
title = {Deep Learning Based Models for Preimplantation Mouse and Human Development}, | ||
elocation-id = {2024.02.16.580649}, | ||
year = {2024}, | ||
doi = {10.1101/2024.02.16.580649}, | ||
publisher = {Cold Spring Harbor Laboratory}, | ||
URL = {https://www.biorxiv.org/content/early/2024/02/16/2024.02.16.580649}, | ||
eprint = {https://www.biorxiv.org/content/early/2024/02/16/2024.02.16.580649.full.pdf}, | ||
journal = {bioRxiv} | ||
} |
This file contains 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
Oops, something went wrong.