-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from fossilfriend/master
PyPI packaging + updated readme + bin directory with executable
- Loading branch information
Showing
23 changed files
with
2,405 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env python | ||
|
||
'''Convenience wrapper for running iterativeWGCNA directly from source tree.''' | ||
|
||
# Installation workaround - see README | ||
# import readline | ||
|
||
from iterativeWGCNA.cmlargs import parse_command_line_args | ||
from iterativeWGCNA.iterativeWGCNA import IterativeWGCNA | ||
|
||
if __name__ == '__main__': | ||
cmlArgs = parse_command_line_args() | ||
alg = IterativeWGCNA(cmlArgs) | ||
alg.run() | ||
|
||
__author__ = 'Emily Greenfest-Allen' | ||
__copyright__ = 'Copyright 2016, University of Pennsylvania' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env python2.7 | ||
""" | ||
Perform iterative WGCNA analysis | ||
python dependencies: | ||
* rpy2 | ||
* matplotlib | ||
R dependencies: | ||
* WGCNA | ||
""" | ||
|
||
from .cmlargs import parse_command_line_args | ||
from .iterativeWGCNA import IterativeWGCNA | ||
|
||
if __name__ == '__main__': | ||
args = parse_command_line_args() | ||
alg = IterativeWGCNA(args) | ||
alg.run() | ||
|
||
__author__ = 'Emily Greenfest-Allen' | ||
__copyright__ = 'Copyright 2016, University of Pennsylvania' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
''' | ||
functions in support of data analysis | ||
''' | ||
|
||
# TODO move to RManager or wgcnaManager | ||
|
||
from .r.imports import wgcna, stats, base | ||
|
||
def calculate_kME(expr, eigengene, calculateP): | ||
''' | ||
calculates eigengene connectivity | ||
between an eigengene and expression data set | ||
''' | ||
if calculateP: | ||
correlation = wgcna().corAndPvalue(base().t(expr), base().t(eigengene)) | ||
else: | ||
correlation = base().as_data_frame(stats().cor(base().t(expr), base().t(eigengene))) | ||
return correlation |
Oops, something went wrong.