# HG changeset patch # User jpayne # Date 1613775119 18000 # Node ID 3852b3edc8a49663ca886fa56954d2a5a917e334 # Parent a90a883f88f976dd0df9dd394c0ed881391d4c91 "planemo upload for repository https://toolrepo.galaxytrakr.org/" diff -r a90a883f88f9 -r 3852b3edc8a4 reads_subsampler.xml --- a/reads_subsampler.xml Fri Feb 19 15:28:20 2021 -0500 +++ b/reads_subsampler.xml Fri Feb 19 17:51:59 2021 -0500 @@ -6,12 +6,10 @@ @@ -34,8 +32,10 @@ - + + + @@ -56,6 +56,15 @@ + + + + + + + + + diff -r a90a883f88f9 -r 3852b3edc8a4 subsamplr.py --- a/subsamplr.py Fri Feb 19 15:28:20 2021 -0500 +++ b/subsamplr.py Fri Feb 19 17:51:59 2021 -0500 @@ -43,7 +43,7 @@ outs = [fout, rout] except ValueError: # not enough values to unpack try: - fin, fout, cov, gen_size, *ops = argv[1:] + fin, fout, cov, gen_size, *opts = argv[1:] ins = [fin] outs = [fout] except ValueError: @@ -70,7 +70,8 @@ outs = [stack.enter_context(openn(path, 'w')) for openn, path in zip(file_openers, outs)] # opened output files for file in ins: - print(file.name) + if hasattr(file, "name"): + print(file.name) # https://en.m.wikipedia.org/wiki/Reservoir_sampling