diff --git a/docs/_build/doctrees/citation.doctree b/docs/_build/doctrees/citation.doctree index a37dcb7..722a8ba 100644 Binary files a/docs/_build/doctrees/citation.doctree and b/docs/_build/doctrees/citation.doctree differ diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle index 74c6e78..5a26134 100644 Binary files a/docs/_build/doctrees/environment.pickle and b/docs/_build/doctrees/environment.pickle differ diff --git a/docs/_build/doctrees/factory.doctree b/docs/_build/doctrees/factory.doctree index c151e57..48b343a 100644 Binary files a/docs/_build/doctrees/factory.doctree and b/docs/_build/doctrees/factory.doctree differ diff --git a/docs/_build/doctrees/gans.doctree b/docs/_build/doctrees/gans.doctree index e431370..8051da2 100644 Binary files a/docs/_build/doctrees/gans.doctree and b/docs/_build/doctrees/gans.doctree differ diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree index afba54c..9f036ca 100644 Binary files a/docs/_build/doctrees/index.doctree and b/docs/_build/doctrees/index.doctree differ diff --git a/docs/_build/doctrees/layers.doctree b/docs/_build/doctrees/layers.doctree index 42e919e..bc60fa2 100644 Binary files a/docs/_build/doctrees/layers.doctree and b/docs/_build/doctrees/layers.doctree differ diff --git a/docs/_build/doctrees/main.doctree b/docs/_build/doctrees/main.doctree index 2b13e2a..2f6c454 100644 Binary files a/docs/_build/doctrees/main.doctree and b/docs/_build/doctrees/main.doctree differ diff --git a/docs/_build/doctrees/networks.doctree b/docs/_build/doctrees/networks.doctree index e7d71f9..f863057 100644 Binary files a/docs/_build/doctrees/networks.doctree and b/docs/_build/doctrees/networks.doctree differ diff --git a/docs/_build/doctrees/preprocessing.doctree b/docs/_build/doctrees/preprocessing.doctree index fc3080d..3baa5be 100644 Binary files a/docs/_build/doctrees/preprocessing.doctree and b/docs/_build/doctrees/preprocessing.doctree differ diff --git a/docs/_build/doctrees/sc_dataset.doctree b/docs/_build/doctrees/sc_dataset.doctree index 16e71e3..7db5171 100644 Binary files a/docs/_build/doctrees/sc_dataset.doctree and b/docs/_build/doctrees/sc_dataset.doctree differ diff --git a/docs/_build/doctrees/tfrecord_loader.doctree b/docs/_build/doctrees/tfrecord_loader.doctree index 167eb23..3ad3193 100644 Binary files a/docs/_build/doctrees/tfrecord_loader.doctree and b/docs/_build/doctrees/tfrecord_loader.doctree differ diff --git a/docs/_build/html/_modules/custom_parser.html b/docs/_build/html/_modules/custom_parser.html index 2d4aea7..1bc0d75 100644 --- a/docs/_build/html/_modules/custom_parser.html +++ b/docs/_build/html/_modules/custom_parser.html @@ -3,7 +3,7 @@ - + @@ -18,30 +18,31 @@ - - - + + + - - - - + + + + - + - - + + + - + @@ -54,7 +55,15 @@ - + + +
+ + + - + +
+ + + +
@@ -108,6 +122,7 @@
@@ -447,20 +445,6 @@

sc_dataset module

@@ -470,77 +454,8 @@

Contents

-
-

sc_dataset module#

-
-
-class sc_dataset.SCDataset(path: str | bytes | PathLike)[source]#
-

Bases: Dataset

-
-
-__init__(path: str | bytes | PathLike) None[source]#
-

Create a dataset from the h5ad processed data. Use the -preprocessing/preprocess.py script to create the h5ad train, -test, and validation files.

-
-
Parameters:
-

path (Union[str, bytes, os.PathLike]) – Path to the h5ad file.

-
-
-
- -
-
-__getitem__(index: int) Tuple[Tensor, Tensor][source]#
-
-
Parameters:
-

index (int) –

-
-
Returns:
-

Gene expression, Cluster label Tensor tuple.

-
-
Return type:
-

Tuple[torch.Tensor, torch.Tensor]

-
-
-
- -
-
-__len__() int[source]#
-
-
Returns:
-

Number of samples (cells).

-
-
Return type:
-

int

-
-
-
- -
- -
-
-sc_dataset.get_loader(file_path: str | bytes | PathLike, batch_size: int | None = None) DataLoader[source]#
-

Provides an IterableLoader over a scRNA-seq Dataset read from given h5ad file.

-
-
Parameters:
-
    -
  • file_path (Union[str, bytes, os.PathLike]) – Path to the h5ad file.

  • -
  • batch_size (Optional[int]) – Training batch size. If not specified, the entire dataset -is returned at each load.

  • -
-
-
Returns:
-

Iterable data loader over the dataset.

-
-
Return type:
-

DataLoader

-
-
-
- +
+

sc_dataset module#

@@ -579,26 +494,7 @@

Contents

