Skip to content

Commit

Permalink
add group switch to stats option
Browse files Browse the repository at this point in the history
  • Loading branch information
awitney committed Jan 24, 2017
1 parent beb22ad commit f235250
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions poretools/poretools_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ def main():
default=False,
action='store_true',
help=('Verbose output in tab-separated format.'))
parser_stats.add_argument('--group',
dest='group',
default=0,
type=int,
help=('Base calling group serial number to extract, default 000'))
parser_stats.set_defaults(func=run_subtool)


Expand Down
2 changes: 1 addition & 1 deletion poretools/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def run(parser, args):
logger.warning("No valid sequences observed.\n")
else:
sizes = []
for fast5 in Fast5File.Fast5FileSet(args.files):
for fast5 in Fast5File.Fast5FileSet(args.files, group=args.group):
fas = fast5.get_fastas(args.type)
sizes.extend([len(fa.seq) for fa in fas if fa is not None])
fast5.close()
Expand Down

0 comments on commit f235250

Please sign in to comment.