-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating biopython+numpy images built with anaconda to biopython wo a…
…naconda
- Loading branch information
1 parent
7aac083
commit 302c18e
Showing
5 changed files
with
88 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Script for detecting trailing Ns that should be trimmed from an assembly, from James Torrance ([email protected]). Edited by Eerik Aunin ([email protected]) | ||
Script for detecting trailing Ns that should be trimmed from an assembly, | ||
Written by James Torrance ([email protected]). | ||
Edited by Eerik Aunin ([email protected]) | ||
""" | ||
|
||
import re | ||
|
@@ -43,9 +45,11 @@ def main(fasta_file, output_file): | |
startseq = "" | ||
if start_n_match: | ||
startseq = start_n_match.group(1) | ||
|
||
endseq = "" | ||
if end_n_match: | ||
endseq = end_n_match.group(1) | ||
|
||
realseq_length = len(seq_string) - len(startseq) - len(endseq) | ||
# Handle "all Ns exception" | ||
if len(startseq) == len(seq_string): | ||
|
@@ -85,7 +89,7 @@ def main(fasta_file, output_file): | |
|
||
# Does the *end* of this block satisfy the window condition? | ||
bases_in_window = 0 | ||
start_of_first_base_block_in_window = None | ||
start_of_first_base_block_in_window = 0 # Replacement of the None assignment with 0 to apease the linting gods | ||
for non_n_region in non_n_regions: | ||
if non_n_region[1] >= current_non_n_end - winsize: | ||
start_of_first_base_block_in_window = non_n_region[0] | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.