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: docs/build/html/all_api.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -523,8 +523,8 @@ <h1>All API<a class="headerlink" href="#all-api" title="Permalink to this headli
523
523
<dtid="normalisr.lcpm.lcpm">
524
524
<codeclass="sig-prename descclassname">normalisr.lcpm.</code><codeclass="sig-name descname">lcpm</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">reads</span></em>, <emclass="sig-param"><spanclass="n">normalize</span><spanclass="o">=</span><spanclass="default_value">True</span></em>, <emclass="sig-param"><spanclass="n">nth</span><spanclass="o">=</span><spanclass="default_value">0</span></em>, <emclass="sig-param"><spanclass="n">ntot</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">varscale</span><spanclass="o">=</span><spanclass="default_value">0</span></em>, <emclass="sig-param"><spanclass="n">seed</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#normalisr.lcpm.lcpm" title="Permalink to this definition">¶</a></dt>
525
525
<dd><p>Computes Bayesian log CPM from raw read counts.</p>
526
-
<p>The technical sampling process is modelled as a Binomial distribution. The logCPM given read counts is a Bayesian inference problem and follows (shifted) Beta distribution. We use the expectation of posterior logCPM as the estimated expression levels. Resampling function is also provided to account for variances in the posterior distribution.
527
-
<strong>Warning</strong>: Modifying keyword arguments other than nth or seed is neither recommended nor supported for function ‘lcpm’. Do so at your own risk.</p>
526
+
<p>The technical sampling process is modelled as a Binomial distribution. The logCPM given read counts is a Bayesian inference problem and follows (shifted) Beta distribution. We use the expectation of posterior logCPM as the estimated expression levels. Resampling function is also provided to account for variances in the posterior distribution.</p>
527
+
<p><strong>Warning</strong>: Modifying keyword arguments other than nth or seed is neither recommended nor supported for function ‘lcpm’. Do so at your own risk.</p>
Copy file name to clipboardExpand all lines: docs/build/html/user_api.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -298,8 +298,8 @@ <h2>Co-expression<a class="headerlink" href="#co-expression" title="Permalink to
298
298
<dtid="normalisr.normalisr.lcpm">
299
299
<codeclass="sig-prename descclassname">normalisr.normalisr.</code><codeclass="sig-name descname">lcpm</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">reads</span></em>, <emclass="sig-param"><spanclass="n">normalize</span><spanclass="o">=</span><spanclass="default_value">True</span></em>, <emclass="sig-param"><spanclass="n">nth</span><spanclass="o">=</span><spanclass="default_value">0</span></em>, <emclass="sig-param"><spanclass="n">ntot</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">varscale</span><spanclass="o">=</span><spanclass="default_value">0</span></em>, <emclass="sig-param"><spanclass="n">seed</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#normalisr.normalisr.lcpm" title="Permalink to this definition">¶</a></dt>
300
300
<dd><p>Computes Bayesian log CPM from raw read counts.</p>
301
-
<p>The technical sampling process is modelled as a Binomial distribution. The logCPM given read counts is a Bayesian inference problem and follows (shifted) Beta distribution. We use the expectation of posterior logCPM as the estimated expression levels. Resampling function is also provided to account for variances in the posterior distribution.
302
-
<strong>Warning</strong>: Modifying keyword arguments other than nth or seed is neither recommended nor supported for function ‘lcpm’. Do so at your own risk.</p>
301
+
<p>The technical sampling process is modelled as a Binomial distribution. The logCPM given read counts is a Bayesian inference problem and follows (shifted) Beta distribution. We use the expectation of posterior logCPM as the estimated expression levels. Resampling function is also provided to account for variances in the posterior distribution.</p>
302
+
<p><strong>Warning</strong>: Modifying keyword arguments other than nth or seed is neither recommended nor supported for function ‘lcpm’. Do so at your own risk.</p>
Copy file name to clipboardExpand all lines: examples/GSE120861/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,19 @@ High-MOI CRISPRi CROP-seq pilot dataset for enhancer and gene-regulation screens
5
5
## Usage
6
6
### Data preparation
7
7
1. Enter GSE120861 as the working directory.
8
-
2. Run ./code/prepare.sh to download and convert dataset into Normalisr's tsv format. See prepared inputs in data/highmoi.
8
+
2. Run `code/prepare.sh` to download and convert dataset into Normalisr's tsv format. See prepared inputs in data/highmoi.
9
9
10
10
### Option 1: analyses at command line
11
-
1. Read and run ./code/cmd_highmoi.sh to see each step. Final outputs are:
11
+
1. Read and run `code/cmd_highmoi.sh` from current folder as working directory to see each step. Final outputs are:
12
12
* data/highmoi/X_pv.tsv.gz: differential expression matrix for P-values;
13
13
* data/highmoi/X_lfc.tsv.gz: differential expression matrix for logFCs;
14
14
* data/highmoi/1_gene.txt: gene names as columns of above files;
15
15
* data/highmoi/0_gRNA.txt: gRNA names as rows of above files;
16
16
* X=7 for competition-naive method, and 8 for competition-aware method.
17
-
2.See simple visualizations of the output in folder ipynb.
17
+
2.Run `cd ipynb; jupyter notebook` and then run `highmoi.ipynb` in jupyter to see simple visualizations of the output.
18
18
19
19
### Option 2: analyses with python
20
-
Read and run jupyter notebook at ./code/notebook_highmoi.ipynb
20
+
Run `cd code; jupyter notebook` and then read and run `notebook_highmoi.ipynb` in jupyter.
21
21
22
22
## Next
23
23
1. Redo the analyses with full dataset. This example uses 15 non-targeting and 15 TSS-targeting gRNAs and around 7,000 cells to work on 16GB of memory. Start from a clean example folder. Change variable ng_negselect, ng_tssselect, ng_other, droprate_ng, and droprate_g in code/prepare_highmoi.py. Then rerun the full example again.
@@ -20,11 +20,12 @@ MARS-seq of T cells from human melanoma. This example contains two sub-examples
20
20
* data/coex/lvX_goe.tsv.gz: table of gene ontology enrichment of master regulators;
21
21
* data/coex/1_gene.txt: gene names as rows and columns of co-expression result matrices;
22
22
* X in lvX indicates the number of GO pathway covariates removed, for a more cell-type-specific co-expression network.
23
-
3.See simple visualizations of the output in folder ipynb.
23
+
3.Run `cd ipynb; jupyter notebook` and then run each ipynb file in jupyter to see simple visualizations of the output.
24
24
25
25
### Option 2: analyses with python
26
-
1. For differential expression, read and run jupyter notebook at ./code/notebook_de.ipynb.
27
-
2. For co-expression, edit, read, and run jupyter notebook at ./code/notebook_coex.ipynb.
26
+
1. Run `cd code; jupyter notebook` to launch jupyter.
27
+
1. For differential expression, read and run `notebook_de.ipynb`.
28
+
2. For co-expression, edit, read, and run `notebook_coex.ipynb`.
28
29
29
30
## Next
30
31
1. Redo the analyses with full dataset. This example uses around half of the cells to work on 16GB of memory. For the full dataset, start from a clean example folder. Change variable drop_rate in code/prepare_raw.py and qcut in code/cmd_coex.sh. Then rerun the full example again.
0 commit comments