-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,853 additions
and
240 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# | ||
# atactk: ATAC-seq toolkit | ||
# | ||
# Copyright 2015 The Parker Lab at the University of Michigan | ||
# Copyright 2015 Stephen Parker | ||
# | ||
# Licensed under Version 3 of the GPL or any later version | ||
# | ||
|
||
|
||
__author__ = 'The Parker Lab' | ||
__email__ = 'parkerlab-software@umich.edu' | ||
__version__ = '0.1.6' | ||
__version__ = '0.1.9' |
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 @@ | ||
# | ||
# atactk: ATAC-seq toolkit | ||
# | ||
# Copyright 2015 Stephen Parker | ||
# | ||
# Licensed under Version 3 of the GPL or any later version | ||
# |
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,36 @@ | ||
# | ||
# atactk: ATAC-seq toolkit | ||
# | ||
# Copyright 2015 Stephen Parker | ||
# | ||
# Licensed under Version 3 of the GPL or any later version | ||
# | ||
|
||
|
||
import atactk.data | ||
import atactk.util | ||
|
||
|
||
DEFAULT_CUT_POINT_OFFSET = 4 | ||
|
||
|
||
def reduce_scores(scores, resolution): | ||
""" | ||
Reduce a sequence of scores by summing every `resolution` values. | ||
Called with `scores` of [0, 1, 1, 4, 2], you'd get the following | ||
results at various resolutions: | ||
========== ====== | ||
Resolution Result | ||
========== ====== | ||
1 [0, 1, 1, 4, 2] | ||
2 [1, 5, 2] | ||
3 [2, 6] | ||
4 [6, 2] | ||
10 [8] | ||
========== ====== | ||
""" | ||
if resolution == 1: | ||
return scores | ||
return [sum(chunk) for chunk in atactk.util.partition(resolution, scores)] |
Oops, something went wrong.