ENH: single pass on file when filtering by metadata
MAINT: removed old print statement
ENH: by sample_ids is now single pass and not in memory
ENH: by prefix is now single pass and not in memory
Merge pull request #1681 from wasade/issue1506

Issue1506