Skip to content

Commit

Permalink
Merge pull request #5 from stjude/update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
madetunj authored Jun 10, 2020
2 parents 833bde9 + 5b866f3 commit c081fb8
Show file tree
Hide file tree
Showing 82 changed files with 41 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,5 @@ dmypy.json
# End of https://www.gitignore.io/api/python
#vscode
.vscode

.DS_Store
Empty file modified .travis.yml
100644 → 100755
Empty file.
23 changes: 23 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog
All notable changes to this project will be documented in this file.


## [1.0.2] - 2020-02-21
### Added
- Changelog file to keep track of changes to this project.

### Fixed
- Fixed bug with outputting to an user-specified output directory.
- Fixed bug in `find_islands_in_pr` so that empty island lists do not trigger `IndexError`.

## [1.0.1] - 2019-12-28
### Fixed
- Fixed issue with calling BEDTools using `subprocess.call`. Instead, use `subprocess.Popen` to enable piping.
- Fixed method for getting CPU count

## [1.0.0] - 2019-06-14
### Added
- New version of SICER for improved user-friendliness and parallelization support
- Multiprocessing based on chromosomes
- RECOGNICER algorithm added
- Uses BEDTools to convert BAM file to BED automatically
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions bin/recognicer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ def main():
except:
sys.exit("Output directory (%s) could not be created. Terminating program." % args.output_directory)

if not(os.path.isabs(args.output_directory)):
args.output_directory = os.path.join(curr_path, args.output_directory)

if args.cpu > cpu_available:
args.cpu = cpu_available
warnings.warn("The number of CPU cores entered is greater than the number of cores available for this process. Executing SICER with the maximum number of cores available.\n")
Expand Down
3 changes: 3 additions & 0 deletions bin/recognicer_df
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ def main():
except:
sys.exit("Output directory (%s) could not be created. Terminating program.\n" % args.output_directory)

if not(os.path.isabs(args.output_directory)):
args.output_directory = os.path.join(curr_path, args.output_directory)

if (args.control_file is not None):
if (len(args.control_file) > 2):
sys.stderr.write("Error: Too many control file inputs. RECOGNICER accepts at max two files.\n")
Expand Down
3 changes: 3 additions & 0 deletions bin/sicer
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ def main():
sys.stderr.write("Error: Gap size is not a multiple of window size.\n" % args.output_directory)
sys.exit(1)

if not(os.path.isabs(args.output_directory)):
args.output_directory = os.path.join(curr_path, args.output_directory)

if args.cpu > cpu_available:
args.cpu = cpu_available
warnings.warn("The number of CPU cores entered is greater than the number of cores available for this process. Executing SICER with the maximum number of cores available.\n")
Expand Down
3 changes: 3 additions & 0 deletions bin/sicer_df
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ def main():
except:
sys.exit("Output directory (%s) could not be created. Terminating program.\n" % args.output_directory)

if not(os.path.isabs(args.output_directory)):
args.output_directory = os.path.join(curr_path, args.output_directory)

