Skip to content

Vulture of #621: "add estimate_optimal_hash.py"#1106

Merged
luizirber merged 15 commits into
masterfrom
fix/390
Jun 28, 2015
Merged

Vulture of #621: "add estimate_optimal_hash.py"#1106
luizirber merged 15 commits into
masterfrom
fix/390

Conversation

@SensibleSalmon

Copy link
Copy Markdown
Contributor

Copied from #621, addresses #390(ish)

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author
  • Is it mergeable?
  • Did it pass the tests?
  • If it introduces new functionality in scripts/ is it tested?
    Check for code coverage with make clean diff-cover
  • Is it well formatted? Look at make pep8, make diff_pylint_report,
    make cppcheck, and make doc output. Use make format and manual
    fixing as needed.
  • Did it change the command-line interface? Only additions are allowed
    without a major version increment. Changing file formats also requires a
    major version number increment.
  • Is it documented in the ChangeLog?
    http://en.wikipedia.org/wiki/Changelog#Format
  • Was a spellchecker run on the source code and documentation after
    changes were made?
  • Is the Copyright year up to date?

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

retest this, please

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

@ctb @luizirber CR/merge, please?

@luizirber

Copy link
Copy Markdown
Member

Suggestions:

  • Move estimate_* functions to oxli/functions.py
  • Merge optimal_args_HLL.py into unique-kmers.py (both in sandbox)

Comment thread tests/test_sandbox_scripts.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use print("{0}".format(err)) here? (source)

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

@ctb What unit of memory is -M in? Gigs? Megs?

@ctb

ctb commented Jun 19, 2015

Copy link
Copy Markdown
Member

Bytes.

Titus Brown, ctbrown@ucdavis.edu

On Jun 19, 2015, at 2:16 PM, Jake Fenton notifications@github.com wrote:

@ctb What unit of memory is -M in? Gigs? Megs?


Reply to this email directly or view it on GitHub.

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

retest this, please

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

retest this please

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

@ctb @luizirber @camillescott CR/merge, please?

@ctb

ctb commented Jun 22, 2015

Copy link
Copy Markdown
Member

(Please wait to ask for a CR or a merge until after the tests pass - thanks :)

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

Weird. 2.7 and 3.3 had passed last I saw.

Sigh.

On Mon, Jun 22, 2015, 16:38 C. Titus Brown notifications@github.com wrote:

(Please wait to ask for a CR or a merge until after the tests pass -
thanks :)


Reply to this email directly or view it on GitHub
#1106 (comment).

Comment thread sandbox/optimal_args_HLL.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be imported from oxli.functions now.

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

retest this please

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

@ctb @luizirber @camillescott CR and merge, please

Also, for next steps: I move that the argparser stuff currently here https://github.com/dib-lab/khmer/pull/1106/files#diff-c9f39ec665e36b5911296d1f4028270cR61 gets moved into the oxli module so it can be added to scripts easily (a la threading args). Some additional processing stuff will need to be added to the scripts that implement this but it should be along the lines of "if memory options then use returned values"

Comment thread sandbox/estimate_optimal_hash.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be -N?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @bocajnotnef

@ctb

ctb commented Jun 23, 2015

Copy link
Copy Markdown
Member

Regarding your "next steps", above, could you (1) read through #1050 and (2) create a new issue with your proposal, taking into account the changes in #1050?

Comment thread oxli/functions.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please document what N and f are, thx :)

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

@ctb @luizirber CR/merge, please?

Comment thread sandbox/optimal_args_HLL.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Y U NO PUT THIS LINES IN sandbox/unique-kmers.py

Ahem, sorry. This output is fast to calculate, and it would be useful on sandbox/unique-kmers.py too. Which is basically this script, minus this output. Merge them, please? =]

@ctb ctb Jun 24, 2015 via email

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@ctb ctb Jun 24, 2015 via email

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving lines.

Woo reading.

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

retest this please

1 similar comment
@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

retest this please

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

Retest this please.

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

retest this please

@SensibleSalmon

Copy link
Copy Markdown
Contributor Author

@ctb @luizirber CR/merge please? Tests/make-diff/pep8 passing locally.

@ctb

ctb commented Jun 26, 2015

Copy link
Copy Markdown
Member

On Fri, Jun 26, 2015 at 10:30:18AM -0700, Jake Fenton wrote:

@ctb @luizirber CR/merge please? Tests/make-diff/pep8 passing locally.

I think this belongs in @luizirber's hands :)

Note that if you want to start working on a new PR that's predicated on
this one (or perhaps on two PRs) you can just merge those branches into
a new branch and set up a PR against that one.

Comment thread oxli/functions.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is broken in the output. Shows up as

number of unique k-mers:
false positive rate:    108047.000

should be

number of unique k-mers: 108047
false positive rate:    0.01

(or something similar, I just ran over a file I had lying around here).

@luizirber

Copy link
Copy Markdown
Member

LGTM, I fixed the ChangeLog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants