-
Notifications
You must be signed in to change notification settings - Fork 42
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 #487 from sunbeam-labs/485-fix-filter_reads-and-re…
…move_low_complexity-memory-inefficiency 485 fix filter reads and remove low complexity memory inefficiency
- Loading branch information
Showing
6 changed files
with
32 additions
and
41 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
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,9 +1,8 @@ | ||
from sunbeamlib.qc import filter_ids, remove_pair_id | ||
|
||
with open(snakemake.log[0], "w") as log: | ||
ids = [] | ||
with open(snakemake.input.ids) as f: | ||
ids = [remove_pair_id(id, log) for id in f.readlines()] | ||
ids = set(remove_pair_id(id, log) for id in f.readlines()) | ||
log.write(f"Num Komplexity IDs to be filtered: {len(ids)}\n") | ||
|
||
filter_ids(snakemake.input.reads, snakemake.output[0], ids, log) |