Skip to content

Commit 54dd52d

Browse files
committed
Updated dependency and examples.
Version bump.
1 parent 0e25fad commit 54dd52d

16 files changed

Lines changed: 531 additions & 398 deletions

File tree

PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: normalisr
3-
Version: 0.4.1
3+
Version: 0.4.2
44
Summary: Normalisr Offers Robust Modelling of Associations Linearly In Single-cell RNA-seq
55
Home-page: https://github.com/lingfeiwang/normalisr
66
Author: Lingfei Wang

UPDATES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
0.4.2:
2+
Updated dependency and examples.
3+
14
0.4.1:
25
Updated documentation.
36

docs/build/html/all_api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ <h1>All API<a class="headerlink" href="#all-api" title="Permalink to this headli
523523
<dt id="normalisr.lcpm.lcpm">
524524
<code class="sig-prename descclassname">normalisr.lcpm.</code><code class="sig-name descname">lcpm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">reads</span></em>, <em class="sig-param"><span class="n">normalize</span><span class="o">=</span><span class="default_value">True</span></em>, <em class="sig-param"><span class="n">nth</span><span class="o">=</span><span class="default_value">0</span></em>, <em class="sig-param"><span class="n">ntot</span><span class="o">=</span><span class="default_value">None</span></em>, <em class="sig-param"><span class="n">varscale</span><span class="o">=</span><span class="default_value">0</span></em>, <em class="sig-param"><span class="n">seed</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#normalisr.lcpm.lcpm" title="Permalink to this definition"></a></dt>
525525
<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>
528528
<dl class="field-list simple">
529529
<dt class="field-odd">Parameters</dt>
530530
<dd class="field-odd"><ul class="simple">

docs/build/html/user_api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ <h2>Co-expression<a class="headerlink" href="#co-expression" title="Permalink to
298298
<dt id="normalisr.normalisr.lcpm">
299299
<code class="sig-prename descclassname">normalisr.normalisr.</code><code class="sig-name descname">lcpm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">reads</span></em>, <em class="sig-param"><span class="n">normalize</span><span class="o">=</span><span class="default_value">True</span></em>, <em class="sig-param"><span class="n">nth</span><span class="o">=</span><span class="default_value">0</span></em>, <em class="sig-param"><span class="n">ntot</span><span class="o">=</span><span class="default_value">None</span></em>, <em class="sig-param"><span class="n">varscale</span><span class="o">=</span><span class="default_value">0</span></em>, <em class="sig-param"><span class="n">seed</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#normalisr.normalisr.lcpm" title="Permalink to this definition"></a></dt>
300300
<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>
303303
<dl class="field-list simple">
304304
<dt class="field-odd">Parameters</dt>
305305
<dd class="field-odd"><ul class="simple">

docs/build/latex/normalisr.pdf

-12 Bytes
Binary file not shown.

examples/GSE120861/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ High-MOI CRISPRi CROP-seq pilot dataset for enhancer and gene-regulation screens
55
## Usage
66
### Data preparation
77
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.
99

1010
### 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:
1212
* data/highmoi/X_pv.tsv.gz: differential expression matrix for P-values;
1313
* data/highmoi/X_lfc.tsv.gz: differential expression matrix for logFCs;
1414
* data/highmoi/1_gene.txt: gene names as columns of above files;
1515
* data/highmoi/0_gRNA.txt: gRNA names as rows of above files;
1616
* 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.
1818

1919
### 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.
2121

2222
## Next
2323
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.

examples/GSE120861/code/notebook_highmoi.ipynb

Lines changed: 30 additions & 18 deletions
Large diffs are not rendered by default.

examples/GSE120861/ipynb/highmoi.ipynb

Lines changed: 10 additions & 10 deletions
Large diffs are not rendered by default.

examples/GSE123139/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ MARS-seq of T cells from human melanoma. This example contains two sub-examples
44
## Usage
55
### Data preparation
66
1. Enter GSE123139 as the working directory.
7-
2. Run ./code/prepare.sh to download and convert the dataset into Normalisr's tsv format. See prepared inputs in data/de and data/coex.
7+
2. Run `code/prepare.sh` to download and convert the dataset into Normalisr's tsv format. See prepared inputs in data/de and data/coex.
88

99
### Option 1: analyses at command line
10-
1. For differential expression, read and run ./code/cmd_de.sh to see each step. Final outputs are:
10+
1. For differential expression, read and run `code/cmd_de.sh` from current folder as working directory to see each step. Final outputs are:
1111
* data/de/9_pv.tsv.gz: differential expression P-values;
1212
* data/de/9_lfc.tsv.gz: differential expression logFCs;
1313
* data/de/1_gene.txt: gene names as columns of above files.
14-
2. For co-expression, edit, read, and run ./code/cmd_coex.sh to see each step. Final outputs are:
14+
2. For co-expression, edit, read, and run `code/cmd_coex.sh` from current folder as working directory to see each step. Final outputs are:
1515
* data/coex/lvX_pv.tsv.gz: co-expression P-values;
1616
* data/coex/lvX_net.tsv.gz: binary co-expression network;
1717
* data/coex/lvX_var.tsv.gz: gene variances;
@@ -20,11 +20,12 @@ MARS-seq of T cells from human melanoma. This example contains two sub-examples
2020
* data/coex/lvX_goe.tsv.gz: table of gene ontology enrichment of master regulators;
2121
* data/coex/1_gene.txt: gene names as rows and columns of co-expression result matrices;
2222
* 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.
2424

2525
### 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`.
2829

2930
## Next
3031
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

Comments
 (0)