if (args.control_file is not None):
if (len(args.control_file) > 2):
sys.stderr.write("Error: Too many control file inputs. SICER accepts at max two files.\n")
Expand Down
Empty file modified docs/contact.md
100644 → 100755
Empty file.
Empty file modified docs/img/sicer2_workflow.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified docs/index.md
100644 → 100755
Empty file.
Empty file modified docs/sicer2_output.md
100644 → 100755
Empty file.
Empty file modified docs/workflow.md
100644 → 100755
Empty file.
Empty file modified mkdocs.yml
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion setup.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name='SICER2',
version='1.0.1',
version='1.0.2',
description = 'SICER2, a redesigned and improved ChIP-seq broad peak calling tool',
long_description='Redesigned and improved version of the original ChIP-seq broad peak calling tool SICER. Also contains Coarse-graining Approach for Identifying Broad Domains from ChIP-Enriched Regions (RECOGNICER)',
url = 'http://zanglab.github.io/SICER2 ',
Expand Down
Empty file modified sicer/__init__.py
100644 → 100755
Empty file.
Empty file modified sicer/lib/Background_island_probscore_statistics.py
100644 → 100755
Empty file.
Empty file modified sicer/lib/GenomeData.py
100644 → 100755
Empty file.
Empty file modified sicer/lib/Utility.py
100644 → 100755
Empty file.
Empty file modified sicer/lib/__init__.py
100644 → 100755
Empty file.
Empty file modified sicer/lib/associate_tags_with_regions.py
100644 → 100755
Empty file.
Empty file modified sicer/main/run_RECOGNICER.py
100644 → 100755
Empty file.
Empty file modified sicer/main/run_RECOGNICER_df.py
100644 → 100755
Empty file.
Empty file modified sicer/main/run_SICER.py
100644 → 100755
Empty file.
Empty file modified sicer/main/run_SICER_df.py
100644 → 100755
Empty file.
Empty file modified sicer/src/__init__.py
100644 → 100755
Empty file.
Empty file modified sicer/src/associate_tags_with_chip_and_control_w_fc_q.py
100644 → 100755
Empty file.
Empty file modified sicer/src/coarsegraining.c
100644 → 100755
Empty file.
Empty file modified sicer/src/coarsegraining.pyx
100644 → 100755
Empty file.
Empty file modified sicer/src/compare_two_libraries_on_islands.py
100644 → 100755
Empty file.
Empty file modified sicer/src/filter_islands_by_significance.py
100644 → 100755
Empty file.
Empty file modified sicer/src/filter_raw_tags_by_islands.py
100644 → 100755
Empty file.
3 changes: 3 additions & 0 deletions sicer/src/find_islands_in_pr.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def combine_proximal_islands(islands, gap, window_size_buffer=3):
"""

proximal_island_dist = gap + window_size_buffer;

if len(islands) == 0:
return []
final_islands = []
current_island = islands[0];

Expand Down
Empty file modified sicer/src/find_union_islands.py
100644 → 100755
Empty file.
Empty file modified sicer/src/make_normalized_wig.py
100644 → 100755
Empty file.
Empty file modified sicer/src/remove_redundant_reads.py
100644 → 100755
Empty file.
Empty file modified sicer/src/run_make_graph_file_by_chrom.py
100644 → 100755
Empty file.
Empty file modified sicer/utility/__init__.py
100644 → 100755
Empty file.
Empty file modified sicer/utility/calculate_cross_correlation_long_range.py
100644 → 100755
Empty file.
Empty file modified sicer/utility/fragment-size-estimation.sh
100644 → 100755
Empty file.
Empty file modified sicer/utility/make_graph_file.py
100644 → 100755
Empty file.
Empty file modified test/control_1.bed
100644 → 100755
Empty file.
Empty file modified test/control_2.bed
100644 → 100755
Empty file.
Empty file modified test/test_scripts/__init__.py
100644 → 100755
Empty file.
Empty file modified test/test_scripts/compare.py
100644 → 100755
Empty file.
Empty file modified test/test_scripts/test.py
100644 → 100755
Empty file.
Empty file modified test/travisCI/compare.py
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified test/travisCI/expected_output/treatment_1-W200-G600.scoreisland
100644 → 100755
Empty file.
Empty file modified test/travisCI/expected_output/treatment_1-W200-cgnormalized.wig
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified test/travisCI/expected_output/treatment_1-W200-islands-summary
100644 → 100755
Empty file.
Empty file modified test/travisCI/expected_output/treatment_1-W200-normalized.wig
100644 → 100755
Empty file.
Empty file modified test/travisCI/expected_output/treatment_1-W200.cgisland
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified test/travisCI/expected_output/treatment_2-W200-G600.scoreisland
100644 → 100755
Empty file.
Empty file modified test/travisCI/expected_output/treatment_2-W200-cgnormalized.wig
100644 → 100755
Empty file.
Empty file modified test/travisCI/expected_output/treatment_2-W200-islands-summary
100644 → 100755
Empty file.
Empty file modified test/travisCI/expected_output/treatment_2-W200-normalized.wig
100644 → 100755
Empty file.
Empty file modified test/travisCI/expected_output/treatment_2-W200.cgisland
100644 → 100755
Empty file.
Empty file modified test/treatment_1.bed
100644 → 100755
Empty file.
Empty file modified test/treatment_2.bed
100644 → 100755
Empty file.

0 comments on commit c081fb8

Please sign in to comment.