aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
AgeCommit message (Expand)Author
2021-04-30autopep8: Run autopep8 100 times with target rules...Rules used are: E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,E242, E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306, E401,E501,E70,E701,W291,W292,W293,W391,W504,E101,E11,E121, E122,E123,E124,E125,E126,E127,E128,E129,E131,E133 BonfaceKilz
2021-04-30autopep8: Fix E121,E122,E123,EI24,E125,E126,E127,E128,E129,E131,E133BonfaceKilz
2021-04-30autopep8: Fix W504BonfaceKilz
2021-04-30autopep8: Fix W291, W292, W293, W391BonfaceKilz
2021-04-30autopep8: Fix E501BonfaceKilz
2021-04-30autopep8: Fix E301,E302,E303,E304,E305,E306BonfaceKilz
2021-04-30autopep8: Fix E20-E27...Run: python -m autopep8 --in-place --recrusive ./ --select\ E20,E211,E22,E224,E224,E225,E226,E227,E228,E231,E241,\ E242,E251,E252,E26,E265,E266,E27 -p 3 BonfaceKilz
2021-04-29Merge branch 'testing' into Feature/Add-upload-data-formsBonfaceKilz
2021-04-29Run `sed -i 's/(object)//g'`...See: https://is.gd/pL7IJF Ran: find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/(object)//g' BonfaceKilz
2021-04-29base: trait: Remove unused function...* wqflask/base/trait.py (jsonable_table_row): Delete it. BonfaceKilz
2021-04-29base: data_set: Remove unused method...* wqflask/base/data_set.py (Dataset.get_accession_id): Delete it. BonfaceKilz
2021-04-29base: data_set: Apply pep-8BonfaceKilz
2021-04-29base: data_set: Remove unused method...* wqflask/base/data_set.py (riset): Delete class method. BonfaceKilz
2021-04-29base: data_set: Rewrite data_set using @dataclass...@dataclasses should be used to hold only data. Since dataset only encapsulates data, re-writing it using a dataclass makes it more readable and easier to follow. BonfaceKilz
2021-04-28Added something to jsonable in trait.py to account for temp traits (this is n...zsloan
2021-04-23Remove stale commentsBonfaceKilz
2021-04-19Removed unused codezsloan
2021-03-17Added the RRID urls for mouse and rat to webqtlConfigzsloan
2021-03-03Checked if pre_publication_description is NULL, because there was an error re...zsloan
2021-02-18Changed DEFAULT_PERMISSIONS AND SUPER_PERMISSIONS to not have permissions be ...zsloan
2021-02-18Fixed missing colonzsloan
2021-02-18Fixed checking permissions in trait.pyzsloan
2021-02-18Fixed SUPER_PRIVILEGES and DEFAULT_PRIVILEGESzsloan
2021-02-11Removed some log statementszsloan
2021-02-11Ensure trait description_display is setzsloan
2020-12-07Changed the logic in create_trait so that permissions should always be set, a...zsloan
2020-12-01Merge pull request #482 from zsloan/feature/corr_table_changes...Feature/corr table changeszsloan
2020-11-18Fixed issue where the cofactor trait descriptions didn't work correctly...for genotype/snp cofactors (the code previously only accounted for probeset/phenotype cofactors, so it was treating genotypes/snps like phenotype traits) zsloan
2020-11-18Fixed issue that was causing scatterplot cofactors to not work if the...cofactors were genotypes (because it tried to get the "description_display" which doesn't exist for genotype traits) zsloan
2020-11-11Switched checking if a trait is confidential to checking if it has a pubmed I...zsloan
2020-11-03Changed the syntax for the "sort" function in the docstring of GeneralObject ......* wqflask/base/GeneralObject.py - edited docstring to be correct for Python 3 zsloan
2020-10-27Get the "first_attr_start_pos" from a samplelist instead of from each individ......* wqflask/base/webqtlCaseData.py - Removed code getting first_attr_start_pos * wqflask/wqflask/show_trait/SampleList.py - Added code getting first_attr_start_pos and assigning it to all samples + removing one unnecessary sort * wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js - Fixed issue that was causing the N column to not be displayed zsloan
2020-10-20Merge branch 'testing' into build/python3-migrationBonfaceKilz
2020-10-19Merge branch 'testing' into scroller_testingzsloan
2020-10-12Merge branch 'testing' into build/python3-migrationBonfaceKilz
2020-10-09Merge pull request #458 from BonfaceKilz/tests/add-extra-tests-for-collections...Tests/add extra tests for collectionsBonfaceKilz
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-08Fixed remaining issue that applies to all dataset types...* wqflask/base/data_set.py - Fixed issue where there was an error when trying to take the len of the query results when there were no results zsloan
2020-10-08Fixed issue where new phenotype groups wouldn't be saved to the self.datasets......* wqflask/base/data_set.py - Set "group_name" as a separate variable from "name" to avoid it being used as the key in self.datasets zsloan
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-30Removed unused code from TempDataSet class...* wqflask/base/data_set.py - TempDataSet class contained some code referring to the SQL DB, but temp traits aren't stored in the SQL DB anymore zsloan
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-18Made a bunch of changes to move trait page DataTables initialization to...a separate file (initialize_show_trait_tables.js). The biggest complication was getting the order of attributes in the rows to sync with the order of atribute namees in the column headers. Previously this logic was all in the template. * wqflask/base/webqtlCaseData.py - added attribute first_attr_col as a very awkward solution to passing the column position into the column render function in situations where there are case attribute columns (which can be variable in number) * wqflask/wqflask/show_trait/show_trait.py - Replace "attribute_names" in js_data with "attributes" (which allows the JS access to more information) and also pass new se_exists and has_num_cases variables with js_data, so the javascript has access to whether or not those columns exist in the table * wqflask/wqflask/static/new/javascript/show_trait.js - Change case attribute-related logic to use js_data.attributes instead of js_data.attribute_names * wqflask/wqflask/templates/show_trait.html - Removed table initialization from template * wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js - new file that initializes tables and reproduces what the template logic used to do with JS logic zsloan
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