Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-20 | Remove hard-coded values | Munyoki Kilyungi | |
* scripts/sampledata.py (dump_sample_data): Remove hard-coded values for trait_id and dataset_name. | |||
2023-01-20 | Fix typo | Munyoki Kilyungi | |
2023-01-20 | Add example that demos dumping data from an entire dataset | Munyoki Kilyungi | |
2023-01-20 | Add a function that fetches all the traits given the right params | Munyoki Kilyungi | |
* scripts/sampledata.py (fetch_all_traits): New function. | |||
2023-01-20 | Create script to dumple sample data given the dataset and trait id | Munyoki Kilyungi | |
* scripts/sampledata.py: New file. | |||
2022-06-03 | Give speciesid single quotes like the other config_dic keys, just for ↵ | zsloan | |
consistency | |||
2022-06-03 | Allow GenoFreezeId to be passed in configurations to load_genotypes.py | zsloan | |
2022-03-11 | Add updated version of script for adding new expression sample data | zsloan | |
2022-03-10 | Use context manager with database connection | Frederick Muriuki Muriithi | |
Use the `with` context manager with database connections and cursors to ensure that they are closed once they are no longer needed. Where it was not feasible to use the `with` context manager without a huge refactor/rewrite, the cursors and connections are closed manually. | |||
2021-12-17 | Some updates to the DOL genotypes conversion script | zsloan | |
2021-11-05 | Add created_timestamp when creating a new group | BonfaceKilz | |
2021-11-05 | Add created_timestamp when creating a new group | BonfaceKilz | |
2021-11-05 | Use members uuid | BonfaceKilz | |
2021-11-05 | Add script for manually adding "editors" to each resource | BonfaceKilz | |
2021-10-25 | scripts: resource: Add value for "admin" when updating resources | BonfaceKilz | |
2021-10-25 | scripts: resource.py: Add shebang | BonfaceKilz | |
2021-10-25 | scripts: group.py: Add extra optional arg to specify uid | BonfaceKilz | |
2021-10-25 | scripts: group.py: Add shebang | BonfaceKilz | |
2021-10-22 | Include the admin privilege for the 'editors' group, since it wasn't being ↵ | zsloan | |
set before (which caused some problems) | |||
2021-10-08 | Fixed the sort to account for both chr and pos in a kind of hack-y way + ↵ | zsloan | |
added some comments + changed EOL to LF because the file suddenly started including EOL characters | |||
2021-10-08 | Adding convert_dol_genotypes.py to scripts; everything is hard-coded in it ↵ | zsloan | |
since I was only writing it to generate a specific file and it probably won't be re-used | |||
2021-10-06 | scripts: resource: Add option for specifying a groups uuid | BonfaceKilz | |
2021-10-06 | scripts: group: Replace args.group_name with data["field"] | BonfaceKilz | |
2021-10-06 | scripts: group: Update docstrings for "create_group_data" | BonfaceKilz | |
2021-10-06 | scripts: group: Break up long line | BonfaceKilz | |
2021-10-06 | scripts: group: Fix indentation | BonfaceKilz | |
2021-10-06 | scripts: group: Remove empty `""` value for data.get | BonfaceKilz | |
data.get("field") will default to None if there is no value; and None is falsy. | |||
2021-10-06 | scripts: group: Remove unused import | BonfaceKilz | |
2021-10-06 | scripts: group: Use a unique key to identify a group | BonfaceKilz | |
2021-10-04 | Moved REDIS_CONN back into if __name__ == '__main__' since it doesn't need ↵ | zsloan | |
to be globally accessed anymore (I think I intiially moved it because I was calling it in create_group_data, but that ended up being unnecessary | |||
2021-10-04 | Changed the group.py script to replace user e-mails with IDs and to include ↵ | zsloan | |
id, name, changed_timestamp, and created_timestamp in group details | |||
2021-10-04 | scripts: group.py: Modify exit message when displaying updated data | BonfaceKilz | |
2021-10-04 | scripts: group.py: Remove "glom" dependency | BonfaceKilz | |
2021-10-04 | Decode redis response by default | BonfaceKilz | |
2021-10-04 | Modify resource editing script to enable data backups & restoration | BonfaceKilz | |
2021-10-04 | Add script that adds "editors" group to all resources in Redis | BonfaceKilz | |
2021-10-04 | Add script for creating/ updating groups during authorisation | BonfaceKilz | |
2021-08-16 | Add "Description" column to CaseAttribute | BonfaceKilz | |
See: eecaad2d | |||
2021-05-13 | Fix load_phenotypes to run with GN2 latest | Arthur Centeno | |
2020-10-29 | Replace map on strip with a list comprehension that calls strip() | BonfaceKilz | |
* scripts/maintenance/readProbeSetSE_v7.py: In Python3 you can't map string.strip on a list of strings. Instead use a list comprehension and apply strip() on each element of the list. * wqflask/wqflask/marker_regression/plink_mapping.py: Ditto. * wqflask/wqflask/snp_browser/snp_browser.py: Ditto. | |||
2020-08-27 | Replace "string.split" & "string.join" with python's inbuilt methods | BonfaceKilz | |
2020-08-26 | Replace tabs with spaces | BonfaceKilz | |
* scripts/maintenance/readProbeSetMean_v7.py: Run python-autopep8 on this file. | |||
2020-08-19 | Remove extra whitespace(or add it) from comma separated items | BonfaceKilz | |
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib> | |||
2020-08-19 | Make Python more idiomatic | BonfaceKilz | |
Run `2to3-3.8 -f idioms -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-idioms> | |||
2020-08-19 | Convert `raw_input` to `input` | BonfaceKilz | |
Run `2to3-3.8 -f raw_input -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-raw_input> | |||
2020-08-19 | Convert the use of iterator’s next() methods to the next() function | BonfaceKilz | |
Run `2to3-3.8 -f next -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-next> | |||
2020-08-19 | Change `dict.has_key(key)` to `key in dict` | BonfaceKilz | |
Run `2to3-3.8 -f has_key -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-has_key> | |||
2020-08-19 | Fix dictionary iteration methods | BonfaceKilz | |
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> | |||
2020-08-19 | Wrap `map()` in a `list` call | BonfaceKilz | |
Run `2to3-3.8 -f map -w .` See: <https://docs.python.org/2/library/2to3.html#2to3fixer-map> | |||
2020-08-18 | Replace "raw_input" with "input" | BonfaceKilz | |
* scripts/maintenance/readProbeSetMean_v7.py: Use "input". See https://docs.python.org/3/whatsnew/3.0.html#builtins |