- +
diff --git a/docs/_build/html/searchindex.js b/docs/_build/html/searchindex.js index b1aee43..588a847 100644 --- a/docs/_build/html/searchindex.js +++ b/docs/_build/html/searchindex.js @@ -1 +1 @@ -Search.setIndex({"docnames": ["benchmarking", "causal_gan_cfg", "citation", "custom_parser", "docker", "factory", "gans", "index", "installation", "layers", "license", "local_installation", "main", "modules", "networks", "preprocessing", "sc_dataset", "singularity", "tfrecord_loader", "tree", "tutorial"], "filenames": ["benchmarking.rst", "causal_gan_cfg.rst", "citation.rst", "custom_parser.rst", "docker.rst", "factory.rst", "gans.rst", "index.rst", "installation.rst", "layers.rst", "license.rst", "local_installation.rst", "main.rst", "modules.rst", "networks.rst", "preprocessing.rst", "sc_dataset.rst", "singularity.rst", "tfrecord_loader.rst", "tree.rst", "tutorial.rst"], "titles": ["Benchmarking", "<no title>", "Citation", "custom_parser module", "Docker Setup", "factory module", "gans package", "Welcome to GRouNdGAN\u2019s documentation!", "Installation", "layers package", "License", "Local Installation", "main module", "API References", "networks package", "preprocessing package", "sc_dataset module", "Singularity Setup", "tfrecord_loader module", "<no title>", "Tutorial"], "terms": {"experi": [1, 7, 8, 20], "output": [1, 6, 9, 14, 20], "directori": [1, 4, 6, 8, 11, 17, 20], "result": [1, 19, 20], "groundgan": [1, 2, 4, 8, 10, 11, 15, 17, 20], "devic": [1, 4, 6, 8, 9, 14, 20], "cuda": [1, 4, 6, 8, 9, 14, 17, 20], "we": [0, 1, 7, 8, 11, 14, 20], "let": [1, 7, 20], "program": [1, 3, 20], "choos": [1, 8, 20], "what": [1, 20], "i": [0, 1, 4, 5, 6, 7, 8, 9, 10, 14, 16, 18, 20], "avail": [1, 20], "checkpoint": [1, 6, 14, 20], "set": [1, 6, 8, 9, 11, 14, 20], "valu": [1, 6, 9, 18, 20], "us": [0, 1, 2, 6, 7, 9, 10, 11, 14, 15, 16, 17, 18, 20], "train": [1, 5, 6, 9, 13, 14, 16, 18, 19], "model": [1, 5, 6, 7, 20], "preprocess": [1, 7, 13, 16, 18], "10x": [0, 1, 20], "true": [1, 9, 18, 20], "raw": [1, 19, 20], "data": [0, 1, 2, 6, 7, 9, 14, 16, 18, 19, 20], "pbmc": [1, 18, 19, 20], "valid": [1, 6, 14, 16, 20], "size": [0, 1, 6, 9, 14, 16, 18, 20], "1000": [0, 1, 14, 20], "test": [1, 16, 20], "annot": [1, 20], "barcodes_annot": [1, 20], "tsv": [1, 20], "min": [1, 20], "cell": [0, 1, 2, 6, 7, 9, 14, 16, 18], "3": [0, 1, 6, 8, 9, 10, 11, 14, 20], "gene": [0, 1, 6, 7, 9, 14, 16, 18, 20], "express": [0, 1, 6, 9, 14, 16, 18, 20], "less": [1, 20], "than": [1, 6, 20], "ar": [0, 1, 6, 8, 9, 11, 14, 20], "discard": [1, 20], "10": [0, 1, 2, 7, 14, 20], "librari": [1, 9, 14, 20], "20000": [1, 6, 20], "normal": [1, 6, 9, 20], "louvain": [1, 20], "re": [1, 4, 7, 8, 9, 11, 20], "0": [1, 4, 6, 8, 9, 20], "15": [0, 1, 4, 8, 20], "cluster": [1, 6, 8, 14, 16, 18, 20], "resolut": [1, 20], "higher": [1, 20], "mean": [1, 20], "find": [1, 6, 7, 20], "more": [1, 7, 8, 10, 11, 18, 20], "smaller": [1, 20], "highli": [1, 20], "variabl": [1, 6, 14, 20], "number": [0, 1, 6, 9, 14, 16, 18, 20], "identifi": [0, 1, 20], "grn": [1, 2, 15], "prepar": [1, 20], "tf": [0, 1, 6, 14, 20], "homo_sapiens_tf": [1, 19, 20], "csv": [0, 1, 19, 20], "k": [0, 1, 20], "top": [1, 20], "most": [0, 1, 8, 20], "import": [1, 20], "per": [1, 6, 9, 14, 20], "includ": [0, 1, 4, 8, 14, 20], "infer": [0, 1, 6, 9, 14, 15, 20], "process": [1, 4, 8, 16, 19, 20], "inferred_grnboost2": [1, 20], "pbmc68k_train": [1, 20], "h5ad": [0, 1, 16, 20], "pbmc68k_valid": [1, 20], "pbmc68k_test": [1, 20], "causal": [0, 1, 2, 6, 7, 14, 15, 20], "graph": [0, 1, 6, 14, 15, 20], "causal_graph": [1, 6, 14, 20], "pkl": [1, 20], "gener": [0, 1, 2, 6, 7, 9, 10, 13, 19, 20], "10000": [1, 6, 20], "type": [0, 1, 3, 4, 5, 6, 8, 9, 14, 16, 18, 20], "gan": [1, 5, 7, 9, 13, 14, 19, 20], "nois": [1, 6, 14, 20], "1": [0, 1, 6, 8, 9, 14, 20], "depth": [1, 6, 14, 20], "width": [1, 6, 14, 20], "2": [0, 1, 6, 8, 9, 14, 20], "critic": [1, 6, 13, 20], "layer": [1, 6, 7, 13, 14, 20], "1024": [1, 20], "512": [1, 20], "256": [1, 20], "label": [0, 1, 6, 9, 13, 16, 18, 20], "2000": [1, 20], "latent": [1, 6, 14, 20], "dim": [1, 9, 20], "128": [1, 20], "vector": [1, 6, 14, 20], "dimens": [1, 6, 14, 20], "umi": [1, 20], "count": [1, 6, 9, 14, 20], "lambda": [1, 20], "regular": [1, 6, 20], "hyper": [1, 6, 20], "paramet": [1, 5, 6, 9, 14, 15, 16, 18, 20], "gradient": [1, 6, 9, 14, 20], "penalti": [1, 6, 20], "batch": [1, 6, 9, 16, 18, 20], "iter": [1, 6, 16, 18, 20], "5": [0, 1, 6, 14, 20], "each": [0, 1, 6, 9, 14, 16, 18, 20], "maximum": [1, 6, 20], "step": [1, 6, 7, 15], "1000000": [1, 20], "antilabel": [1, 20], "interv": [1, 20], "optim": [1, 6, 20], "coeffici": [1, 6, 20], "comput": [1, 4, 6, 8, 9, 20], "run": [1, 4, 6, 9, 20], "averag": [1, 6, 20], "its": [1, 4, 6, 8, 9, 14, 20], "squar": [1, 6, 20], "beta1": [1, 6, 20], "beta2": [1, 6, 20], "9": [1, 8, 11, 20], "learn": [1, 6, 20], "rate": [1, 6, 20], "initi": [1, 3, 5, 6, 9, 20], "001": [1, 20], "final": [1, 6, 14, 20], "0001": [1, 20], "log": [1, 6, 20], "summari": [1, 6, 20], "frequenc": [1, 20], "plot": [1, 6, 20], "save": [1, 6, 9, 20], "100000": [1, 20], "cc": [1, 20], "non": [0, 1, 6, 9, 14, 20], "condit": [1, 6, 9, 14, 20], "singl": [0, 1, 2, 6, 7, 9, 14, 18], "rna": [1, 2, 6, 7, 20], "seq": [0, 1, 2, 6, 7, 16, 20], "hardcod": [1, 20], "none": [1, 5, 6, 9, 14, 15, 16, 18, 20], "code": [1, 7, 20], "200000": [1, 20], "00001": [1, 20], "yazdan": [2, 7, 10], "zinati": [2, 7, 10], "abdulrahman": [2, 10], "takiddeen": [2, 7, 10], "amin": [2, 10], "emad": [2, 4, 7, 8, 10, 11], "guid": [2, 7, 8, 17, 20], "simul": [2, 7], "adversari": [2, 7, 20], "network": [0, 2, 6, 7, 9, 13, 20], "biorxiv": [2, 7], "2023": [2, 7, 10], "07": [2, 7], "http": [0, 2, 4, 8, 9, 10, 11, 20], "doi": [0, 2, 7, 20], "org": [0, 2, 9, 10, 20], "1101": [2, 7], "25": [2, 7], "550225": [2, 7], "articl": 2, "zinati2023groundgan": 2, "titl": 2, "author": 2, "journal": [0, 2], "page": [2, 7], "year": 2, "publish": [2, 10], "cold": 2, "spring": 2, "harbor": 2, "laboratori": 2, "get_configpars": [3, 13], "configpars": [3, 5, 15, 20], "sourc": [3, 5, 6, 8, 9, 11, 14, 15, 16, 18], "configur": [3, 8, 20], "read": [3, 16, 18], "config": [3, 5, 7, 15, 19], "file": [3, 5, 6, 7, 8, 11, 15, 16, 18], "cfg": [3, 5, 15, 19, 20], "ini": [3, 20], "parser": [3, 5, 15], "return": [3, 5, 6, 9, 14, 16, 18], "get_argpars": [3, 13], "argumentpars": 3, "argument": [3, 6, 9, 14, 20], "add": [3, 6], "arg": [3, 6, 9, 14], "cli": [3, 7], "argpars": 3, "prerequisit": [4, 8, 11], "befor": [4, 8, 11, 14], "you": [0, 4, 7, 8, 9, 10, 11, 17, 20], "begin": [4, 8], "make": [4, 8], "sure": [0, 4, 8], "have": [0, 4, 8, 9, 10, 11, 20], "instal": [4, 7, 17, 20], "your": [0, 4, 8, 9, 10, 11, 17, 20], "machin": [4, 8], "can": [4, 6, 7, 8, 9, 10, 11, 14, 17, 18, 20], "download": [4, 8, 20], "offici": [4, 8], "websit": [4, 8], "get": [4, 6, 8, 11], "start": [4, 8, 17, 20], "pull": [0, 4, 8, 17], "hub": [4, 8, 17], "yazdanz": [4, 8, 17], "4b98686": [4, 8, 17], "contain": [0, 4, 5, 6, 9, 14, 15, 18, 20], "pass": [4, 8, 9, 14, 18], "all": [4, 8, 9, 14, 20], "bin": [4, 8, 11], "bash": [4, 8, 20], "The": [0, 4, 6, 8, 9, 14, 17, 18, 20], "flag": [4, 8, 17, 20], "enabl": [4, 8, 17], "support": [4, 6, 8, 9, 14, 20], "within": [4, 8, 9, 17], "omit": [4, 8], "intend": [0, 4, 8, 9], "cpu": [4, 6, 8, 9, 14], "onli": [4, 6, 8, 9, 14, 20], "allow": [4, 8], "an": [0, 4, 6, 7, 8, 9, 14, 16, 17, 18, 20], "interact": [4, 8, 17], "termin": [4, 8], "session": [4, 8, 17], "now": [4, 6, 8, 11], "insid": [4, 8, 17, 20], "readi": [4, 8, 11], "clone": [4, 8, 11], "repositori": [0, 4, 7, 8, 11], "git": [4, 8, 11, 19, 20], "github": [0, 4, 7, 8, 11, 19, 20], "com": [4, 8, 11], "combin": [4, 8, 10, 11], "lab": [4, 8, 10, 11], "navig": [4, 8, 11], "project": [4, 6, 7, 8, 11, 14], "cd": [4, 8, 11], "provid": [0, 4, 8, 16, 18, 20], "t": [0, 4, 6, 7, 8, 9, 20], "yourusernam": [4, 8], "custom": [4, 8, 9], "f": [0, 4, 8, 20], "thi": [4, 5, 6, 7, 8, 9, 14, 17, 20], "command": [4, 8, 17, 20], "tag": [4, 8], "method": [0, 4, 6, 7, 8, 9, 14, 20], "mai": [4, 8], "take": [4, 8, 9, 20], "approxim": [4, 8], "30": [4, 8], "minut": [4, 8], "depend": [4, 8, 11, 20], "system": [4, 8, 17], "": [0, 4, 6, 8, 9, 10, 14, 17, 18, 20], "perform": [4, 8, 9, 14], "itd": [4, 8], "name": [4, 6, 8, 17, 18], "recogn": [4, 8], "nvidia": [4, 8, 20], "smi": [4, 8], "should": [4, 8, 9, 10, 18, 20], "see": [4, 8, 10, 20], "detail": [4, 7, 8, 10, 11], "inform": [4, 8, 9], "about": [4, 7, 8, 20], "memori": [4, 8, 20], "usag": [4, 8, 20], "etc": [4, 8, 20], "confirm": [4, 8], "470": [4, 8], "63": [4, 8, 20], "01": [4, 8], "driver": [4, 8], "version": [4, 8, 10, 11], "11": [0, 4, 8, 20], "4": [4, 6, 8, 9, 14, 20], "persist": [4, 8], "m": [0, 4, 8, 11, 20], "bu": [4, 8], "id": [4, 8], "disp": [4, 8], "volatil": [4, 8], "uncorr": [4, 8], "ecc": [4, 8], "fan": [4, 8], "temp": [4, 8], "perf": [4, 8], "pwr": [4, 8], "cap": [4, 8], "util": [4, 8], "mig": [4, 8], "tesla": [4, 8], "v100": [4, 8], "sxm2": [4, 8], "off": [4, 8], "00000000": [4, 8], "00": [4, 8], "1e": [4, 8], "n": [0, 4, 8, 20], "33c": [4, 8], "p0": [4, 8], "41w": [4, 8], "300w": [4, 8], "0mib": [4, 8], "32480mib": [4, 8], "default": [4, 6, 8, 9, 14, 18, 20], "gi": [4, 8], "ci": [4, 8], "pid": [4, 8], "No": [4, 8], "found": [4, 8, 11], "parse_list": [5, 13], "str_list": 5, "str": [5, 6, 9, 14, 16, 18], "type_": 5, "list": [5, 6, 14, 18], "class": [0, 5, 6, 9, 14, 16], "iganfactori": [5, 13], "base": [5, 6, 9, 14, 16], "abc": [5, 6], "repres": [0, 5, 6, 9, 14, 18], "doe": 5, "keep": 5, "creat": [5, 6, 8, 11, 14, 16, 17, 18, 20], "refer": [5, 7], "__init__": [5, 6, 9, 13, 14, 16], "param": [5, 15], "abstract": 5, "get_gan": [5, 13], "instanc": [5, 9], "get_train": [5, 13], "callabl": [5, 9, 14], "function": [5, 6, 9, 14, 18], "_abc_impl": [5, 6, 13], "_abc": [5, 6], "_abc_data": [5, 6], "object": [5, 6], "ganfactori": [5, 13], "conditionalcatganfactori": [5, 13], "conditionalcatgan": [5, 6, 13], "conditionalprojganfactori": [5, 13], "conditionalprojgan": [5, 6, 13], "causalganfactori": [5, 13], "get_cc": [5, 13], "causalgan": [5, 6, 13], "get_factori": [5, 13], "kei": [5, 18, 20], "specifi": [5, 6, 9, 14, 16, 18, 20], "rais": [5, 6], "valueerror": [5, 6], "If": [0, 5, 6, 7, 8, 9, 10, 11, 16, 18, 20], "unknown": 5, "implement": [5, 9, 14, 20], "genes_no": [6, 18], "int": [6, 9, 14, 16, 18, 20], "batch_siz": [6, 16, 18], "latent_dim": 6, "noise_per_gen": [6, 14], "depth_per_gen": [6, 14], "width_per_gen": 6, "cc_latent_dim": 6, "cc_layer": 6, "cc_pretrained_checkpoint": 6, "crit_lay": 6, "dict": [6, 9, 14, 18], "labeler_lay": [6, 14], "library_s": [6, 9, 14], "todo": 6, "uniqu": 6, "dataset": [6, 7, 14, 16, 18], "space": [6, 14], "from": [0, 6, 9, 11, 14, 16, 17, 18, 20], "which": [6, 8, 9, 14, 20], "control": [6, 8, 14, 20], "sampl": [6, 14, 16, 20], "target": [0, 6, 14, 20], "scale": [6, 9, 14], "integ": [6, 14], "correspond": [0, 6, 9, 14], "neuron": [6, 9, 14], "path": [6, 16, 18, 20], "pretrain": [6, 14], "dictionari": [6, 14, 18, 20], "trn": [6, 14], "impos": [0, 6, 14, 15], "It": [6, 8, 9, 14, 20], "ha": [6, 9, 14], "follow": [6, 8, 9, 11, 14, 20], "format": [6, 14, 20], "index": [6, 7, 14, 16, 18, 20], "tf1": [6, 14, 20], "tf2": [6, 14, 20], "acycl": [6, 14], "bipartit": [6, 14, 20], "A": [0, 6, 7, 9, 10, 14, 20], "cannot": [6, 14], "regul": [0, 6, 14, 20], "anoth": [6, 14], "invalid": [6, 14], "6": [6, 8, 11, 14, 20], "also": [6, 8, 9, 11, 14, 20], "cycl": [6, 14], "exampl": [6, 9, 14], "option": [6, 9, 10, 11, 14, 16, 18, 20], "torch": [6, 9, 14, 16], "is_avail": [6, 9, 14], "els": [6, 9, 14], "total": [6, 9, 14], "_build_model": [6, 13], "instanti": 6, "_save": [6, 13], "byte": [6, 16, 18], "pathlik": [6, 16], "union": [6, 14, 16, 18], "o": [6, 16], "_load": [6, 13], "mode": [6, 9], "load": [6, 16], "pth": [6, 20], "other": [6, 9], "_train_label": [6, 13], "real_cel": 6, "tensor": [6, 9, 14, 16], "real": [6, 14, 20], "fake": [6, 14], "anti": 6, "_train_gener": [6, 13], "one": [6, 8, 9, 11, 20], "item": 6, "loss": 6, "rtype": 6, "train_fil": 6, "valid_fil": 6, "critic_it": 6, "max_step": 6, "c_lambda": 6, "float": [6, 18], "gen_alpha_0": 6, "gen_alpha_fin": 6, "crit_alpha_0": 6, "crit_alpha_fin": 6, "labeler_alpha": 6, "antilabeler_alpha": 6, "labeler_training_interv": 6, "output_dir": 6, "summary_freq": 6, "5000": 6, "plt_freq": 6, "save_feq": 6, "tfrecord": [6, 18], "after": [6, 8, 9, 14, 17], "20": [0, 6, 20], "everi": [6, 9, 20], "resum": [6, 20], "tfevent": 6, "period": 6, "between": [6, 8, 14, 17], "tensorboard": [6, 20], "sne": [6, 20], "conditionalgan": [6, 13], "gen_lay": [6, 14], "static": [6, 9, 14], "_sample_pseudo_label": [6, 13], "cluster_ratio": 6, "randomli": 6, "multinomi": 6, "distribut": [6, 10], "equal": 6, "ex": [6, 18], "occur": 6, "probabl": 6, "respect": 6, "_generate_tsne_plot": [6, 13], "valid_load": 6, "dataload": [6, 16, 18], "dure": [6, 9, 14], "num_class": [6, 9, 14], "label_ratio": 6, "concaten": 6, "ratio": 6, "_get_gradi": [6, 13], "epsilon": 6, "kwarg": [6, 9, 14], "score": 6, "interpol": 6, "uniformli": 6, "random": 6, "proport": 6, "length": [6, 14], "arbitrari": [6, 9, 14], "keyword": [6, 14], "_cat_one_hot_label": [6, 13], "hot": 6, "encod": 6, "tail": 6, "generate_cel": [6, 13], "cells_no": 6, "class_": 6, "tupl": [6, 9, 14, 16], "ndarrai": 6, "same": [6, 9], "matrix": [6, 14, 18, 20], "np": 6, "_train_crit": [6, 13], "real_label": 6, "_generate_nois": [6, 13], "given": [6, 9, 16, 18], "fill": 6, "standard": 6, "_set_exponential_lr": [6, 13], "alpha_0": 6, "alpha_fin": 6, "exponentiallr": 6, "up": [6, 8, 11], "exponenti": 6, "decai": 6, "schedul": 6, "when": [6, 18], "current_step": 6, "call": [0, 6, 9], "loop": [6, 14], "_critic_loss": [6, 13], "crit_fake_pr": 6, "crit_real_pr": 6, "gp": 6, "unweight": 6, "wgan": 6, "current": [6, 9, 18], "_generator_loss": [6, 13], "_gradient_penalti": [6, 13], "_get_load": [6, 13], "validation_fil": 6, "_add_tensorboard_graph": [6, 13], "gen_data": 6, "crit_data": 6, "input": [6, 9, 14, 20], "_update_tensorboard": [6, 13], "gen_loss": 6, "crit_loss": 6, "gen_lr": 6, "crit_lr": 6, "updat": [6, 14], "site": 7, "releas": 7, "under": [7, 10, 20], "regulatori": [0, 7, 14, 20], "implicit": [7, 20], "silico": 7, "perturb": [7, 9, 20], "To": [7, 9, 20], "out": 7, "check": 7, "our": [0, 7, 8, 11, 20], "preprint": 7, "y": [0, 7, 9, 20], "docker": [7, 19, 20], "setup": 7, "local": [7, 20], "singular": [7, 20], "tutori": 7, "outlin": 7, "demo": 7, "citat": 7, "bibtex": 7, "licens": [7, 19, 20], "here": [0, 7, 20], "help": [7, 20], "ask": 7, "ani": [7, 9, 10, 14, 20], "whether": [7, 9, 18], "thei": [7, 9], "how": 7, "softwar": [7, 10], "troubleshoot": 7, "understand": 7, "certain": 7, "concept": 7, "pleas": [0, 7, 8, 11], "don": [7, 20], "hesit": 7, "report": 7, "encount": [7, 8, 11], "issu": [0, 7, 8, 11], "glitch": 7, "unexpect": 7, "behavior": 7, "while": [7, 9], "u": 7, "know": [7, 8], "improv": 7, "reach": 7, "open": [0, 7, 20], "api": 7, "factori": [7, 13], "modul": [7, 13, 20], "packag": [7, 8, 11, 13], "main": [7, 13, 20], "custom_pars": [7, 13], "sc_dataset": [7, 13], "tfrecord_load": [7, 13], "search": 7, "There": [8, 17, 20], "multipl": [8, 11, 18, 20], "wai": 8, "prefer": 8, "requir": [8, 9, 11, 14, 19, 20], "best": 8, "suit": 8, "need": [0, 8, 9, 14, 20], "want": [8, 20], "quick": 8, "hassl": 8, "free": [0, 8, 10], "environ": [8, 11], "alreadi": [8, 17], "conveni": 8, "straightforward": 8, "further": [8, 14], "finetun": 8, "specif": [8, 11], "advantag": 8, "exactli": 8, "being": [8, 14], "ideal": 8, "fine": 8, "grain": 8, "modif": 8, "greater": 8, "over": [8, 16, 18, 20], "opt": [8, 20], "particularli": 8, "plan": 8, "foundat": [8, 10], "new": 8, "hpc": 8, "restrict": 8, "gain": 8, "root": 8, "access": [0, 8], "host": [8, 20], "secur": 8, "compat": [8, 9], "altern": 8, "container": 8, "ensur": [8, 11], "python": [8, 11, 20], "do": [8, 11, 20], "pyenv": [8, 11], "manag": [8, 11], "instruct": [8, 11], "variou": [8, 11], "platform": [8, 11], "document": [8, 11, 19, 20], "choic": [8, 11, 20], "scgan": [8, 11, 18, 19, 20], "beelin": [8, 11, 19, 20], "scdesign2": [8, 11, 19, 20], "sparsim": [8, 11, 19, 20], "submodul": [8, 11, 13], "studi": [8, 9, 11], "recurs": [8, 11], "virtual": [8, 11], "venv": [8, 11], "activ": [8, 11], "linux": [8, 11], "maco": [8, 11], "window": [8, 11], "script": [8, 11, 16, 19, 20], "txt": [8, 11, 19, 20], "pip": [8, 11], "r": [0, 8, 9, 11, 20], "fellow": [8, 11], "canadian": [8, 11], "computecanada": [8, 11, 20], "consid": [8, 11], "requirements_computecanada": [8, 11, 19, 20], "instead": [8, 9, 11, 14, 20], "sif": [8, 17], "shell": [8, 17], "nv": [8, 17], "applic": [8, 17, 20], "might": [8, 11, 17], "differ": [0, 8, 17, 20], "structur": [8, 17, 20], "permiss": [8, 17], "due": [8, 17], "bind": [8, 17], "mount": [8, 17], "approach": [8, 17], "conditionalbatchnorm": [9, 13], "num_featur": 9, "1d": 9, "dumoulin": 9, "et": [9, 14, 18, 20], "al": [9, 14, 18, 20], "2016": 9, "de": 9, "vri": 9, "2017": [9, 20], "featur": [9, 18], "e": [0, 9, 20], "distinct": 9, "forward": [9, 13, 14], "x": [0, 9], "condition": 9, "bool": [9, 14, 18], "_paramet": [9, 13, 14], "_buffer": [9, 13, 14], "_non_persistent_buffers_set": [9, 13, 14], "_backward_hook": [9, 13, 14], "_is_full_backward_hook": [9, 13, 14], "_forward_hook": [9, 13, 14], "_forward_pre_hook": [9, 13, 14], "_state_dict_hook": [9, 13, 14], "_load_state_dict_pre_hook": [9, 13, 14], "_load_state_dict_post_hook": [9, 13, 14], "_modul": [9, 13, 14], "in_": 9, "reuse_scal": 9, "fals": [9, 14, 18, 20], "complet": [9, 14, 20], "previou": [9, 20], "By": 9, "maskedlinearfunct": [9, 13], "autograd": 9, "mask": [9, 14], "weight": [9, 14, 20], "ctx": 9, "bia": 9, "oper": [9, 14], "overridden": 9, "subclass": 9, "must": [9, 20], "accept": [9, 20], "context": 9, "first": 9, "store": 9, "retriev": [9, 14], "backward": [9, 13], "directli": 9, "though": 9, "enforc": [9, 14], "either": [9, 10, 18, 20], "save_for_backward": 9, "equival": 9, "vjp": 9, "save_for_forward": 9, "jvp": 9, "grad_output": 9, "defin": [9, 20], "formula": 9, "differenti": [0, 9], "automat": 9, "alia": 9, "mani": 9, "were": 9, "w": [0, 9], "grad": 9, "just": 9, "attribut": 9, "needs_input_grad": 9, "boolean": 9, "g": [0, 9, 20], "_backward_cl": [9, 13], "maskedlinearfunctionbackward": 9, "maskedlinear": [9, 13, 14], "extens": 9, "pytorch": [9, 18], "linear": [9, 14], "thread": 9, "discuss": 9, "connect": [9, 14], "neural": 9, "3027": 9, "13": 9, "shape": [9, 14], "n_input_featur": [9, 14], "n_output_featur": [9, 14], "element": [0, 9], "declar": 9, "un": 9, "reapply_mask": [9, 13], "been": 9, "nn": [9, 14], "init": 9, "reappli": 9, "reset_paramet": [9, 13], "although": [0, 9], "recip": 9, "afterward": 9, "sinc": [9, 14], "former": 9, "care": 9, "regist": 9, "hook": 9, "latter": 9, "silent": 9, "ignor": 9, "them": [9, 20], "extra_repr": [9, 13], "extra": 9, "represent": 9, "print": 9, "own": [9, 20], "both": 9, "line": [9, 20], "multi": [9, 20], "string": 9, "copyright": 10, "c": [0, 10, 20], "redistribut": 10, "modifi": [10, 14, 18, 20], "term": 10, "gnu": 10, "affero": 10, "public": 10, "later": 10, "hope": 10, "without": 10, "warranti": 10, "even": 10, "impli": 10, "merchant": 10, "fit": 10, "FOR": 10, "particular": 10, "purpos": 10, "receiv": 10, "copi": [10, 20], "along": 10, "www": 10, "causal_gan": [13, 19, 20], "conditional_gan": [13, 19, 20], "conditional_gan_cat": 13, "conditional_gan_proj": 13, "content": 13, "cbn": 13, "lsn": [13, 14], "masked_linear": 13, "_create_crit": [13, 14], "_create_critic_block": [13, 14], "conditionalcrit": [13, 14], "conditionalcriticproj": [13, 14], "_create_gener": [13, 14], "_create_generator_block": [13, 14], "conditionalgener": [13, 14], "_create_label": [13, 14], "masked_causal_gener": 13, "causalgener": [13, 14], "freeze_causal_control": [13, 14], "grn_creation": 13, "create_grn": [13, 15, 20], "scdataset": [13, 16], "__getitem__": [13, 16], "__len__": [13, 16], "get_load": [13, 16, 18], "x_input": 14, "critic_lay": 14, "constructor": 14, "hidden": 14, "dimension": 14, "input_dim": 14, "output_dim": 14, "final_lay": 14, "sequenti": 14, "sequenc": 14, "block": 14, "relu": 14, "except": 14, "indic": [14, 18, 20], "discrimin": 14, "miyato": 14, "2018": [14, 20], "marouf": [14, 18, 20], "2020": [14, 18, 20], "z_input": 14, "output_cells_dim": 14, "batchnorm": 14, "num_gen": 14, "num_tf": 14, "exclud": 14, "transcript": [0, 14, 20], "factor": 14, "deep": 14, "target_gen": 14, "regress": 14, "predict": 14, "width_scale_per_gen": 14, "causal_control": 14, "22": 14, "assum": 14, "spars": 14, "22000": 14, "remov": 14, "howev": [14, 20], "independ": 14, "In": [8, 11, 14], "case": [8, 11, 14], "would": [0, 14], "individu": [14, 20], "veri": [14, 20], "ineffici": 14, "larg": 14, "logic": 14, "done": [14, 20], "two": [0, 14, 20], "freez": 14, "disallow": 14, "grnboost2": [0, 15, 20], "construct": [15, 18, 20], "onto": [0, 15, 20], "creation": 15, "appli": 15, "py": [16, 20], "file_path": [16, 18], "iterableload": [16, 18], "scrna": [0, 16], "entir": 16, "loader": [16, 18], "split": 18, "descript": 18, "compression_typ": 18, "gzip": 18, "multi_read": 18, "get_clust": 18, "post_process": 18, "accommod": 18, "pattern": 18, "pair": [18, 20], "where": [18, 20], "determin": 18, "contribut": [0, 18], "extract": 18, "record": 18, "compress": 18, "addit": [18, 20], "gitattribut": [19, 20], "workflow": [0, 19, 20], "build": [11, 19, 20], "yml": [19, 20], "yaml": [19, 20], "gitignor": [19, 20], "gitmodul": [19, 20], "atkinson_hyperleg": [19, 20], "readm": [19, 20], "md": [19, 20], "interim": [19, 20], "bonemarrow": [19, 20], "mus_musculus_tf": [19, 20], "dockerfil": [19, 20], "doc": [19, 20], "notebook": [19, 20], "monitor": [19, 20], "sh": [19, 20], "src": [19, 20], "come": 20, "interfac": 20, "section": 20, "desir": 20, "python3": 20, "through": 20, "h": [0, 20], "benchmark": 20, "cwgan": 20, "unoffici": 20, "cscgan": 20, "appropri": 20, "essenti": [8, 11, 20], "four": 20, "hyperparamet": 20, "Or": 20, "chain": 20, "togeth": 20, "go": 20, "syntax": 20, "similar": 20, "three": 20, "consist": 20, "isn": 20, "sensit": 20, "still": 20, "advis": 20, "below": 20, "pbmc68k": 20, "imag": 20, "prepackag": 20, "unprocess": 20, "mous": [0, 20], "paul": 20, "2015": 20, "human": [0, 20], "zheng": 20, "animaltfdb": 20, "place": 20, "too": 20, "hard": 20, "curl": 20, "tar": 20, "nextcloud": 20, "ca": 20, "php": 20, "wqrcqkh5zjyymw9": 20, "demo_data": 20, "xvf": 20, "mv": 20, "rm": 20, "rf": 20, "skip": 20, "pipelin": 20, "like": [0, 20], "mtx": 20, "barcod": 20, "leav": 20, "empti": 20, "Then": 20, "onc": 20, "success": 20, "messag": 20, "moerman": [0, 20], "convert": 20, "wa": 20, "write": 20, "properti": 20, "dask": 20, "client": 20, "pars": 20, "partit": 20, "shut": 20, "down": 20, "finish": 20, "937": 20, "possibl": 20, "edg": [0, 20], "59031": 20, "14055": 20, "densiti": 20, "238095": 20, "written": 20, "For": 20, "corespond": 20, "pictur": 20, "abov": 20, "form": 20, "g2": 20, "tfn": 20, "g1": 20, "gn": 20, "g3": 20, "becom": 20, "pickl": 20, "wb": 20, "fp": 20, "dump": 20, "protocol": 20, "highest_protocol": 20, "forget": 20, "edit": 20, "direct": [0, 20], "appear": 20, "part": 20, "biolog": 20, "meaning": 20, "significantli": 20, "relationship": 20, "those": 20, "observ": 20, "deterior": 20, "qualiti": 20, "realist": 20, "datapoint": 20, "act": 20, "contradictori": 20, "task": 20, "upon": 20, "folder": 20, "state": 20, "bias": 20, "tsne": 20, "v": 20, "chang": 20, "logdir": 20, "dir": 20, "load_fast": 20, "slurm": 20, "submiss": 20, "time": 20, "primarili": 20, "five": 20, "dai": [0, 20], "dens": 20, "v100sxm2": 20, "16g": 20, "gpu": 20, "suggest": 20, "stick": 20, "avoid": 20, "excess": 20, "overhead": 20, "million": 20, "recommend": 20, "wish": 20, "One": 20, "popul": 20, "field": 20, "usual": 20, "latest": 20, "config_fil": 20, "machart": 20, "p": [0, 20], "bansal": 20, "kilian": 20, "magrud": 20, "d": [0, 20], "kreb": 20, "bonn": 20, "augment": 20, "natur": [0, 20], "commun": [0, 20], "1038": [0, 20], "s41467": 20, "019": 20, "14018": 20, "z": [0, 20], "arkin": [0, 20], "giladi": [0, 20], "jaitin": [0, 20], "kenigsberg": [0, 20], "keren": [0, 20], "shaul": [0, 20], "winter": [0, 20], "lara": [0, 20], "astiaso": [0, 20], "guri": [0, 20], "weiner": [0, 20], "david": [0, 20], "cohen": [0, 20], "lauridsen": [0, 20], "b": [0, 20], "haa": [0, 20], "schlitzer": [0, 20], "mildner": [0, 20], "ginhoux": [0, 20], "jung": [0, 20], "trumpp": [0, 20], "tanai": [0, 20], "heterogen": [0, 20], "lineag": [0, 20], "commit": [0, 20], "myeloid": [0, 20], "progenitor": [0, 20], "163": [0, 20], "7": [0, 20], "1663": [0, 20], "1677": [0, 20], "1016": [0, 20], "j": [0, 20], "013": [0, 20], "terri": [0, 20], "belgrad": [0, 20], "ryvkin": [0, 20], "bent": [0, 20], "wilson": [0, 20], "ziraldo": [0, 20], "wheeler": [0, 20], "mcdermott": [0, 20], "zhu": [0, 20], "gregori": [0, 20], "shuga": [0, 20], "montesclaro": [0, 20], "l": [0, 20], "underwood": [0, 20], "masqueli": [0, 20], "nishimura": [0, 20], "schnall": [0, 20], "levin": [0, 20], "wyatt": [0, 20], "hindson": [0, 20], "biela": [0, 20], "massiv": [0, 20], "parallel": [0, 20], "digit": [0, 20], "profil": [0, 20], "8": [0, 20], "ncomms14049": [0, 20], "aibar": [0, 20], "gonz\u00e1lez": [0, 20], "bla": [0, 20], "simm": [0, 20], "moreau": [0, 20], "aert": [0, 20], "arboreto": [0, 20], "effici": [0, 20], "scalabl": [0, 20], "bioinformat": [0, 20], "35": [0, 20], "12": [0, 20], "2159": [0, 20], "2161": [0, 20], "1093": [0, 20], "bty916": [0, 20], "row": 0, "column": 0, "ground": 0, "truth": 0, "100k": 0, "experiment": 0, "potenti": 0, "manner": 0, "feel": 0, "reduc": 0, "fewer": 0, "hematopoiet": 0, "stem": 0, "bone": 0, "marrow": 0, "geo": 0, "gse72857": 0, "peripher": 0, "blood": 0, "mononuclear": 0, "donor": 0, "genom": 0, "common": 0, "cd8": 0, "cytotox": 0, "hspc": 0, "toward": 0, "gse107727": 0, "well": 0, "microenviron": 0, "fresh": 0, "core": 0, "needl": 0, "biopsi": 0, "follicular": 0, "lymphoma": 0, "patient": 0, "cellxgen": 0, "eager": 0, "grow": 0, "welcom": 0, "submit": 0, "Be": 0, "link": 0, "collect": 0, "encourag": 0, "hamei": 0, "pijuan": 0, "sala": 0, "shepherd": 0, "lau": 0, "nestorowa": 0, "landscap": 0, "resolv": 0, "trajectori": 0, "defect": 0, "kit": 0, "mutant": 0, "mice": 0, "american": 0, "societi": 0, "hematologi": 0, "131": 0, "21": 0, "e1": 0, "e11": 0, "deng": 0, "q": 0, "marqu": 0, "piubelli": 0, "dang": 0, "ma": 0, "green": 0, "characterist": 0, "associ": 0, "mutat": 0, "mhc": 0, "ii": 0, "cancer": 0, "discoveri": 0, "428": 0, "443": 0, "virtualenv": [8, 11], "known": [8, 11], "ubuntu": [8, 11], "becaus": [8, 11], "miss": [8, 11], "sudo": [8, 11], "apt": [8, 11], "libffi": [8, 11], "dev": [8, 11], "zlib1g": [8, 11], "libncurses5": [8, 11], "libgdbm": [8, 11], "libnss3": [8, 11], "libssl": [8, 11], "libreadlin": [8, 11], "libsqlite3": [8, 11], "libpng": [8, 11], "libjpeg": [8, 11], "libbz2": [8, 11], "liblzma": [8, 11], "tk": [8, 11]}, "objects": {"": [[3, 0, 0, "-", "custom_parser"], [5, 0, 0, "-", "factory"], [6, 0, 0, "-", "gans"], [9, 0, 0, "-", "layers"], [12, 0, 0, "-", "main"], [14, 0, 0, "-", "networks"], [15, 0, 0, "-", "preprocessing"], [16, 0, 0, "-", "sc_dataset"], [18, 0, 0, "-", "tfrecord_loader"]], "custom_parser": [[3, 1, 1, "", "get_argparser"], [3, 1, 1, "", "get_configparser"]], "factory": [[5, 2, 1, "", "CausalGANFactory"], [5, 2, 1, "", "ConditionalCatGANFactory"], [5, 2, 1, "", "ConditionalProjGANFactory"], [5, 2, 1, "", "GANFactory"], [5, 2, 1, "", "IGANFactory"], [5, 1, 1, "", "get_factory"], [5, 1, 1, "", "parse_list"]], "factory.CausalGANFactory": [[5, 3, 1, "", "_abc_impl"], [5, 4, 1, "", "get_cc"], [5, 4, 1, "", "get_gan"], [5, 4, 1, "", "get_trainer"]], "factory.ConditionalCatGANFactory": [[5, 3, 1, "", "_abc_impl"], [5, 4, 1, "", "get_gan"], [5, 4, 1, "", "get_trainer"]], "factory.ConditionalProjGANFactory": [[5, 3, 1, "", "_abc_impl"], [5, 4, 1, "", "get_gan"], [5, 4, 1, "", "get_trainer"]], "factory.GANFactory": [[5, 3, 1, "", "_abc_impl"], [5, 4, 1, "", "get_gan"], [5, 4, 1, "", "get_trainer"]], "factory.IGANFactory": [[5, 4, 1, "", "__init__"], [5, 3, 1, "", "_abc_impl"], [5, 4, 1, "", "get_gan"], [5, 4, 1, "", "get_trainer"]], "gans": [[6, 0, 0, "-", "causal_gan"], [6, 0, 0, "-", "conditional_gan"], [6, 0, 0, "-", "conditional_gan_cat"], [6, 0, 0, "-", "conditional_gan_proj"], [6, 0, 0, "-", "gan"]], "gans.causal_gan": [[6, 2, 1, "", "CausalGAN"]], "gans.causal_gan.CausalGAN": [[6, 4, 1, "", "__init__"], [6, 4, 1, "", "_build_model"], [6, 4, 1, "", "_load"], [6, 4, 1, "", "_save"], [6, 4, 1, "", "_train_generator"], [6, 4, 1, "", "_train_labelers"], [6, 4, 1, "", "train"]], "gans.conditional_gan": [[6, 2, 1, "", "ConditionalGAN"]], "gans.conditional_gan.ConditionalGAN": [[6, 3, 1, "", "_abc_impl"], [6, 4, 1, "", "_generate_tsne_plot"], [6, 4, 1, "", "_sample_pseudo_labels"]], "gans.conditional_gan_cat": [[6, 2, 1, "", "ConditionalCatGAN"]], "gans.conditional_gan_cat.ConditionalCatGAN": [[6, 4, 1, "", "__init__"], [6, 3, 1, "", "_abc_impl"], [6, 4, 1, "", "_build_model"], [6, 4, 1, "", "_cat_one_hot_labels"], [6, 4, 1, "", "_get_gradient"], [6, 4, 1, "", "_train_critic"], [6, 4, 1, "", "_train_generator"], [6, 4, 1, "", "generate_cells"]], "gans.conditional_gan_proj": [[6, 2, 1, "", "ConditionalProjGAN"]], "gans.conditional_gan_proj.ConditionalProjGAN": [[6, 4, 1, "", "__init__"], [6, 3, 1, "", "_abc_impl"], [6, 4, 1, "", "_build_model"], [6, 4, 1, "", "_get_gradient"], [6, 4, 1, "", "_train_critic"], [6, 4, 1, "", "_train_generator"], [6, 4, 1, "", "generate_cells"]], "gans.gan": [[6, 2, 1, "", "GAN"]], "gans.gan.GAN": [[6, 4, 1, "", "__init__"], [6, 4, 1, "", "_add_tensorboard_graph"], [6, 4, 1, "", "_build_model"], [6, 4, 1, "", "_critic_loss"], [6, 4, 1, "", "_generate_noise"], [6, 4, 1, "", "_generate_tsne_plot"], [6, 4, 1, "", "_generator_loss"], [6, 4, 1, "", "_get_gradient"], [6, 4, 1, "", "_get_loaders"], [6, 4, 1, "", "_gradient_penalty"], [6, 4, 1, "", "_load"], [6, 4, 1, "", "_save"], [6, 4, 1, "", "_set_exponential_lr"], [6, 4, 1, "", "_train_critic"], [6, 4, 1, "", "_train_generator"], [6, 4, 1, "", "_update_tensorboard"], [6, 4, 1, "", "generate_cells"], [6, 4, 1, "", "train"]], "layers": [[9, 0, 0, "-", "cbn"], [9, 0, 0, "-", "lsn"], [9, 0, 0, "-", "masked_linear"]], "layers.cbn": [[9, 2, 1, "", "ConditionalBatchNorm"]], "layers.cbn.ConditionalBatchNorm": [[9, 4, 1, "", "__init__"], [9, 3, 1, "", "_backward_hooks"], [9, 3, 1, "", "_buffers"], [9, 3, 1, "", "_forward_hooks"], [9, 3, 1, "", "_forward_pre_hooks"], [9, 3, 1, "", "_is_full_backward_hook"], [9, 3, 1, "", "_load_state_dict_post_hooks"], [9, 3, 1, "", "_load_state_dict_pre_hooks"], [9, 3, 1, "", "_modules"], [9, 3, 1, "", "_non_persistent_buffers_set"], [9, 3, 1, "", "_parameters"], [9, 3, 1, "", "_state_dict_hooks"], [9, 4, 1, "", "forward"], [9, 3, 1, "", "training"]], "layers.lsn": [[9, 2, 1, "", "LSN"]], "layers.lsn.LSN": [[9, 4, 1, "", "__init__"], [9, 3, 1, "", "_backward_hooks"], [9, 3, 1, "", "_buffers"], [9, 3, 1, "", "_forward_hooks"], [9, 3, 1, "", "_forward_pre_hooks"], [9, 3, 1, "", "_is_full_backward_hook"], [9, 3, 1, "", "_load_state_dict_post_hooks"], [9, 3, 1, "", "_load_state_dict_pre_hooks"], [9, 3, 1, "", "_modules"], [9, 3, 1, "", "_non_persistent_buffers_set"], [9, 3, 1, "", "_parameters"], [9, 3, 1, "", "_state_dict_hooks"], [9, 4, 1, "", "forward"], [9, 3, 1, "", "training"]], "layers.masked_linear": [[9, 2, 1, "", "MaskedLinear"], [9, 2, 1, "", "MaskedLinearFunction"]], "layers.masked_linear.MaskedLinear": [[9, 4, 1, "", "__init__"], [9, 3, 1, "", "_backward_hooks"], [9, 3, 1, "", "_buffers"], [9, 3, 1, "", "_forward_hooks"], [9, 3, 1, "", "_forward_pre_hooks"], [9, 3, 1, "", "_is_full_backward_hook"], [9, 3, 1, "", "_load_state_dict_post_hooks"], [9, 3, 1, "", "_load_state_dict_pre_hooks"], [9, 3, 1, "", "_modules"], [9, 3, 1, "", "_non_persistent_buffers_set"], [9, 3, 1, "", "_parameters"], [9, 3, 1, "", "_state_dict_hooks"], [9, 4, 1, "", "extra_repr"], [9, 4, 1, "", "forward"], [9, 4, 1, "", "reapply_mask"], [9, 4, 1, "", "reset_parameters"], [9, 3, 1, "", "training"]], "layers.masked_linear.MaskedLinearFunction": [[9, 3, 1, "", "_backward_cls"], [9, 4, 1, "", "backward"], [9, 4, 1, "", "forward"]], "networks": [[14, 0, 0, "-", "critic"], [14, 0, 0, "-", "generator"], [14, 0, 0, "-", "labeler"], [14, 0, 0, "-", "masked_causal_generator"]], "networks.critic": [[14, 2, 1, "", "ConditionalCritic"], [14, 2, 1, "", "ConditionalCriticProj"], [14, 2, 1, "", "Critic"]], "networks.critic.ConditionalCritic": [[14, 4, 1, "", "__init__"], [14, 3, 1, "", "_backward_hooks"], [14, 3, 1, "", "_buffers"], [14, 4, 1, "", "_create_critic"], [14, 3, 1, "", "_forward_hooks"], [14, 3, 1, "", "_forward_pre_hooks"], [14, 3, 1, "", "_is_full_backward_hook"], [14, 3, 1, "", "_load_state_dict_post_hooks"], [14, 3, 1, "", "_load_state_dict_pre_hooks"], [14, 3, 1, "", "_modules"], [14, 3, 1, "", "_non_persistent_buffers_set"], [14, 3, 1, "", "_parameters"], [14, 3, 1, "", "_state_dict_hooks"], [14, 4, 1, "", "forward"], [14, 3, 1, "", "training"]], "networks.critic.ConditionalCriticProj": [[14, 4, 1, "", "__init__"], [14, 3, 1, "", "_backward_hooks"], [14, 3, 1, "", "_buffers"], [14, 4, 1, "", "_create_critic"], [14, 3, 1, "", "_forward_hooks"], [14, 3, 1, "", "_forward_pre_hooks"], [14, 3, 1, "", "_is_full_backward_hook"], [14, 3, 1, "", "_load_state_dict_post_hooks"], [14, 3, 1, "", "_load_state_dict_pre_hooks"], [14, 3, 1, "", "_modules"], [14, 3, 1, "", "_non_persistent_buffers_set"], [14, 3, 1, "", "_parameters"], [14, 3, 1, "", "_state_dict_hooks"], [14, 4, 1, "", "forward"], [14, 3, 1, "", "training"]], "networks.critic.Critic": [[14, 4, 1, "", "__init__"], [14, 3, 1, "", "_backward_hooks"], [14, 3, 1, "", "_buffers"], [14, 4, 1, "", "_create_critic"], [14, 4, 1, "", "_create_critic_block"], [14, 3, 1, "", "_forward_hooks"], [14, 3, 1, "", "_forward_pre_hooks"], [14, 3, 1, "", "_is_full_backward_hook"], [14, 3, 1, "", "_load_state_dict_post_hooks"], [14, 3, 1, "", "_load_state_dict_pre_hooks"], [14, 3, 1, "", "_modules"], [14, 3, 1, "", "_non_persistent_buffers_set"], [14, 3, 1, "", "_parameters"], [14, 3, 1, "", "_state_dict_hooks"], [14, 4, 1, "", "forward"], [14, 3, 1, "", "training"]], "networks.generator": [[14, 2, 1, "", "ConditionalGenerator"], [14, 2, 1, "", "Generator"]], "networks.generator.ConditionalGenerator": [[14, 4, 1, "", "__init__"], [14, 3, 1, "", "_backward_hooks"], [14, 3, 1, "", "_buffers"], [14, 4, 1, "", "_create_generator"], [14, 4, 1, "", "_create_generator_block"], [14, 3, 1, "", "_forward_hooks"], [14, 3, 1, "", "_forward_pre_hooks"], [14, 3, 1, "", "_is_full_backward_hook"], [14, 3, 1, "", "_load_state_dict_post_hooks"], [14, 3, 1, "", "_load_state_dict_pre_hooks"], [14, 3, 1, "", "_modules"], [14, 3, 1, "", "_non_persistent_buffers_set"], [14, 3, 1, "", "_parameters"], [14, 3, 1, "", "_state_dict_hooks"], [14, 4, 1, "", "forward"], [14, 3, 1, "", "training"]], "networks.generator.Generator": [[14, 4, 1, "", "__init__"], [14, 3, 1, "", "_backward_hooks"], [14, 3, 1, "", "_buffers"], [14, 4, 1, "", "_create_generator"], [14, 4, 1, "", "_create_generator_block"], [14, 3, 1, "", "_forward_hooks"], [14, 3, 1, "", "_forward_pre_hooks"], [14, 3, 1, "", "_is_full_backward_hook"], [14, 3, 1, "", "_load_state_dict_post_hooks"], [14, 3, 1, "", "_load_state_dict_pre_hooks"], [14, 3, 1, "", "_modules"], [14, 3, 1, "", "_non_persistent_buffers_set"], [14, 3, 1, "", "_parameters"], [14, 3, 1, "", "_state_dict_hooks"], [14, 4, 1, "", "forward"], [14, 3, 1, "", "training"]], "networks.labeler": [[14, 2, 1, "", "Labeler"]], "networks.labeler.Labeler": [[14, 4, 1, "", "__init__"], [14, 3, 1, "", "_backward_hooks"], [14, 3, 1, "", "_buffers"], [14, 4, 1, "", "_create_labeler"], [14, 3, 1, "", "_forward_hooks"], [14, 3, 1, "", "_forward_pre_hooks"], [14, 3, 1, "", "_is_full_backward_hook"], [14, 3, 1, "", "_load_state_dict_post_hooks"], [14, 3, 1, "", "_load_state_dict_pre_hooks"], [14, 3, 1, "", "_modules"], [14, 3, 1, "", "_non_persistent_buffers_set"], [14, 3, 1, "", "_parameters"], [14, 3, 1, "", "_state_dict_hooks"], [14, 4, 1, "", "forward"], [14, 3, 1, "", "training"]], "networks.masked_causal_generator": [[14, 2, 1, "", "CausalGenerator"]], "networks.masked_causal_generator.CausalGenerator": [[14, 4, 1, "", "__init__"], [14, 3, 1, "", "_backward_hooks"], [14, 3, 1, "", "_buffers"], [14, 4, 1, "", "_create_generator"], [14, 4, 1, "", "_create_generator_block"], [14, 4, 1, "", "_create_labeler"], [14, 3, 1, "", "_forward_hooks"], [14, 3, 1, "", "_forward_pre_hooks"], [14, 3, 1, "", "_is_full_backward_hook"], [14, 3, 1, "", "_load_state_dict_post_hooks"], [14, 3, 1, "", "_load_state_dict_pre_hooks"], [14, 3, 1, "", "_modules"], [14, 3, 1, "", "_non_persistent_buffers_set"], [14, 3, 1, "", "_parameters"], [14, 3, 1, "", "_state_dict_hooks"], [14, 4, 1, "", "forward"], [14, 4, 1, "", "freeze_causal_controller"], [14, 3, 1, "", "training"]], "preprocessing": [[15, 0, 0, "-", "grn_creation"], [15, 0, 0, "-", "preprocess"]], "preprocessing.grn_creation": [[15, 1, 1, "", "create_GRN"]], "preprocessing.preprocess": [[15, 1, 1, "", "preprocess"]], "sc_dataset": [[16, 2, 1, "", "SCDataset"], [16, 1, 1, "", "get_loader"]], "sc_dataset.SCDataset": [[16, 4, 1, "", "__getitem__"], [16, 4, 1, "", "__init__"], [16, 4, 1, "", "__len__"]], "tfrecord_loader": [[18, 1, 1, "", "get_loader"]]}, "objtypes": {"0": "py:module", "1": "py:function", "2": "py:class", "3": "py:attribute", "4": "py:method"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"], "2": ["py", "class", "Python class"], "3": ["py", "attribute", "Python attribute"], "4": ["py", "method", "Python method"]}, "titleterms": {"citat": 2, "bibtex": 2, "custom_pars": 3, "modul": [3, 5, 6, 9, 12, 14, 15, 16, 18], "docker": [4, 8, 17], "setup": [4, 8, 17], "option": [4, 8], "A": [4, 8], "us": [4, 8], "pre": [4, 8], "built": [4, 8], "imag": [4, 8, 17], "recommend": [4, 8], "b": [4, 8], "build": [4, 8], "from": [4, 8], "dockerfil": [4, 8], "verifi": [4, 8], "gpu": [4, 8], "acceler": [4, 8], "factori": 5, "gan": 6, "packag": [6, 9, 14, 15], "submodul": [6, 9, 14, 15], "causal_gan": 6, "conditional_gan": 6, "conditional_gan_cat": 6, "conditional_gan_proj": 6, "content": [6, 9, 14, 15], "welcom": 7, "groundgan": [0, 7], "": 7, "document": 7, "grn": [0, 7, 20], "infer": 7, "benchmark": [0, 7], "workflow": 7, "contact": 7, "have": 7, "question": 7, "found": 7, "bug": 7, "indic": 7, "tabl": 7, "instal": [8, 11], "local": [8, 11], "singular": [8, 17], "convert": [8, 17], "run": [8, 17], "contain": [8, 17], "layer": 9, "cbn": 9, "lsn": 9, "masked_linear": 9, "licens": 10, "main": 12, "api": 13, "refer": [0, 13, 20], "network": 14, "critic": 14, "gener": 14, "label": 14, "masked_causal_gener": 14, "preprocess": [15, 20], "grn_creation": 15, "sc_dataset": 16, "tfrecord_load": 18, "tutori": 20, "cli": 20, "config": 20, "file": 20, "project": 20, "outlin": 20, "demo": 20, "dataset": [0, 20], "step": 20, "creation": 20, "impos": 20, "custom": 20, "train": [0, 20], "In": 20, "silico": 20, "singl": 20, "cell": 20, "simul": [0, 20], "bonemarrow": 0, "paul": 0, "et": 0, "al": 0, "2015": 0, "pbmc": 0, "all": 0, "zheng": 0, "2017": 0, "ctl": 0, "dahlin": 0, "2018": 0, "tumor": 0, "han": 0, "2022": 0, "malign": 0, "help": 0, "u": 0, "expand": 0, "thi": 0, "list": 0, "request": 0, "new": 0, "troubleshoot": [8, 11]}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.todo": 2, "sphinx.ext.viewcode": 1, "sphinx.ext.intersphinx": 1, "sphinx": 57}, "alltitles": {"Citation": [[2, "citation"]], "Bibtex Citation": [[2, "bibtex-citation"]], "custom_parser module": [[3, "module-custom_parser"]], "Docker Setup": [[4, "docker-setup"], [8, "docker-setup"]], "Option A: Using Pre-built Docker Image (Recommended)": [[4, "option-a-using-pre-built-docker-image-recommended"], [8, "option-a-using-pre-built-docker-image-recommended"]], "Option B: Building Docker Image from Dockerfile": [[4, "option-b-building-docker-image-from-dockerfile"], [8, "option-b-building-docker-image-from-dockerfile"]], "Verifying GPU Acceleration": [[4, "verifying-gpu-acceleration"], [8, "verifying-gpu-acceleration"]], "factory module": [[5, "module-factory"]], "gans package": [[6, "gans-package"]], "Submodules": [[6, "submodules"], [9, "submodules"], [14, "submodules"], [15, "submodules"]], "gans.causal_gan module": [[6, "module-gans.causal_gan"]], "gans.conditional_gan module": [[6, "module-gans.conditional_gan"]], "gans.conditional_gan_cat module": [[6, "module-gans.conditional_gan_cat"]], "gans.conditional_gan_proj module": [[6, "module-gans.conditional_gan_proj"]], "gans.gan module": [[6, "module-gans.gan"]], "Module contents": [[6, "module-gans"], [9, "module-layers"], [14, "module-networks"], [15, "module-preprocessing"]], "Welcome to GRouNdGAN\u2019s documentation!": [[7, "welcome-to-groundgan-s-documentation"]], "GRN inference benchmarking workflow": [[7, null]], "Contact": [[7, "contact"]], "Have a Question or Found a Bug?": [[7, null]], "Indices and tables": [[7, "indices-and-tables"]], "layers package": [[9, "layers-package"]], "layers.cbn module": [[9, "module-layers.cbn"]], "layers.lsn module": [[9, "module-layers.lsn"]], "layers.masked_linear module": [[9, "module-layers.masked_linear"]], "License": [[10, "license"]], "main module": [[12, "module-main"]], "API References": [[13, "api-references"]], "networks package": [[14, "networks-package"]], "networks.critic module": [[14, "module-networks.critic"]], "networks.generator module": [[14, "module-networks.generator"]], "networks.labeler module": [[14, "module-networks.labeler"]], "networks.masked_causal_generator module": [[14, "module-networks.masked_causal_generator"]], "preprocessing package": [[15, "preprocessing-package"]], "preprocessing.grn_creation module": [[15, "module-preprocessing.grn_creation"]], "preprocessing.preprocess module": [[15, "module-preprocessing.preprocess"]], "sc_dataset module": [[16, "module-sc_dataset"]], "Singularity Setup": [[17, "singularity-setup"], [8, "singularity-setup"]], "Converting Docker Image to Singularity": [[17, "converting-docker-image-to-singularity"], [8, "converting-docker-image-to-singularity"]], "Running a Singularity Container": [[17, "running-a-singularity-container"], [8, "running-a-singularity-container"]], "tfrecord_loader module": [[18, "module-tfrecord_loader"]], "References": [[20, "references"], [0, "references"]], "Tutorial": [[20, "tutorial"]], "CLI": [[20, "cli"]], "Config Files": [[20, "config-files"]], "Project outline": [[20, "project-outline"]], "Demo Datasets": [[20, "demo-datasets"]], "Steps": [[20, "steps"]], "Preprocessing": [[20, "preprocessing"]], "GRN Creation": [[20, "grn-creation"]], "Imposing Custom GRNs": [[20, "imposing-custom-grns"]], "Training": [[20, "training"]], "In-silico Single-Cell Simulation": [[20, "in-silico-single-cell-simulation"]], "Benchmarking": [[0, "benchmarking"]], "Simulated datasets": [[0, "simulated-datasets"]], "BoneMarrow (Paul et al., 2015)": [[0, "bonemarrow-paul-et-al-2015"]], "PBMC-ALL (Zheng et al., 2017)": [[0, "pbmc-all-zheng-et-al-2017"]], "PBMC-CTL": [[0, "pbmc-ctl"]], "Dahlin (Dahlin et al., 2018)": [[0, "dahlin-dahlin-et-al-2018"]], "Tumor-ALL (Han et al., 2022)": [[0, "tumor-all-han-et-al-2022"]], "Tumor-malignant": [[0, "tumor-malignant"]], "Help us expand this list: request GRouNdGAN training on new GRNs and reference datasets": [[0, null]], "Installation": [[8, "installation"]], "Local Installation": [[8, "id1"], [11, "local-installation"]], "Troubleshooting": [[8, null], [11, null]]}, "indexentries": {}}) \ No newline at end of file +Search.setIndex({"docnames": ["benchmarking", "causal_gan_cfg", "citation", "custom_parser", "docker", "factory", "gans", "index", "installation", "layers", "license", "local_installation", "main", "modules", "networks", "preprocessing", "sc_dataset", "singularity", "tfrecord_loader", "tree", "tutorial"], "filenames": ["benchmarking.rst", "causal_gan_cfg.rst", "citation.rst", "custom_parser.rst", "docker.rst", "factory.rst", "gans.rst", "index.rst", "installation.rst", "layers.rst", "license.rst", "local_installation.rst", "main.rst", "modules.rst", "networks.rst", "preprocessing.rst", "sc_dataset.rst", "singularity.rst", "tfrecord_loader.rst", "tree.rst", "tutorial.rst"], "titles": ["Benchmarking", "<no title>", "Citation", "custom_parser module", "Docker Setup", "factory module", "gans package", "Welcome to GRouNdGAN\u2019s documentation!", "Installation", "layers package", "License", "Local Installation", "main module", "API References", "networks package", "preprocessing package", "sc_dataset module", "Singularity Setup", "tfrecord_loader module", "<no title>", "Tutorial"], "terms": {"experi": [1, 7, 8, 20], "output": [1, 20], "directori": [1, 4, 8, 11, 17, 20], "result": [1, 19, 20], "groundgan": [1, 2, 4, 8, 10, 11, 17, 20], "devic": [1, 4, 8, 20], "cuda": [1, 4, 8, 17, 20], "we": [0, 1, 7, 8, 11, 20], "let": [1, 7, 20], "program": [1, 3, 20], "choos": [1, 8, 20], "what": [1, 20], "i": [0, 1, 4, 7, 8, 10, 20], "avail": [1, 20], "checkpoint": [1, 20], "set": [1, 8, 11, 20], "valu": [1, 20], "us": [0, 1, 2, 7, 10, 11, 17, 20], "train": [1, 19], "model": [1, 7, 20], "preprocess": [1, 7, 13], "10x": [0, 1, 20], "true": [1, 20], "raw": [1, 19, 20], "data": [0, 1, 2, 7, 19, 20], "pbmc": [1, 19, 20], "valid": [1, 20], "size": [0, 1, 20], "1000": [0, 1, 20], "test": [1, 20], "annot": [1, 20], "barcodes_annot": [1, 20], "tsv": [1, 20], "min": [1, 20], "cell": [0, 1, 2, 7], "3": [0, 1, 8, 10, 11, 20], "gene": [0, 1, 7, 20], "express": [0, 1, 20], "less": [1, 20], "than": [1, 20], "ar": [0, 1, 8, 11, 20], "discard": [1, 20], "10": [0, 1, 2, 7, 20], "librari": [1, 20], "20000": [1, 20], "normal": [1, 20], "louvain": [1, 20], "re": [1, 4, 7, 8, 11, 20], "0": [1, 4, 8, 20], "15": [0, 1, 2, 4, 7, 8, 20], "cluster": [1, 8, 20], "resolut": [1, 20], "higher": [1, 20], "mean": [1, 20], "find": [1, 7, 20], "more": [1, 7, 8, 10, 11, 20], "smaller": [1, 20], "highli": [1, 20], "variabl": [1, 20], "number": [0, 1, 2, 20], "identifi": [0, 1, 20], "grn": [1, 2], "prepar": [1, 20], "tf": [0, 1, 20], "homo_sapiens_tf": [1, 19, 20], "csv": [0, 1, 19, 20], "k": [0, 1, 20], "top": [1, 20], "most": [0, 1, 8, 20], "import": [1, 20], "per": [1, 20], "includ": [0, 1, 4, 8, 20], "infer": [0, 1, 20], "process": [1, 4, 8, 19, 20], "inferred_grnboost2": [1, 20], "pbmc68k_train": [1, 20], "h5ad": [0, 1, 20], "pbmc68k_valid": [1, 20], "pbmc68k_test": [1, 20], "causal": [0, 1, 2, 7, 20], "graph": [0, 1, 20], "causal_graph": [1, 20], "pkl": [1, 20], "gener": [0, 1, 2, 7, 10, 13, 19, 20], "10000": [1, 20], "type": [0, 1, 3, 4, 8, 20], "gan": [1, 7, 13, 19, 20], "nois": [1, 20], "1": [0, 1, 2, 8, 20], "depth": [1, 20], "width": [1, 20], "2": [0, 1, 8, 20], "critic": [1, 13, 20], "layer": [1, 7, 13, 20], "1024": [1, 20], "512": [1, 20], "256": [1, 20], "label": [0, 1, 13, 20], "2000": [1, 20], "latent": [1, 20], "dim": [1, 20], "128": [1, 20], "vector": [1, 20], "dimens": [1, 20], "umi": [1, 20], "count": [1, 20], "lambda": [1, 20], "regular": [1, 20], "hyper": [1, 20], "paramet": [1, 15, 20], "gradient": [1, 20], "penalti": [1, 20], "batch": [1, 20], "iter": [1, 20], "5": [0, 1, 20], "each": [0, 1, 20], "maximum": [1, 20], "step": [1, 7, 15], "1000000": [1, 20], "antilabel": [1, 20], "interv": [1, 20], "optim": [1, 20], "coeffici": [1, 20], "comput": [1, 4, 8, 20], "run": [1, 4, 20], "averag": [1, 20], "its": [1, 4, 8, 20], "squar": [1, 20], "beta1": [1, 20], "beta2": [1, 20], "9": [1, 8, 11, 20], "learn": [1, 20], "rate": [1, 20], "initi": [1, 3, 20], "001": [1, 20], "final": [1, 20], "0001": [1, 20], "log": [1, 20], "summari": [1, 20], "frequenc": [1, 20], "plot": [1, 20], "save": [1, 20], "100000": [1, 20], "cc": [1, 20], "non": [0, 1, 20], "condit": [1, 20], "singl": [0, 1, 2, 7], "rna": [1, 2, 7, 20], "seq": [0, 1, 2, 7, 20], "hardcod": [1, 20], "none": [1, 15, 20], "code": [1, 7, 20], "200000": [1, 20], "00001": [1, 20], "yazdan": [2, 7, 10], "zinati": [2, 7, 10], "abdulrahman": [2, 10], "takiddeen": [2, 7, 10], "amin": [2, 10], "emad": [2, 4, 7, 8, 10, 11], "guid": [2, 7, 8, 17, 20], "simul": [2, 7], "adversari": [2, 7, 20], "network": [0, 2, 7, 13, 20], "biorxiv": [], "2023": 10, "07": [], "http": [0, 2, 4, 7, 8, 10, 11, 20], "doi": [0, 2, 7, 20], "org": [0, 2, 7, 10, 20], "1101": [], "25": [], "550225": [], "articl": 2, "zinati2023groundgan": [], "titl": 2, "author": 2, "journal": [0, 2], "page": [2, 7], "year": 2, "publish": [2, 10], "cold": [], "spring": [], "harbor": [], "laboratori": [], "get_configpars": [3, 13], "configpars": [3, 15, 20], "sourc": [3, 8, 11, 15], "configur": [3, 8, 20], "read": 3, "config": [3, 7, 15, 19], "file": [3, 7, 8, 11, 15], "cfg": [3, 15, 19, 20], "ini": [3, 20], "parser": [3, 15], "return": 3, "get_argpars": [3, 13], "argumentpars": 3, "argument": [3, 20], "add": 3, "arg": 3, "cli": [3, 7], "argpars": 3, "prerequisit": [4, 8, 11], "befor": [4, 8, 11], "you": [0, 4, 7, 8, 10, 11, 17, 20], "begin": [4, 8], "make": [4, 8], "sure": [0, 4, 8], "have": [0, 4, 8, 10, 11, 20], "instal": [4, 7, 17, 20], "your": [0, 4, 8, 10, 11, 17, 20], "machin": [4, 8], "can": [4, 7, 8, 10, 11, 17, 20], "download": [4, 8, 20], "offici": [4, 8], "websit": [4, 8], "get": [4, 8, 11], "start": [4, 8, 17, 20], "pull": [0, 4, 8, 17], "hub": [4, 8, 17], "yazdanz": [4, 8, 17], "4b98686": [4, 8, 17], "contain": [0, 4, 15, 20], "pass": [4, 8], "all": [4, 8, 20], "bin": [4, 8, 11], "bash": [4, 8, 20], "The": [0, 4, 8, 17, 20], "flag": [4, 8, 17, 20], "enabl": [4, 8, 17], "support": [4, 8, 20], "within": [4, 8, 17], "omit": [4, 8], "intend": [0, 4, 8], "cpu": [4, 8], "onli": [4, 8, 20], "allow": [4, 8], "an": [0, 4, 7, 8, 17, 20], "interact": [4, 8, 17], "termin": [4, 8], "session": [4, 8, 17], "now": [4, 8, 11], "insid": [4, 8, 17, 20], "readi": [4, 8, 11], "clone": [4, 8, 11], "repositori": [0, 4, 7, 8, 11], "git": [4, 8, 11, 19, 20], "github": [0, 4, 7, 8, 11, 19, 20], "com": [4, 8, 11], "combin": [4, 8, 10, 11], "lab": [4, 8, 10, 11], "navig": [4, 8, 11], "project": [4, 7, 8, 11], "cd": [4, 8, 11], "provid": [0, 4, 8, 20], "t": [0, 4, 7, 8, 20], "yourusernam": [4, 8], "custom": [4, 8], "f": [0, 4, 8, 20], "thi": [4, 7, 8, 17, 20], "command": [4, 8, 17, 20], "tag": [4, 8], "method": [0, 4, 7, 8, 20], "mai": [4, 8], "take": [4, 8, 20], "approxim": [4, 8], "30": [4, 8], "minut": [4, 8], "depend": [4, 8, 11, 20], "system": [4, 8, 17], "": [0, 4, 8, 10, 17, 20], "perform": [4, 8], "itd": [4, 8], "name": [4, 8, 17], "recogn": [4, 8], "nvidia": [4, 8, 20], "smi": [4, 8], "should": [4, 8, 10, 20], "see": [4, 8, 10, 20], "detail": [4, 7, 8, 10, 11], "inform": [4, 8], "about": [4, 7, 8, 20], "memori": [4, 8, 20], "usag": [4, 8, 20], "etc": [4, 8, 20], "confirm": [4, 8], "470": [4, 8], "63": [4, 8, 20], "01": [4, 8], "driver": [4, 8], "version": [4, 8, 10, 11], "11": [0, 4, 8, 20], "4": [4, 8, 20], "persist": [4, 8], "m": [0, 4, 8, 11, 20], "bu": [4, 8], "id": [4, 8], "disp": [4, 8], "volatil": [4, 8], "uncorr": [4, 8], "ecc": [4, 8], "fan": [4, 8], "temp": [4, 8], "perf": [4, 8], "pwr": [4, 8], "cap": [4, 8], "util": [4, 8], "mig": [4, 8], "tesla": [4, 8], "v100": [4, 8], "sxm2": [4, 8], "off": [4, 8], "00000000": [4, 8], "00": [4, 8], "1e": [4, 8], "n": [0, 4, 8, 20], "33c": [4, 8], "p0": [4, 8], "41w": [4, 8], "300w": [4, 8], "0mib": [4, 8], "32480mib": [4, 8], "default": [4, 8, 20], "gi": [4, 8], "ci": [4, 8], "pid": [4, 8], "No": [4, 8], "found": [4, 8, 11], "parse_list": [], "str_list": [], "str": [], "type_": [], "list": [], "class": 0, "iganfactori": [], "base": [], "abc": [], "repres": 0, "doe": [], "keep": [], "creat": [8, 11, 17, 20], "refer": 7, "__init__": [], "param": 15, "abstract": [], "get_gan": [], "instanc": [], "get_train": [], "callabl": [], "function": [], "_abc_impl": [], "_abc": [], "_abc_data": [], "object": [], "ganfactori": [], "conditionalcatganfactori": [], "conditionalcatgan": [], "conditionalprojganfactori": [], "conditionalprojgan": [], "causalganfactori": [], "get_cc": [], "causalgan": [], "get_factori": [], "kei": 20, "specifi": 20, "rais": [], "valueerror": [], "If": [0, 7, 8, 10, 11, 20], "unknown": [], "implement": 20, "genes_no": [], "int": 20, "batch_siz": [], "latent_dim": [], "noise_per_gen": [], "depth_per_gen": [], "width_per_gen": [], "cc_latent_dim": [], "cc_layer": [], "cc_pretrained_checkpoint": [], "crit_lay": [], "dict": [], "labeler_lay": [], "library_s": [], "todo": [], "uniqu": [], "dataset": 7, "space": [], "from": [0, 11, 17, 20], "which": [8, 20], "control": [8, 20], "sampl": 20, "target": [0, 20], "scale": [], "integ": [], "correspond": 0, "neuron": [], "path": 20, "pretrain": [], "dictionari": 20, "trn": [], "impos": 0, "It": [8, 20], "ha": [], "follow": [8, 11, 20], "format": 20, "index": [7, 20], "tf1": 20, "tf2": 20, "acycl": [], "bipartit": 20, "A": [0, 2, 7, 10, 20], "cannot": [], "regul": [0, 20], "anoth": [], "invalid": [], "6": [2, 7, 8, 11, 20], "also": [8, 11, 20], "cycl": [], "exampl": [], "option": [10, 11, 20], "torch": [], "is_avail": [], "els": [], "total": [], "_build_model": [], "instanti": [], "_save": [], "byte": [], "pathlik": [], "union": [], "o": [], "_load": [], "mode": [], "load": [], "pth": 20, "other": [], "_train_label": [], "real_cel": [], "tensor": [], "real": 20, "fake": [], "anti": [], "_train_gener": [], "one": [8, 11, 20], "item": [], "loss": [], "rtype": [], "train_fil": [], "valid_fil": [], "critic_it": [], "max_step": [], "c_lambda": [], "float": [], "gen_alpha_0": [], "gen_alpha_fin": [], "crit_alpha_0": [], "crit_alpha_fin": [], "labeler_alpha": [], "antilabeler_alpha": [], "labeler_training_interv": [], "output_dir": [], "summary_freq": [], "5000": [], "plt_freq": [], "save_feq": [], "tfrecord": [], "after": [8, 17], "20": [0, 20], "everi": 20, "resum": 20, "tfevent": [], "period": [], "between": [8, 17], "tensorboard": 20, "sne": 20, "conditionalgan": [], "gen_lay": [], "static": [], "_sample_pseudo_label": [], "cluster_ratio": [], "randomli": [], "multinomi": [], "distribut": 10, "equal": [], "ex": [], "occur": [], "probabl": [], "respect": [], "_generate_tsne_plot": [], "valid_load": [], "dataload": [], "dure": [], "num_class": [], "label_ratio": [], "concaten": [], "ratio": [], "_get_gradi": [], "epsilon": [], "kwarg": [], "score": [], "interpol": [], "uniformli": [], "random": [], "proport": [], "length": [], "arbitrari": [], "keyword": [], "_cat_one_hot_label": [], "hot": [], "encod": [], "tail": [], "generate_cel": [], "cells_no": [], "class_": [], "tupl": [], "ndarrai": [], "same": [], "matrix": 20, "np": [], "_train_crit": [], "real_label": [], "_generate_nois": [], "given": [], "fill": [], "standard": [], "_set_exponential_lr": [], "alpha_0": [], "alpha_fin": [], "exponentiallr": [], "up": [8, 11], "exponenti": [], "decai": [], "schedul": [], "when": [], "current_step": [], "call": 0, "loop": [], "_critic_loss": [], "crit_fake_pr": [], "crit_real_pr": [], "gp": [], "unweight": [], "wgan": [], "current": [], "_generator_loss": [], "_gradient_penalti": [], "_get_load": [], "validation_fil": [], "_add_tensorboard_graph": [], "gen_data": [], "crit_data": [], "input": 20, "_update_tensorboard": [], "gen_loss": [], "crit_loss": [], "gen_lr": [], "crit_lr": [], "updat": [], "site": 7, "releas": 7, "under": [7, 10, 20], "regulatori": [0, 7, 20], "implicit": [7, 20], "silico": 7, "perturb": [7, 20], "To": [7, 20], "out": 7, "check": 7, "our": [0, 7, 8, 11, 20], "preprint": [], "y": [0, 2, 7, 20], "docker": [7, 19, 20], "setup": 7, "local": [7, 20], "singular": [7, 20], "tutori": 7, "outlin": 7, "demo": 7, "citat": 7, "bibtex": 7, "licens": [7, 19, 20], "here": [0, 7, 20], "help": [7, 20], "ask": 7, "ani": [7, 10, 20], "whether": 7, "thei": 7, "how": 7, "softwar": [7, 10], "troubleshoot": 7, "understand": 7, "certain": 7, "concept": 7, "pleas": [0, 7, 8, 11], "don": [7, 20], "hesit": 7, "report": 7, "encount": [7, 8, 11], "issu": [0, 7, 8, 11], "glitch": 7, "unexpect": 7, "behavior": 7, "while": 7, "u": 7, "know": [7, 8], "improv": 7, "reach": 7, "open": [0, 7, 20], "api": 7, "factori": [7, 13], "modul": [7, 13, 20], "packag": [7, 8, 11, 13], "main": [7, 13, 20], "custom_pars": [7, 13], "sc_dataset": [7, 13], "tfrecord_load": [7, 13], "search": 7, "There": [8, 17, 20], "multipl": [8, 11, 20], "wai": 8, "prefer": 8, "requir": [8, 11, 19, 20], "best": 8, "suit": 8, "need": [0, 8, 20], "want": [8, 20], "quick": 8, "hassl": 8, "free": [0, 8, 10], "environ": [8, 11], "alreadi": [8, 17], "conveni": 8, "straightforward": 8, "further": 8, "finetun": 8, "specif": [8, 11], "advantag": 8, "exactli": 8, "being": 8, "ideal": 8, "fine": 8, "grain": 8, "modif": 8, "greater": 8, "over": [8, 20], "opt": [8, 20], "particularli": 8, "plan": 8, "foundat": [8, 10], "new": 8, "hpc": 8, "restrict": 8, "gain": 8, "root": 8, "access": [0, 8], "host": [8, 20], "secur": 8, "compat": 8, "altern": 8, "container": 8, "ensur": [8, 11], "python": [8, 11, 20], "do": [8, 11, 20], "pyenv": [8, 11], "manag": [8, 11], "instruct": [8, 11], "variou": [8, 11], "platform": [8, 11], "document": [8, 11, 19, 20], "choic": [8, 11, 20], "scgan": [8, 11, 19, 20], "beelin": [8, 11, 19, 20], "scdesign2": [8, 11, 19, 20], "sparsim": [8, 11, 19, 20], "submodul": [8, 11, 13], "studi": [8, 11], "recurs": [8, 11], "virtual": [8, 11], "venv": [8, 11], "activ": [8, 11], "linux": [8, 11], "maco": [8, 11], "window": [8, 11], "script": [8, 11, 19, 20], "txt": [8, 11, 19, 20], "pip": [8, 11], "r": [0, 8, 11, 20], "fellow": [8, 11], "canadian": [8, 11], "computecanada": [8, 11, 20], "consid": [8, 11], "requirements_computecanada": [8, 11, 19, 20], "instead": [8, 11, 20], "sif": [8, 17], "shell": [8, 17], "nv": [8, 17], "applic": [8, 17, 20], "might": [8, 11, 17], "differ": [0, 8, 17, 20], "structur": [8, 17, 20], "permiss": [8, 17], "due": [8, 17], "bind": [8, 17], "mount": [8, 17], "approach": [8, 17], "conditionalbatchnorm": [], "num_featur": [], "1d": [], "dumoulin": [], "et": 20, "al": 20, "2016": [], "de": [], "vri": [], "2017": 20, "featur": [], "e": [0, 20], "distinct": [], "forward": [], "x": 0, "condition": [], "bool": [], "_paramet": [], "_buffer": [], "_non_persistent_buffers_set": [], "_backward_hook": [], "_is_full_backward_hook": [], "_forward_hook": [], "_forward_pre_hook": [], "_state_dict_hook": [], "_load_state_dict_pre_hook": [], "_load_state_dict_post_hook": [], "_modul": [], "in_": [], "reuse_scal": [], "fals": 20, "complet": 20, "previou": 20, "By": [], "maskedlinearfunct": [], "autograd": [], "mask": [], "weight": 20, "ctx": [], "bia": [], "oper": [], "overridden": [], "subclass": [], "must": 20, "accept": 20, "context": [], "first": [], "store": [], "retriev": [], "backward": [], "directli": [], "though": [], "enforc": [], "either": [10, 20], "save_for_backward": [], "equival": [], "vjp": [], "save_for_forward": [], "jvp": [], "grad_output": [], "defin": 20, "formula": [], "differenti": 0, "automat": [], "alia": [], "mani": [], "were": [], "w": 0, "grad": [], "just": [], "attribut": [], "needs_input_grad": [], "boolean": [], "g": [0, 20], "_backward_cl": [], "maskedlinearfunctionbackward": [], "maskedlinear": [], "extens": [], "pytorch": [], "linear": [], "thread": [], "discuss": [], "connect": [], "neural": [], "3027": [], "13": [], "shape": [], "n_input_featur": [], "n_output_featur": [], "element": 0, "declar": [], "un": [], "reapply_mask": [], "been": [], "nn": [], "init": [], "reappli": [], "reset_paramet": [], "although": 0, "recip": [], "afterward": [], "sinc": [], "former": [], "care": [], "regist": [], "hook": [], "latter": [], "silent": [], "ignor": [], "them": 20, "extra_repr": [], "extra": [], "represent": [], "print": [], "own": 20, "both": [], "line": 20, "multi": 20, "string": [], "copyright": 10, "c": [0, 10, 20], "redistribut": 10, "modifi": [10, 20], "term": 10, "gnu": 10, "affero": 10, "public": 10, "later": 10, "hope": 10, "without": 10, "warranti": 10, "even": 10, "impli": 10, "merchant": 10, "fit": 10, "FOR": 10, "particular": 10, "purpos": 10, "receiv": 10, "copi": [10, 20], "along": 10, "www": 10, "causal_gan": [13, 19, 20], "conditional_gan": [13, 19, 20], "conditional_gan_cat": 13, "conditional_gan_proj": 13, "content": 13, "cbn": 13, "lsn": 13, "masked_linear": 13, "_create_crit": [], "_create_critic_block": [], "conditionalcrit": [], "conditionalcriticproj": [], "_create_gener": [], "_create_generator_block": [], "conditionalgener": [], "_create_label": [], "masked_causal_gener": 13, "causalgener": [], "freeze_causal_control": [], "grn_creation": 13, "create_grn": 20, "scdataset": [], "__getitem__": [], "__len__": [], "get_load": [], "x_input": [], "critic_lay": [], "constructor": [], "hidden": [], "dimension": [], "input_dim": [], "output_dim": [], "final_lay": [], "sequenti": [], "sequenc": [], "block": [], "relu": [], "except": [], "indic": 20, "discrimin": [], "miyato": [], "2018": 20, "marouf": 20, "2020": 20, "z_input": [], "output_cells_dim": [], "batchnorm": [], "num_gen": [], "num_tf": [], "exclud": [], "transcript": [0, 20], "factor": [], "deep": [], "target_gen": [], "regress": [], "predict": [], "width_scale_per_gen": [], "causal_control": [], "22": [], "assum": [], "spars": [], "22000": [], "remov": [], "howev": 20, "independ": [], "In": [8, 11], "case": [8, 11], "would": 0, "individu": 20, "veri": 20, "ineffici": [], "larg": [], "logic": [], "done": 20, "two": [0, 20], "freez": [], "disallow": [], "grnboost2": [0, 20], "construct": 20, "onto": [0, 20], "creation": [], "appli": 15, "py": 20, "file_path": [], "iterableload": [], "scrna": 0, "entir": [], "loader": [], "split": [], "descript": [], "compression_typ": [], "gzip": [], "multi_read": [], "get_clust": [], "post_process": [], "accommod": [], "pattern": [], "pair": 20, "where": 20, "determin": [], "contribut": 0, "extract": [], "record": [], "compress": [], "addit": 20, "gitattribut": [19, 20], "workflow": [0, 19, 20], "build": [11, 19, 20], "yml": [19, 20], "yaml": [19, 20], "gitignor": [19, 20], "gitmodul": [19, 20], "atkinson_hyperleg": [19, 20], "readm": [19, 20], "md": [19, 20], "interim": [19, 20], "bonemarrow": [19, 20], "mus_musculus_tf": [19, 20], "dockerfil": [19, 20], "doc": [19, 20], "notebook": [19, 20], "monitor": [19, 20], "sh": [19, 20], "src": [19, 20], "come": 20, "interfac": 20, "section": 20, "desir": 20, "python3": 20, "through": 20, "h": [0, 20], "benchmark": 20, "cwgan": 20, "unoffici": 20, "cscgan": 20, "appropri": 20, "essenti": [8, 11, 20], "four": 20, "hyperparamet": 20, "Or": 20, "chain": 20, "togeth": 20, "go": 20, "syntax": 20, "similar": 20, "three": 20, "consist": 20, "isn": 20, "sensit": 20, "still": 20, "advis": 20, "below": 20, "pbmc68k": 20, "imag": 20, "prepackag": 20, "unprocess": 20, "mous": [0, 20], "paul": 20, "2015": 20, "human": [0, 20], "zheng": 20, "animaltfdb": 20, "place": 20, "too": 20, "hard": 20, "curl": 20, "tar": 20, "nextcloud": 20, "ca": 20, "php": 20, "wqrcqkh5zjyymw9": 20, "demo_data": 20, "xvf": 20, "mv": 20, "rm": 20, "rf": 20, "skip": 20, "pipelin": 20, "like": [0, 20], "mtx": 20, "barcod": 20, "leav": 20, "empti": 20, "Then": 20, "onc": 20, "success": 20, "messag": 20, "moerman": [0, 20], "convert": 20, "wa": 20, "write": 20, "properti": 20, "dask": 20, "client": 20, "pars": 20, "partit": 20, "shut": 20, "down": 20, "finish": 20, "937": 20, "possibl": 20, "edg": [0, 20], "59031": 20, "14055": 20, "densiti": 20, "238095": 20, "written": 20, "For": 20, "corespond": 20, "pictur": 20, "abov": 20, "form": 20, "g2": 20, "tfn": 20, "g1": 20, "gn": 20, "g3": 20, "becom": 20, "pickl": 20, "wb": 20, "fp": 20, "dump": 20, "protocol": 20, "highest_protocol": 20, "forget": 20, "edit": 20, "direct": [0, 20], "appear": 20, "part": 20, "biolog": 20, "meaning": 20, "significantli": 20, "relationship": 20, "those": 20, "observ": 20, "deterior": 20, "qualiti": 20, "realist": 20, "datapoint": 20, "act": 20, "contradictori": 20, "task": 20, "upon": 20, "folder": 20, "state": 20, "bias": 20, "tsne": 20, "v": 20, "chang": 20, "logdir": 20, "dir": 20, "load_fast": 20, "slurm": 20, "submiss": 20, "time": 20, "primarili": 20, "five": 20, "dai": [0, 20], "dens": 20, "v100sxm2": 20, "16g": 20, "gpu": 20, "suggest": 20, "stick": 20, "avoid": 20, "excess": 20, "overhead": 20, "million": 20, "recommend": 20, "wish": 20, "One": 20, "popul": 20, "field": 20, "usual": 20, "latest": 20, "config_fil": 20, "machart": 20, "p": [0, 20], "bansal": 20, "kilian": 20, "magrud": 20, "d": [0, 20], "kreb": 20, "bonn": 20, "augment": 20, "natur": [0, 2, 20], "commun": [0, 2, 7, 20], "1038": [0, 2, 7, 20], "s41467": [2, 7, 20], "019": 20, "14018": 20, "z": [0, 20], "arkin": [0, 20], "giladi": [0, 20], "jaitin": [0, 20], "kenigsberg": [0, 20], "keren": [0, 20], "shaul": [0, 20], "winter": [0, 20], "lara": [0, 20], "astiaso": [0, 20], "guri": [0, 20], "weiner": [0, 20], "david": [0, 20], "cohen": [0, 20], "lauridsen": [0, 20], "b": [0, 20], "haa": [0, 20], "schlitzer": [0, 20], "mildner": [0, 20], "ginhoux": [0, 20], "jung": [0, 20], "trumpp": [0, 20], "tanai": [0, 20], "heterogen": [0, 20], "lineag": [0, 20], "commit": [0, 20], "myeloid": [0, 20], "progenitor": [0, 20], "163": [0, 20], "7": [0, 20], "1663": [0, 20], "1677": [0, 20], "1016": [0, 20], "j": [0, 20], "013": [0, 20], "terri": [0, 20], "belgrad": [0, 20], "ryvkin": [0, 20], "bent": [0, 20], "wilson": [0, 20], "ziraldo": [0, 20], "wheeler": [0, 20], "mcdermott": [0, 20], "zhu": [0, 20], "gregori": [0, 20], "shuga": [0, 20], "montesclaro": [0, 20], "l": [0, 20], "underwood": [0, 20], "masqueli": [0, 20], "nishimura": [0, 20], "schnall": [0, 20], "levin": [0, 20], "wyatt": [0, 20], "hindson": [0, 20], "biela": [0, 20], "massiv": [0, 20], "parallel": [0, 20], "digit": [0, 20], "profil": [0, 20], "8": [0, 20], "ncomms14049": [0, 20], "aibar": [0, 20], "gonz\u00e1lez": [0, 20], "bla": [0, 20], "simm": [0, 20], "moreau": [0, 20], "aert": [0, 20], "arboreto": [0, 20], "effici": [0, 20], "scalabl": [0, 20], "bioinformat": [0, 20], "35": [0, 20], "12": [0, 20], "2159": [0, 20], "2161": [0, 20], "1093": [0, 20], "bty916": [0, 20], "row": 0, "column": 0, "ground": 0, "truth": 0, "100k": 0, "experiment": 0, "potenti": 0, "manner": 0, "feel": 0, "reduc": 0, "fewer": 0, "hematopoiet": 0, "stem": 0, "bone": 0, "marrow": 0, "geo": 0, "gse72857": 0, "peripher": 0, "blood": 0, "mononuclear": 0, "donor": 0, "genom": 0, "common": 0, "cd8": 0, "cytotox": 0, "hspc": 0, "toward": 0, "gse107727": 0, "well": 0, "microenviron": 0, "fresh": 0, "core": 0, "needl": 0, "biopsi": 0, "follicular": 0, "lymphoma": 0, "patient": 0, "cellxgen": 0, "eager": 0, "grow": 0, "welcom": 0, "submit": 0, "Be": 0, "link": 0, "collect": 0, "encourag": 0, "hamei": 0, "pijuan": 0, "sala": 0, "shepherd": 0, "lau": 0, "nestorowa": 0, "landscap": 0, "resolv": 0, "trajectori": 0, "defect": 0, "kit": 0, "mutant": 0, "mice": 0, "american": 0, "societi": 0, "hematologi": 0, "131": 0, "21": 0, "e1": 0, "e11": 0, "deng": 0, "q": 0, "marqu": 0, "piubelli": 0, "dang": 0, "ma": 0, "green": 0, "characterist": 0, "associ": 0, "mutat": 0, "mhc": 0, "ii": 0, "cancer": 0, "discoveri": 0, "428": 0, "443": 0, "virtualenv": [8, 11], "known": [8, 11], "ubuntu": [8, 11], "becaus": [8, 11], "miss": [8, 11], "sudo": [8, 11], "apt": [8, 11], "libffi": [8, 11], "dev": [8, 11], "zlib1g": [8, 11], "libncurses5": [8, 11], "libgdbm": [8, 11], "libnss3": [8, 11], "libssl": [8, 11], "libreadlin": [8, 11], "libsqlite3": [8, 11], "libpng": [8, 11], "libjpeg": [8, 11], "libbz2": [8, 11], "liblzma": [8, 11], "tk": [8, 11], "nat": [2, 7], "4055": [2, 7], "2024": [2, 7], "024": [2, 7], "48516": [2, 7], "_": [], "zinati2024groundgan": 2, "volum": 2, "18": 2, "group": 2, "paper": 7}, "objects": {"": [[3, 0, 0, "-", "custom_parser"], [6, 0, 0, "-", "gans"], [9, 0, 0, "-", "layers"], [14, 0, 0, "-", "networks"], [15, 0, 0, "-", "preprocessing"]], "custom_parser": [[3, 1, 1, "", "get_argparser"], [3, 1, 1, "", "get_configparser"]], "preprocessing": [[15, 0, 0, "-", "preprocess"]], "preprocessing.preprocess": [[15, 1, 1, "", "preprocess"]]}, "objtypes": {"0": "py:module", "1": "py:function"}, "objnames": {"0": ["py", "module", "Python module"], "1": ["py", "function", "Python function"]}, "titleterms": {"citat": 2, "bibtex": 2, "custom_pars": 3, "modul": [3, 5, 6, 9, 12, 14, 15, 16, 18], "docker": [4, 8, 17], "setup": [4, 8, 17], "option": [4, 8], "A": [4, 8], "us": [4, 8], "pre": [4, 8], "built": [4, 8], "imag": [4, 8, 17], "recommend": [4, 8], "b": [4, 8], "build": [4, 8], "from": [4, 8], "dockerfil": [4, 8], "verifi": [4, 8], "gpu": [4, 8], "acceler": [4, 8], "factori": 5, "gan": 6, "packag": [6, 9, 14, 15], "submodul": [6, 9, 14, 15], "causal_gan": 6, "conditional_gan": 6, "conditional_gan_cat": 6, "conditional_gan_proj": 6, "content": [6, 9, 14, 15], "welcom": 7, "groundgan": [0, 7], "": 7, "document": 7, "grn": [0, 7, 20], "infer": 7, "benchmark": [0, 7], "workflow": 7, "contact": 7, "have": 7, "question": 7, "found": 7, "bug": 7, "indic": 7, "tabl": 7, "instal": [8, 11], "local": [8, 11], "singular": [8, 17], "convert": [8, 17], "run": [8, 17], "contain": [8, 17], "layer": 9, "cbn": 9, "lsn": 9, "masked_linear": 9, "licens": 10, "main": 12, "api": 13, "refer": [0, 13, 20], "network": 14, "critic": 14, "gener": 14, "label": 14, "masked_causal_gener": 14, "preprocess": [15, 20], "grn_creation": 15, "sc_dataset": 16, "tfrecord_load": 18, "tutori": 20, "cli": 20, "config": 20, "file": 20, "project": 20, "outlin": 20, "demo": 20, "dataset": [0, 20], "step": 20, "creation": 20, "impos": 20, "custom": 20, "train": [0, 20], "In": 20, "silico": 20, "singl": 20, "cell": 20, "simul": [0, 20], "bonemarrow": 0, "paul": 0, "et": 0, "al": 0, "2015": 0, "pbmc": 0, "all": 0, "zheng": 0, "2017": 0, "ctl": 0, "dahlin": 0, "2018": 0, "tumor": 0, "han": 0, "2022": 0, "malign": 0, "help": 0, "u": 0, "expand": 0, "thi": 0, "list": 0, "request": 0, "new": 0, "troubleshoot": [8, 11]}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.todo": 2, "sphinx.ext.viewcode": 1, "sphinx.ext.intersphinx": 1, "sphinx": 57}, "alltitles": {"Benchmarking": [[0, "benchmarking"]], "Simulated datasets": [[0, "simulated-datasets"]], "BoneMarrow (Paul et al., 2015)": [[0, "bonemarrow-paul-et-al-2015"]], "PBMC-ALL (Zheng et al., 2017)": [[0, "pbmc-all-zheng-et-al-2017"]], "PBMC-CTL": [[0, "pbmc-ctl"]], "Dahlin (Dahlin et al., 2018)": [[0, "dahlin-dahlin-et-al-2018"]], "Tumor-ALL (Han et al., 2022)": [[0, "tumor-all-han-et-al-2022"]], "Tumor-malignant": [[0, "tumor-malignant"]], "Help us expand this list: request GRouNdGAN training on new GRNs and reference datasets": [[0, null]], "References": [[0, "references"], [20, "references"]], "custom_parser module": [[3, "module-custom_parser"]], "Docker Setup": [[4, "docker-setup"], [8, "docker-setup"]], "Option A: Using Pre-built Docker Image (Recommended)": [[4, "option-a-using-pre-built-docker-image-recommended"], [8, "option-a-using-pre-built-docker-image-recommended"]], "Option B: Building Docker Image from Dockerfile": [[4, "option-b-building-docker-image-from-dockerfile"], [8, "option-b-building-docker-image-from-dockerfile"]], "Verifying GPU Acceleration": [[4, "verifying-gpu-acceleration"], [8, "verifying-gpu-acceleration"]], "Installation": [[8, "installation"]], "Local Installation": [[8, "id1"], [11, "local-installation"]], "Troubleshooting": [[8, null], [11, null]], "Singularity Setup": [[8, "singularity-setup"], [17, "singularity-setup"]], "Converting Docker Image to Singularity": [[8, "converting-docker-image-to-singularity"], [17, "converting-docker-image-to-singularity"]], "Running a Singularity Container": [[8, "running-a-singularity-container"], [17, "running-a-singularity-container"]], "License": [[10, "license"]], "API References": [[13, "api-references"]], "Tutorial": [[20, "tutorial"]], "CLI": [[20, "cli"]], "Config Files": [[20, "config-files"]], "Project outline": [[20, "project-outline"]], "Demo Datasets": [[20, "demo-datasets"]], "Steps": [[20, "steps"]], "Preprocessing": [[20, "preprocessing"]], "GRN Creation": [[20, "grn-creation"]], "Imposing Custom GRNs": [[20, "imposing-custom-grns"]], "Training": [[20, "training"]], "In-silico Single-Cell Simulation": [[20, "in-silico-single-cell-simulation"]], "Citation": [[2, "citation"]], "Bibtex Citation": [[2, "bibtex-citation"]], "factory module": [[5, "factory-module"]], "gans package": [[6, "gans-package"]], "Submodules": [[6, "submodules"], [9, "submodules"], [14, "submodules"], [15, "submodules"]], "gans.causal_gan module": [[6, "gans-causal-gan-module"]], "gans.conditional_gan module": [[6, "gans-conditional-gan-module"]], "gans.conditional_gan_cat module": [[6, "gans-conditional-gan-cat-module"]], "gans.conditional_gan_proj module": [[6, "gans-conditional-gan-proj-module"]], "gans.gan module": [[6, "gans-gan-module"]], "Module contents": [[6, "module-gans"], [9, "module-layers"], [14, "module-networks"], [15, "module-preprocessing"]], "Welcome to GRouNdGAN\u2019s documentation!": [[7, "welcome-to-groundgan-s-documentation"]], "GRN inference benchmarking workflow": [[7, null]], "Contact": [[7, "contact"]], "Have a Question or Found a Bug?": [[7, null]], "Indices and tables": [[7, "indices-and-tables"]], "layers package": [[9, "layers-package"]], "layers.cbn module": [[9, "layers-cbn-module"]], "layers.lsn module": [[9, "layers-lsn-module"]], "layers.masked_linear module": [[9, "layers-masked-linear-module"]], "main module": [[12, "main-module"]], "networks package": [[14, "networks-package"]], "networks.critic module": [[14, "networks-critic-module"]], "networks.generator module": [[14, "networks-generator-module"]], "networks.labeler module": [[14, "networks-labeler-module"]], "networks.masked_causal_generator module": [[14, "networks-masked-causal-generator-module"]], "preprocessing package": [[15, "preprocessing-package"]], "preprocessing.grn_creation module": [[15, "preprocessing-grn-creation-module"]], "preprocessing.preprocess module": [[15, "module-preprocessing.preprocess"]], "sc_dataset module": [[16, "sc-dataset-module"]], "tfrecord_loader module": [[18, "tfrecord-loader-module"]]}, "indexentries": {"gans": [[6, "module-gans"]], "module": [[6, "module-gans"], [9, "module-layers"], [14, "module-networks"], [15, "module-preprocessing"], [15, "module-preprocessing.preprocess"]], "layers": [[9, "module-layers"]], "networks": [[14, "module-networks"]], "preprocess() (in module preprocessing.preprocess)": [[15, "preprocessing.preprocess.preprocess"]], "preprocessing": [[15, "module-preprocessing"]], "preprocessing.preprocess": [[15, "module-preprocessing.preprocess"]]}}) \ No newline at end of file diff --git a/docs/_build/html/singularity.html b/docs/_build/html/singularity.html index 7baaf45..4629e3c 100644 --- a/docs/_build/html/singularity.html +++ b/docs/_build/html/singularity.html @@ -7,7 +7,7 @@ - + Singularity Setup — GRouNdGAN 1.0 documentation diff --git a/docs/_build/html/tfrecord_loader.html b/docs/_build/html/tfrecord_loader.html index 0035481..b33eaef 100644 --- a/docs/_build/html/tfrecord_loader.html +++ b/docs/_build/html/tfrecord_loader.html @@ -7,7 +7,7 @@ - + tfrecord_loader module — GRouNdGAN 1.0 documentation @@ -428,9 +428,7 @@ `); - + @@ -446,14 +444,6 @@

tfrecord_loader module

-
-

Contents

-
-
@@ -463,45 +453,8 @@

Contents

-
-

tfrecord_loader module#

-
-
-tfrecord_loader.get_loader(genes_no: int, file_path: str | List[str], batch_size: int, splits: Dict[str, float] | None = None, description: List[str] | Dict[str, str] | None = None, compression_type: str | None = 'gzip', multi_read: bool | None = False, get_clusters: bool | None = False) DataLoader[source]#
-

Provides an IterableLoader over a Dataset read from given tfrecord files for PyTorch.

-

Currently used to create data loaders from the PBMC preprocessed dataset in tfrecord -from scGAN (Marouf et al.,2020). description parameter and post_process function -can be modified to accommodate more tfrecord datasets.

-
-
Parameters:
-
    -
  • genes_no (int) – Number of genes in the expression matrix.

  • -
  • file_path (Union[str, List[str]]) – Tfrecord file path for reading a single tfrecord (multi_read=False) -or file pattern for reading multiple tfrecords (ex: /path/{}.tfrecord).

  • -
  • batch_size (int) – Training batch size.

  • -
  • splits (Optional[Dict[str, float]], optional) – Dictionary of (key, value) pairs, where the key is used to construct -the data and index path(s) and the value determines the contribution -of each split to the batch. Provide when reading from multiple tfrecords -(multi_read=True), by default None.

  • -
  • description (Union[List[str], Dict[str, str], None], optional) – List of keys or dict of (key, value) pairs to extract from each record. -The keys represent the name of the features and the values (“byte”, “float”, or “int”), -by default { “indices”: None, “values”: None, }.

  • -
  • compression_type (Optional[str], optional) – The type of compression used for the tfrecord. Either ‘gzip’ or None, by default “gzip”.

  • -
  • multi_read (Optional[bool], optional) – Specifies whether to construct the dataset from multiple tfrecords. -If True, a file pattern should be passed to file_path, by default False.

  • -
  • get_clusters (Optional[bool], optional) – If True, the returned data loader will contain the cluster label of cells in -addition to their gene expression values, by default False.

  • -
-
-
Returns:
-

Iterable data loader over the dataset.

-
-
Return type:
-

DataLoader

-
-
-
- +
+

tfrecord_loader module#

@@ -531,20 +484,7 @@

Contents

-
+
diff --git a/docs/_build/html/tree.html b/docs/_build/html/tree.html index 669c82c..9b630fe 100644 --- a/docs/_build/html/tree.html +++ b/docs/_build/html/tree.html @@ -7,7 +7,7 @@ - + <no title> — GRouNdGAN 1.0 documentation diff --git a/docs/_build/html/tutorial.html b/docs/_build/html/tutorial.html index 182e67f..0230681 100644 --- a/docs/_build/html/tutorial.html +++ b/docs/_build/html/tutorial.html @@ -7,7 +7,7 @@ - + Tutorial — GRouNdGAN 1.0 documentation diff --git a/docs/citation.rst b/docs/citation.rst index 6c7ea1c..51afce1 100644 --- a/docs/citation.rst +++ b/docs/citation.rst @@ -1,7 +1,7 @@ Citation ================ - Zinati, Y., Takiddeen, A. & Emad, A. GRouNdGAN: GRN-guided simulation of single-cell RNA-seq data using causal generative adversarial networks. *Nat Commun* **15**, 4055 (2024). `https://doi.org/10.1038/s41467-024-48516-6`_. + Zinati, Y., Takiddeen, A. & Emad, A. GRouNdGAN: GRN-guided simulation of single-cell RNA-seq data using causal generative adversarial networks. *Nat Commun* **15**, 4055 (2024). https://doi.org/10.1038/s41467-024-48516-6. Bibtex Citation diff --git a/docs/index.rst b/docs/index.rst index 0a210f6..21527bd 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -14,7 +14,7 @@ This site documents the code released under **GRouNdGAN (GRN-guided simulation o To find out more details about GRouNdGAN, check out our paper: - Zinati, Y., Takiddeen, A. & Emad, A. GRouNdGAN: GRN-guided simulation of single-cell RNA-seq data using causal generative adversarial networks. *Nat Commun* **15**, 4055 (2024). `https://doi.org/10.1038/s41467-024-48516-6`_. + Zinati, Y., Takiddeen, A. & Emad, A. GRouNdGAN: GRN-guided simulation of single-cell RNA-seq data using causal generative adversarial networks. *Nat Commun* **15**, 4055 (2024). https://doi.org/10.1038/s41467-024-48516-6. .. sidebar:: GRN inference benchmarking workflow