Closed DHekstra closed 1 year ago
before I do a full review here, there are few general structure issues:
src/
directories. There seem to be 3 extra rs-booster
which shouldn't be a part of this updateunit_tests.sh
seems useful for your testing/development, but for this package we use pytest
for writing unit tests. Please check out the tests directory for some examples, or the equivalent tests in reciprocalspaceship
for more extensive examples. There is also some documentation for how to run these sorts of tests here. These tests are automatically run in this PR, and they are currently failing which means this PR currently breaks the tests (or more likely, has an error that prevents it from being imported currently).reciprocalspaceship
. I don't think it's the right place for stashing example notebooks -- I think we should find another location for that. More broadly, if these stats/
tools are becoming very specific/central to careless
processing, I think we should discuss whether they belong in the careless
repo itself. Otherwise, I think things may become a bit splintered. @kmdalton -- let me know your thoughts on that.
src
directories. All checks now pass. I think they failed previously because of a time-out.Based on our offline discussion, can I close this PR?
yes, I went ahead and closed it.
In this PR:
careless_report.py
. Should be able to run$ python careless_report.py -p prefix
in any Careless output dir and get multiplicity, completeness, F/sigF; if xval files: Rsplit, CC1/2, CCanom; if predictions files: CCpred.rsplit.py
, based on what we developed in July for the Neutze group.ccanom.py
,ccpred.py
,cchalf.py
to be able to directly call the functions that calculate these statistics from notebooks and other scripts, and to be able to providers.DataSet
objects as input, in addition to being able to provide mtz filenames. I removed 'overall
' flags. These functions now return a dataframe with output per bin and overall statistics.summary_stats.py
, which contains some helper functions, including a function,parse_xval_stats()
, that formats the output fromanalyze_cchalf_mtz()
,analyze_ccanom_mtz()
,analyze_rsplit_mtz()
dataset_statistics.ipynb
, that shows how to use these functions to analyze Careless output in a notebook. Evenutally, this notebook should probably live oncareless-examples
instead./n/holyscratch01/hekstra_lab/Lab/rsbooster_tests