-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add customizable samtools exclude flag This adds a new parameter, `--samtools_exclude_flags` that allows one to customize which reads are excluded from CRISPRessoWGS and CRISPRessoPooled runs. * Allow for user filtering of reads in Pooled when calculating n_aligned * Add parameter for CRISPRessoCORE to exclude reads * Fix WGS not having access to args * Update pooled samtools exclude flags to be bitwise OR and add unit tests * Point to new test branch * Update help message for samtools_exclude_flags * Move integration test branch back to master
- Loading branch information
Showing
5 changed files
with
63 additions
and
20 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
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,17 @@ | ||
from CRISPResso2 import CRISPRessoPooledCORE | ||
|
||
|
||
def test_calculate_aligned_samtools_exclude_flags(): | ||
assert CRISPRessoPooledCORE.calculate_aligned_samtools_exclude_flags('0') == hex(0x900) | ||
|
||
|
||
def test_calculate_aligned_samtools_exclude_flags_4(): | ||
assert CRISPRessoPooledCORE.calculate_aligned_samtools_exclude_flags('4') == hex(0x904) | ||
|
||
|
||
def test_calculate_aligned_samtools_exclude_flags_9(): | ||
assert CRISPRessoPooledCORE.calculate_aligned_samtools_exclude_flags('9') == hex(0x909) | ||
|
||
|
||
def test_calculate_aligned_samtools_exclude_flags_0x100(): | ||
assert CRISPRessoPooledCORE.calculate_aligned_samtools_exclude_flags('0x100') == hex(0x900) |