Skip to content

Commit

Permalink
Fix bug where --trim_start and --trim_end were not passed correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ollenordesjo committed Jun 29, 2022
1 parent ebdb5ea commit 3705eeb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.2.11]
### Fixed
- Passed --trim_start and --trim_end from cli to main function for split_on_adapter

## [v0.2.10]
### Added
- Flags `--trim_start` and `--trim_end` for split_on_adapter (https://github.com/nanoporetech/duplex-tools/issues/13)
Expand Down
2 changes: 1 addition & 1 deletion duplex_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"split_on_adapter", "assess_split_on_adapter",
"pairs_from_summary", "filter_pairs"]

__version__ = '0.2.10'
__version__ = '0.2.11'


def main():
Expand Down
7 changes: 5 additions & 2 deletions duplex_tools/split_on_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def argparser():
help="How many bases to trim (mask) "
"from the beginning of the strand" + default)
parser.add_argument(
"--trim_end", default=200, type=int, dest='m',
"--trim_end", default=200, type=int,
help="How many bases to trim (mask) "
"from the end of the strand" + default)
return parser
Expand All @@ -384,4 +384,7 @@ def main(args):
args.print_alignment,
args.print_threshold_delta,
args.threads,
args.allow_multiple_splits)
args.allow_multiple_splits,
args.trim_start,
args.trim_end,
)

0 comments on commit 3705eeb

Please sign in to comment.