Skip to content

Commit

Permalink
Merge pull request #26 from fossilfriend/master
Browse files Browse the repository at this point in the history
1.1.6 saveTOM bug + new PyPI release
  • Loading branch information
fossilfriend authored Mar 19, 2018
2 parents d6b57a8 + adbbe5e commit 16ddf9d
Show file tree
Hide file tree
Showing 29 changed files with 74 additions and 2,416 deletions.
21 changes: 0 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,2 @@


.#README.md

.markdown-preview.html

*.md#

*.pyc

iterativeWGCNA/.Rhistory

*.R#

scripts/operations.R

scripts/.#plot_metanetwork_heatmap.R

scripts/enrichment_analysis.R

scripts/.#plot_metanetwork_heatmap.R

*.py#
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### 1.1.6 / 2018-03-19
* ability to gzip TOM .RData files added `--gzipTOMs` option
* new release on PyPI
* bug fix: saveTOMs disabled by default; documentation updated
* bug fix: issue parsing boolean WGCNA parameters (e.g. saveTOMs=FALSE or cosineCorrelation=TRUE) resolved

### 1.1.3
* added script to adjust final module merge
* see [Add-ons](/README.md#add-ons) and updated [Output Files](/README.md#output-files) for more information
* fixed Python 3.3+ bug with converting odict_values to ro.StrVector
* added `--debug` option; currently only prints extensive debugging statements for module merge stage

### 1.1.0 / 2017-06-28
* Fix final module merge to improve efficiency and recalculate eigengenes after each merge
* Change program output to generate iteration-specific output files in easily accessible directory structure
Expand Down
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## New Release Available

* __iterativeWGCNA 1.1.6 now available__
* bug fix: saveTOMs disabled by default but can be enabled by with the option `--wgcnaParameters "saveTOMs=TRUE"`
* bug fix: issue parsing boolean WGCNA parameters (e.g. `saveTOMs=FALSE` or `cosineCorrelation=TRUE`) resolved
* new parameter added: `--gzipTOMs` which will gzip TOM .RData files as generated to save space
* new dist available on PyPI

* __iterativeWGCNA 1.1.3 now available__
* added script to adjust final module merge
* see [Add-ons](#add-ons) and updated [Output Files](#output-files) for more information
Expand Down Expand Up @@ -166,8 +172,15 @@ python run_iterative_wgcna.py -h

--skipSaveBlocks
do not save WGCNA blockwise modules for each iteration
also will not save TOMs
NOTE: blocks are necessary to generate summary graphics

--gzipTOMs
if the WGCNA parameter saveTOMs is set to TRUE, this will
gzip the TOM .RData files
NOTE: R is not able to read the .RData.gz files; uncompress
first

-f, --finalMergeCutHeight <cut height>
cut height (max dissimilarity) for final module merge
(after algorithm convergence); [0, 1.0], default=0.05
Expand Down Expand Up @@ -198,7 +211,7 @@ If WGCNA parameters are not specified, iterativeWGCNA uses the default WGCNA set

```python
minModuleSize = 20 # minimum number of genes in a detected module
saveTOMs = TRUE # save the topological overlap matrices for each block in the block data structure
saveTOMs = FALSE # save the topological overlap matrices for each block in the block data structure
minKMEtoStay = 0.8 # minimum eigengene connectivity (kME) required for a gene to be retained in its assigned module
minCoreKME = 0.8 # if the module does not have minModuleSize genes with eigengene connectivity at least minCoreKME, the module is disbanded
reassignThreshold = 0.05 # per-set p-value ratio threshold for reassigning genes between modules
Expand Down Expand Up @@ -229,7 +242,7 @@ An **iteration** of iterativeWGCNA comprises one run of blockwiseWGCNA followed
Results from each pass and iteration are saved in a series of directories, labeled as:

> passN: results from the numbered (N) pass
> passM: results from the numbered (M) pass
> iN: results from the numbered (N) iteration
The directory structure and output files are as follows:
Expand All @@ -245,7 +258,7 @@ The directory structure and output files are as follows:
│ ├── merge-<finalMergeCutHeight>-eigengenes.txt: recalculated eigengenes for modules retained after merging close modules
│ ├── merge-<finalMergeCutHeight>-kme-histogram.pdf: histogram of eigengene connectivities (kME) after merging close modules
│ ├── merge-<finalMergeCutHeight>-membership.txt: gene-module assignments and kME after merging close modules
│ ├── passN
│ ├── passM
│ │ ├── initial-pass-expression-set.txt: pass input
│ │ ├── kme_histogram.pdf: histogram of eigengene connectivities for genes classified during pass
│ │ ├── membership.txt: gene-module assignments and kME for genes classfied during pass
Expand All @@ -257,10 +270,13 @@ The directory structure and output files are as follows:
│ │ | ├── wgcna-blocks.RData: R data object containing input expression data (expression) and results from blockwise WGCNA (blocks)
│ │ │ ├── wgcna-kme_histogram.pdf: kME histogram based on WGCNA classification
│ │ │ ├── wgcna-membership.txt: gene membership from WGCNA classification
│ │ │ ├── passM_iN-TOM.block.X.RData(.gz): TOM for block X generated in passM, iN (if saveTOMs=TRUE; gzipped if --gzipTOMs option specified)
```

> Note: as of release 1.1.3, iterativeWGCNA now outputs two sets of files containing the final classification. Those prefixed with `final-` report the penultimate module membership assignments and eigengenes; i.e. result at the algorithm convergence. Those prefixed with `merge-` report the final module assignements determined after merging close modules and reassessing module memberships after the merge.
> Note: TOMs are only saved if the wgcnaParameter `saveTOMs` is set to `TRUE`. With large gene sets (>10,000 genes), these can be very large and take a while to write to file, dramatically slowing down the performace of the algorithm in the early iterations. To save disk space, specify the paratmer `--gzipTOMs` to gzip .RData files as generated. Again, this i/o operation may slow down the performance of the algorithm in the early iterations.
### Add-ons

1. [Merge Close Modules](#merge-close-modules)
Expand Down
Empty file.
22 changes: 0 additions & 22 deletions build/lib/iterativeWGCNA/__main__.py

This file was deleted.

18 changes: 0 additions & 18 deletions build/lib/iterativeWGCNA/analysis.py

This file was deleted.

Loading

0 comments on commit 16ddf9d

Please sign in to comment.