Age | Commit message (Collapse) | Author |
|
* wqflask/utility/authentication_tools.py
(check_resource_availability): Combine if statements into one boolean
check in one if branch.
|
|
work
* wqflask/utility/redis_tools.py - There was an issue where resources
wouldn't be updated if they already existed. This is because the code
didn't yet account for the "update" tag (that is meant to give the
option of preventing updating resources when running the script to enter
all resources into Redis). I changed the logic to add a resource if
"update" is True or the resource doesn't already exist (so it won't if
update is False and the resource exists).
|
|
group didn't have an InbredSetCode set in the DB
* wqflask/utility/authentication_tools.py - Changed get_group_code to
return an empty string instead of None if InbredSetCode doesn't exist
for a dataset group
* wqflask/wqflask/views.py - Changed zipped export filename to
"export_(datetime)" instead of "collection_(datetime)" since this export
can occur from both the collection page and the global search page
|
|
* wqflask/utility/Plot.py: Remove unused imports like "numarray". "numarray" is
does not have py3 support so it's important to remove references to it.
|
|
user apparently doesn't have access to, so I replaced it with a link to
the dynamically set TEMPDIR
* wqflask/utility/pillow_utils.py - Replaced "/tmp/" in image location
with TEMPDIR
|
|
* wqflask/utility/pillow_utils.py: New method.
|
|
Use the new draw_rotated_text() function to draw the text rotated as was
formerly done.
* wqflask/utility/Plot.py (plotBar): Use draw_rotated_text().
* wqflask/wqflask/marker_regression/display_mapping_results.py:
(DisplayMappingResults) Use draw_rotated_text().
|
|
* wqflask/utility/pillow_utils.py: Create a module to hold some utility
functions for drawing with Pillow. Initialise the module with a function to draw
rotated text.
|
|
* wqflask/utility/Plot.py: Update font paths.
* wqflask/fonts/ttf: Update font files.
|
|
* wqflask/wqflask/marker_regression/display_mapping_results.py: Add font files
(DisplayMappingResults): Update the code from the Piddle way of things to the
Pillow way of things, for example, replace:
- pid.drawRect(...) with im_drawer.rectangle(...)
- pid.drawString(...) with im_drawer.text(...)
- pid.drawPolygon(...) with im_drawer.polygon(...) etc.
* wqflask/utility/Plot.py: Migrate code from the older, unsupported Piddle to
the newer Pillow library.
|
|
* wqflask/utility/authentication_tools.py: the code forgot to get
resource_info when a resource wasn't in Redis yet, causing an error when
it was referenced, so I added a line getting the resource info (and also
a couple comments for other lines related to authentication)
|
|
|
|
Build/add tests
|
|
This reverts commit d5e87fa6fe7546b46790f512d984a5501223082f.
|
|
* wqflask/utility/tools.py: Unittests will use `from wqflask.wqflask import app`
and the gn2 script will use `from wqflask import app`
|
|
* wqflask/utility/formatting.py: apply it
|
|
* wqflask/utility/formatting.py(numify): Update `num_repr` to have a zero
|
|
* wqflask/utility/corr_result_helpers.py(normalize_values_with_values):
Remove `num_overlap`
|
|
* wqflask/utility/corr_result_helpers.py(normalize_values):
At no one point will that assert be hit
|
|
* wqflask/utility/corr_result_helpers.py: Delete doc-test
|
|
* wqflask/utility/corr_result_helpers.py(normalize_values): Replace loop with
zip form
|
|
* wqflask/utility/chunks.py: Remove test code from module
|
|
This reverts commit d5e87fa6fe7546b46790f512d984a5501223082f.
|
|
* wqflask/utility/tools.py: Unittests will use `from wqflask.wqflask import app`
and the gn2 script will use `from wqflask import app`
|
|
|
|
|
|
|
|
where a trait is authenticated twice
|
|
something that automatically inserts resources with default privileges
|
|
and also simplified the check_owner_or_admin function a little
|
|
|
|
|
|
|
|
|
|
- Now use proxy to pull trait data and hide traits/results that the user
doesn't have view permission for
- Created a factory method for creating trait ob so it can return None
when user doesn't have view permissions (this is why such a large number
of files are changed)
- Added metadata to permutation export
- Added current group management code
- Added fixed password verification e-mail code
|
|
queries and a missing import for the hmac functions
|
|
|
|
|
|
|
|
on testing branch before merging Danny's changes and testing them
|
|
|
|
|
|
|
|
GN2 should now work when Redis is empty
|
|
- Added permutation strata option for R/qtl
- Made a variety of aesthetic changes to collections-related pages
- Made a variety of aesthetic changes to the multi-trait tool options on the search result and correlation pages
- Made some functional changes to collections that prevent duplicate traits and ensure new traits are at the top
- The "Default Collection" is now always at the bottom of the collection list and renamed to "Your Default Collection"
|
|
Fixed some issues with displaying the R/qtl results from the RData HET3-ITP dataa
|
|
to how it decides which mapping methods to display on the trait page
|
|
|
|
|
|
|