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 #49 from zktuong/devel
v0.1.0
- Loading branch information
Showing
341 changed files
with
73,226 additions
and
21,777 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
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 |
---|---|---|
|
@@ -6,5 +6,6 @@ | |
*/*/*/__pycache__/ | ||
*/*/__pycache__/ | ||
*/__pycache__/ | ||
__pycache__ | ||
dist/* | ||
sc_dandelion.egg-info/* |
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
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,7 @@ | ||
#!/usr/bin/env python | ||
# @Author: kt16 | ||
# @Date: 2020-05-12 18:11:20 | ||
# @Last Modified by: Kelvin | ||
# @Last Modified time: 2021-02-16 15:59:05 | ||
|
||
from ._logging import print_versions, print_header |
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,40 @@ | ||
#!/usr/bin/env python | ||
# @Author: Kelvin | ||
# @Date: 2021-02-06 13:18:58 | ||
# @Last Modified by: Kelvin | ||
# @Last Modified time: 2021-02-20 09:07:55 | ||
from typing import Union, Sequence, Tuple | ||
|
||
modules = ['dandelion', 'pandas', 'numpy', 'matplotlib', | ||
'networkx', 'scipy', 'skbio', 'distance', 'polyleven'] | ||
|
||
|
||
# borrowed from scanpy's logging module | ||
def _versions_dependencies(dependencies: Sequence): | ||
for mod in dependencies: | ||
mod_name, dist_name = mod if isinstance(mod, tuple) else (mod, mod) | ||
try: | ||
imp = __import__(mod_name) | ||
yield dist_name, imp.__version__ | ||
except (ImportError, AttributeError): | ||
pass | ||
|
||
|
||
def print_versions(dependencies: Sequence = modules): | ||
''' | ||
Versions that are essential for dandelion's operation. | ||
''' | ||
print(' '.join( | ||
f'{mod}=={ver}' | ||
for mod, ver in _versions_dependencies(dependencies) | ||
)) | ||
|
||
|
||
def print_header(dependencies: Sequence = modules): | ||
''' | ||
Versions that are essential for dandelion's operation. | ||
''' | ||
print(' '.join( | ||
f'{mod}=={ver}' | ||
for mod, ver in _versions_dependencies(dependencies) | ||
)) |
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,2 @@ | ||
exec(open('dandelion/version.py').read()) | ||
print(__version__) |
Oops, something went wrong.