Skip to content

Commit

Permalink
Merge pull request #113 from awitney/master
Browse files Browse the repository at this point in the history
add group switch to stats option
  • Loading branch information
arq5x committed Jan 26, 2017
2 parents beb22ad + f235250 commit df04069
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
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
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 df04069

Please sign in to comment.