You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+44-12Lines changed: 44 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# CRISPR Pipeline
1
+
# coreSCpy Pipeline
2
2
3
3
Developer: Elizabeth Aslinger (easlinger)
4
4
@@ -23,8 +23,7 @@ with desired environment name):
23
23
`git clone https://github.com/ChoBioLab/corescpy.git`, or
24
24
look above for the green "Code" button and press it for instructions.
25
25
26
-
5. Naviate to the repository directory (replace
27
-
<DIRECTORY> with your path):
26
+
5. Naviate to the repository directory (replace <DIRECTORY> with your path):
28
27
`cd <DIRECTORY>`
29
28
30
29
6. Install the package with pip. (Ensure you have pip installed.)
@@ -38,14 +37,26 @@ Open a Python terminal and type:
38
37
39
38
2. You can now call functions from the analysis module using
40
39
`cr.ax.<FUNCTION>()`, from the preprocessing using `cr.ax.pp...`, etc.
41
-
in Python; however, you are most likely to interact with the `Crispr`
42
-
class object. Here is example code you might run
43
-
(replacing <...> with your argument specifications) to load and
44
-
preprocess your data.
40
+
in Python; however, you are most likely to interact with the `Omics` class object, or specialized classes that inherit from it, such as `Crispr` and `Spatial`.
41
+
class object. Here is example code you might run (replacing things in < > brackets with your specifications):
*`self.run_augur(...)`: Score and plot how strongly different cell types responded to perturbation(s). This score is operationalized as the accuracy with which a machine learning model can use gene expression data to predict the perturbation condition to which cells of a given type belong. Augur provides scores aggregated across cells of a given type rather than for individual cells.
61
87
*`self.run_mixscape(...)`: Quantify and plot the extent to which individual cells responded to CRISPR perturbation(s), and identify which perturbation condition cells were not detectibly perturbed in terms of their gene expression.
62
88
*`self.compute_distance(...)`: Calculate and visualize various distance metrics that quantify the similarity in gene expression profiles across perturbation conditions.
@@ -95,12 +121,14 @@ Certain arguments used throughout the `corescpy` package (including outside the
95
121
### Initialization Method Arguments
96
122
97
123
*`file_path`**(str, AnnData, or dictionary)**: Path or object containing data. Used in initialization to create the initial `self.adata` attribute (an AnnData or MuData object). Either
98
-
- a path to a 10x directory (with matrix.mtx.gz, barcodes.tsv.gz, features.tsv.gz),
124
+
- a path to a 10x directory (with matrix.mtx.gz, barcodes.tsv.gz, features.tsv.gz), the top-level directory of Xenium output (above the CellRanger feature/matrix directory), or the top-level directory of Visium output (that contains the .h5 file),
99
125
- a path to an .h5ad or .mu file (Scanpy/AnnData/Muon-compatible),
100
-
- an AnnDataor MuData object (e.g., already loaded with Scanpy or Muon, or by using `corescpy.pp.create_object(file_path)`), or
126
+
- an `AnnData`, `MuData`, or `SpatialData` object (e.g., already loaded with the appropriate `scverse` packages, or by using `corescpy.pp.create_object(file_path)`), or
101
127
- a dictionary containing keyword arguments to pass to `corescpy.pp.combine_matrix_protospacer()` (in order to load information about perturbations from other file(s); press the arrow to expand details here),
102
128
103
129
<details><summary>Click to expand details</summary>
130
+
or
131
+
- a dictionary, keyed by sample name, containing multiple `file_path`-compatible arguments for each sample (for integration).
104
132
105
133
```
106
134
crd = "<YOUR DIRECTORY HERE>"
@@ -241,8 +269,12 @@ Finally, this approach saves memory: All these versions of the attribute are sto
0 commit comments