aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
AgeCommit message (Expand)Author
2020-10-12Merge branch 'testing' into build/python3-migrationBonfaceKilz
2020-10-09Apply PEP 8 to buffer...* wqflask/wqflask/wgcna/wgcna_analysis.py: Apply pep8 * wqflask/wqflask/collect.py: Ditto * wqflask/base/trait.py: Ditto BonfaceKilz
2020-10-02Ignore utf-8 encoding errors...* wqflask/base/trait.py (retrieve_trait_info): Add extra param to ignore errors such as: "utf-8 codec can't decode byte 0xb5 in position 0: invalid start byte" thrown in Python3. BonfaceKilz
2020-10-01Convert trait attributes to utf-8 strings if they were bytesBonfaceKilz
2020-09-28Merge branch 'build/python3-migration' of github.com:BonfaceKilz/genenetwork2...BonfaceKilz
2020-09-28Fix casting error...* wqflask/base/trait.py (retrieve_trait_info): If the description_string or discription_display value return a None object, evaluate to an empty string. Fixes errors related to *len(None)*. BonfaceKilz
2020-09-28Merge branch 'testing' into build/python3-migrationBonfaceKilz
2020-09-28Fix casting error...* wqflask/base/trait.py (retrieve_trait_info): If the description_string or discription_display value return a None object, evaluate to an empty string. Fixes errors related to *len(None)*. BonfaceKilz
2020-09-28Convert None to "" in if statement...* wqflask/base/trait.py: Fixes error parsing error: "(GeneNetwork error: float argument required, not NoneType)" BonfaceKilz
2020-09-17Convert "target_string" to a str type...* wqflask/base/trait.py (retrieve_trait_info): Convert "target_string" to a str, otherwise an exception will be thrown if it's None. BonfaceKilz
2020-09-17Apply pep8...* wqflask/base/trait.py: Apply pep8. * wqflask/utility/authentication_tools.py: Ditto. BonfaceKilz
2020-08-27Remove python2 string processing to utf-8...* wqflask/base/trait.py: Remove python2 codecs.BOM_UTF8 methods. * wqflask/wqflask/search_results.py: Remove utf-8 decode method on string. BonfaceKilz
2020-08-27Replace mysqldb's "escape" with the one from utils.db_tools...Mysqldb's escape returns a binary string. Use utils.db_tools which adds an extra step of converting the binary string to a string. BonfaceKilz
2020-08-27Replace "string.split" & "string.join" with python's inbuilt methodsBonfaceKilz
2020-08-26Remove "from __future__ import new_feature" statements...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-future> BonfaceKilz
2020-08-26Rename "unicode" to "str"...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-unicode> BonfaceKilz
2020-08-20Add backward support for urllib...* wqflask/base/trait.py: Remove unused imports * wqflask/db/call.py (Bench): Add urllib2 fallback for python2 BonfaceKilz
2020-08-19Remove extra whitespace(or add it) from comma separated items...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib> BonfaceKilz
2020-08-19Handle the rename of urllib and urllib2 to the urllib package...See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib> BonfaceKilz
2020-08-19Replace backtick repr with the repr() function...* wqflask/base/trait.py: See <https://docs.python.org/2/library/2to3.html#2to3fixer-repr> BonfaceKilz
2020-08-19Wrap `raise` statements in parenthesis...Run `2to3-3.8 -f raise -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-raise> BonfaceKilz
2020-08-19Fix dictionary iteration methods...Run `2to3-3.8 -f dict -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-dict> and <https://stackoverflow.com/questions/17695456/why-does-python-3-need-dict-items-to-be-wrapped-with-list> BonfaceKilz
2020-07-21Fixed issue that caused group codes to be wrong sometimeszsloan
2020-07-14Added binary casting to phenotype trait info query to fix unicode issuezsloan
2020-07-08Removed remaining unused references to the old qtlreaperzsloan
2020-07-06Temporarily commented out the line in trait.py doing the encoding until we fi...zsloan
2020-07-06Fixed some of the logic with how traits are authenticated to avoid situation ...zsloan
2020-06-29Change that hopefully fixes some encoding stuffzsloan
2020-06-24Temporary partial fix to issue of resources without info; need to add somethi...zsloan
2020-06-20Fixed ports for proxy (though I need to add the port to global variables) and...zsloan
2020-06-20Added some admin functionality and fixed issue with temp traitszsloan
2020-06-17Adding all the authentication stuffzsloan
2020-06-05Commiting other current group/resource management code, plus the new fileszsloan
2020-06-04Added back in trait info queries for situations where the proxy isn't runningzsloan
2020-06-04Really should have split this into many more commits:...- 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 zsloan
2020-05-28Added lines calling proxy for publish datasets + added some resource redis qu...zsloan
2020-04-24Replaced hard-coded instances of GN2 urls with ones pulled from settings filezsloan
2020-04-06Added Mean column for phenotype traits in search and global search result tableszsloan
2020-03-09I think this should complete consolidating all the collections code.zsloan
2020-03-03Forgot to replace code referring to hmac function user_managerzsloan
2020-02-06Fixed encoding issuezsloan
2020-01-22Fixed issue that caused submitting temp traits to not workzsloan
2020-01-08Made change that I think should fix the unicode stuff once and for allzsloan
2019-12-04Fixed error that sometimes occurs if there's no mean expression and changed i...zsloan
2019-11-21Use updated phenotype display IDs for all phenotypes with codes now, not just...zsloan
2019-11-21Added 3-letter codes to unpublished phenotype traits and fixed issue with ord...zsloan
2019-10-04Fixed issue where there was an error if the REST API used for aliases was down...Added option to download as JPEG in addition to SVG for basic stats figures zsloan
2019-08-01Updated aliases to get all species aliases and remove duplicateszsloan
2019-08-01Added wikidata aliases...Fixed year to not be a hyperlink when no pubmed id Fixed first column width so it doesn't go onto two lines for trait details zsloan
2019-08-01Made some more aesthetic changes to various pages and charts/figures...Added some information to the mapping loading page zsloan