aboutsummaryrefslogtreecommitdiff
path: root/wqflask
AgeCommit message (Expand)Author
2022-03-18add uniform font for titleAlexander Kabui
2022-03-18remove correlation test buttonAlexander Kabui
2022-03-18fixes for ImageButtonOptionsAlexander Kabui
2022-03-18code to fetch scree data from gn3Alexander Kabui
2022-03-18integrate scree plotAlexander Kabui
2022-03-18Merge pull request #671 from Alexanderlacuna/feature/gn3-pca...Replace pca rpy2 codeAlexander Kabui
2022-03-17Fix/change Authors column in phenotype search results...- Limit number of full names to 2 followed by "et al." - Fix wrong logic that was using the full length of the authors string instead of the truncated length when determining the width of the column, resulting in it always being at least 500px wide zsloan
2022-03-17Set min-width for table container, so the table never ends up so narrow it lo...zsloan
2022-03-17Fix authentication for phenotype search results...Previously authentication didn't work correctly if users had "edit" privileges, because the code specifically looked for just "view"; this changes it to check for either "view" or "edit" zsloan
2022-03-17Lint some test filesBonfaceKilz
2022-03-17Fix failing testBonfaceKilz
2022-03-17Create a db connection correctly...* wqflask/maintenance/quantile_normalize.py: Fix how the cursor is created. BonfaceKilz
2022-03-17Skip unittests...These tests touch on core data-structures in gn2; and there's a chance that refactoring said data-structures may break many things. BonfaceKilz
2022-03-17Replace "g.db" object with a proper database connection...* wqflask/tests/unit/wqflask/api/test_correlation.py: Use proper database connection instead of the db connection attached at "g.db". * wqflask/tests/unit/wqflask/snp_browser/test_snp_browser.py: Ditto. * wqflask/wqflask/api/correlation.py: Ditto. * wqflask/wqflask/snp_browser/snp_browser.py: Ditto. BonfaceKilz
2022-03-17Delete dead codeBonfaceKilz
2022-03-17Delete unused "logger" import...* wqflask/wqflask/snp_browser/snp_browser.py: Remove "getLogger". BonfaceKilz
2022-03-17Provide path to default settings/configuration file as a fallback...If the GN2_SETTINGS environment variable, is for some reason, not set, and the application actually ever tries to get a connection to the database, then use the default settings/configuration file. Frederick Muriuki Muriithi
2022-03-16Remove unnecessary print statementzsloan
2022-03-16Replace top comment with docstringzsloan
2022-03-16Add code generating the new genotype files...Also made a large number of other fixes that proved necessary during testing zsloan
2022-03-16Generate JSON file for target genotypes...Also store parents/type metadata from source genofiles zsloan
2022-03-16Fix the way target/source genofiles were being processed + some other changes...- I was mixing up source/target genofiles previously; the JSON file is for the source genofiles - references to the app context are removed in favor of just taking input as arguments or environment variables - Updated example commands zsloan
2022-03-16Add function for mapping strain to sample pos + begin creating generate_new_g...zsloan
2022-03-16Add function for getting strain name from sample namezsloan
2022-03-16Change EOL from CRLF to LFzsloan
2022-03-16Minor changes/bug fixes...- Removed some unused code - Strip marker genotype to avoid newline character at end - Convert zip to list for marker genotypes - Add typing to group_samples - Rename strain_genofile to source_genofile zsloan
2022-03-16Add in-progress gen_ind_genofiles.py...gen_ind_genofiles.py is a command line script to generate genotype files for groups of individuals/samples, taking a source .geno or .json file and a target 'dummy' .geno file as input zsloan
2022-03-14instantiate plotly objectAlexander Kabui
2022-03-14add custom configs for scree plotAlexander Kabui
2022-03-14add scree plot dataAlexander Kabui
2022-03-14add scree plot layoutAlexander Kabui
2022-03-14add plotlyAlexander Kabui
2022-03-14init scree plot templateAlexander Kabui
2022-03-14Warn when someone uploads a csv file that has columns not in the db...* wqflask/wqflask/metadata_edits.py: Import "extract_invalid_csv_headers" and "get_allowable_sampledata_headers". (display_phenotype_metadata): Pass the allowable headers to the template. (update_phenotype): If a user uploads data with a column header that's not in the db, don't upload the file, and send a warning message. * wqflask/wqflask/templates/edit_phenotype.html: List the allowable headers in the template. BonfaceKilz
2022-03-14Remove button for "Edit Privileges"...This is a WIP. BonfaceKilz
2022-03-14Reword link text for downloading csv sample dataBonfaceKilz
2022-03-12Use "database_connection" within a context-manager...Using "database_connection" within a context-manager makes sure that the SQL connection that is created is closed. * wqflask/wqflask/metadata_edits.py (display_probeset_metadata): Connect to the db within a context-manager. (update_phenotype): Ditto. (update_probeset): Ditto. (approve_data): Ditto. BonfaceKilz
2022-03-12Remove unused importsBonfaceKilz
2022-03-12Close a connection after it's use...* wqflask/wqflask/metadata_edits.py (approve_data): Explicitly close a connection after it is used. BonfaceKilz
2022-03-12Use updated `update_sample_data` from gn3BonfaceKilz
2022-03-12Use updated `delete_sample_data` from gn3BonfaceKilz
2022-03-12Use updated `insert_sample_data` from gn3BonfaceKilz
2022-03-12Fix broken f-strings...* wqflask/wqflask/metadata_edits.py (approve_data): Update query strings. BonfaceKilz
2022-03-12Replace `db.traits` with `db.sample_data`...* wqflask/wqflask/metadata_edits.py: Replace imports that start with `db.traits` with `db.sample_data`. BonfaceKilz
2022-03-12display_diffs.html: Display the csv columns header in the diffs pageBonfaceKilz
2022-03-12metadata_edits.py: Use `csv_diff` and `remove_insignificant_edits`...* wqflask/wqflask/metadata_edits (update_phenotype): The logic was for generating csv_diff and removing insignificant values in the edits was moved to gn3; use those functions instead of the manual way. BonfaceKilz
2022-03-12metadata_edits.py: Use "create_dirs_if_not_exists" for creating dirsBonfaceKilz
2022-03-11Fix error with calling database_connection in gen_dropdown_menuzsloan
2022-03-11Add imports to database.py for 4a7e2c1602ed82aabd7d04953067ba49cb1cebffzsloan
2022-03-11Break dependence on `wqflask.utility.tools` to fix circular imports...Remove the `wqflask.utility.tools` and retrieve the `SQL_URI` setting directly from the environment or the settings file. This breaks the circular imports and makes the `wqflask.database` module standalone. Move the `parse_db_url` function to the `wqflask.database` module, where it is more sensible to be. Frederick Muriuki Muriithi