-
Notifications
You must be signed in to change notification settings - Fork 3
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 #7 from lzj1769/develop
Develop
- Loading branch information
Showing
9 changed files
with
571 additions
and
16 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
399 changes: 398 additions & 1 deletion
399
docs/source/notebooks/.ipynb_checkpoints/run_chromVAR-checkpoint.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi" | |
|
||
[project] | ||
name = "pychromvar" | ||
version = "0.0.3" | ||
version = "0.0.4" | ||
description = "A python package for chromVAR" | ||
authors = [ | ||
{name = "Zhijian Li", email = "[email protected]"} | ||
|
@@ -18,14 +18,14 @@ classifiers = [ | |
"Topic :: Scientific/Engineering :: Bio-Informatics", | ||
"Intended Audience :: Science/Research" | ||
] | ||
requires-python = ">= 3.6" | ||
requires-python = ">= 3.8" | ||
dependencies = [ | ||
"scikit-learn", | ||
"anndata", | ||
"numpy", | ||
"scipy", | ||
"mudata", | ||
"scanpy", | ||
"scikit-learn", | ||
"muon", | ||
"biopython", | ||
"MOODS-python", | ||
|
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,11 @@ | ||
import numpy as np | ||
from anndata import AnnData | ||
|
||
from pychromvar.preprocessing import add_gc_bias | ||
|
||
def test_gc_bias(): | ||
data = AnnData(np.array([[1, 2,], [3, 4]]), dtype=np.float32) | ||
data.uns["peak_seq"] = ["AAAAAAAA", "CCCCGGGG"] | ||
add_gc_bias(data=data) | ||
|
||
assert np.array_equal(data.var['gc_bias'].values, np.array([0.0, 1.0])) |