aboutsummaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2024-10-17Undo transpose for any transposed filesFrederick Muriuki Muriithi
To reduce the complexity involved in the processing of the files, we undo any transposition of the CSV files for those files that are marked as transposed.
2024-10-17Pass new arguments to QC function.Frederick Muriuki Muriithi
2024-10-17Add `speciesid` and `populationid` arguments to the script.Frederick Muriuki Muriithi
2024-10-17Add the working directory argument to the script.Frederick Muriuki Muriithi
Add a `--working-dir` argument to allow passing a directory where the script process the files within. If not provided, it defaults to a directory within the systems temporary directory.
2024-10-17Extract the R/qtl2 bundle for processing.Frederick Muriuki Muriithi
To enable processing of the files individually, this commit will enable the extraction of the files into a known working directory in which all further processing will take place.
2024-10-17Extract common functions.Frederick Muriuki Muriithi
2024-10-17Save errors for each file in lists. Parallelise error checking.Frederick Muriuki Muriithi
* Save the errors for each file in a redis list for that file. * Make error checking parallel, i.e. ensure every file of a particular type is checked completely independent of other files of the same type.
2024-10-17Rewrite the QC code for R/qtl2Frederick Muriuki Muriithi
2024-10-14Initialise background script for running QC on phenotype bundles.Frederick Muriuki Muriithi
2024-10-14BugFix: Use provided prefixFrederick Muriuki Muriithi
Use the provided prefix rather than calling `jobs.jobsnamespace()` function that depends of an app context existing.
2024-10-14Make addition of arguments independent of each other.Frederick Muriuki Muriithi
2024-09-09Enable samples uploads.Frederick Muriuki Muriithi
2024-09-03Initialise the populations package and update references.Frederick Muriuki Muriithi
2024-08-28Move code handling expression data upload into new module.Frederick Muriuki Muriithi
2024-08-16Log out correct parameters.Frederick Muriuki Muriithi
2024-08-13Bug: cross reference with NULL cM when "gmap" file is absentFrederick Muriuki Muriithi
The "gmap" file might not exist in some bundles. In those instances, cross-reference the data without including the genotypes' physical positions (cM).
2024-08-12Rename module: Module contains exceptions classes.Frederick Muriuki Muriithi
2024-08-08Fix bugs and pass in logger to functions.Frederick Muriuki Muriithi
2024-08-06Pass logger on to inner functionsFrederick Muriuki Muriithi
Pass the logger forward to inner functions to help with debugging things.
2024-07-25Fix typing and linting errors.Frederick Muriuki Muriithi
2024-07-25Rename module: qc_app --> uploaderFrederick Muriuki Muriithi
2024-07-05bug: Return a hashable key, not a dict.Frederick Muriuki Muriithi
2024-07-02Call correct method.Frederick Muriuki Muriithi
2024-07-02Ensure no duplicated values for the query.Frederick Muriuki Muriithi
2024-07-01Check for genotype samples in the databaseFrederick Muriuki Muriithi
Check for genotype samples in both the R/qtl2 file and in the database.
2024-06-27Fix bug with the logging setup.Frederick Muriuki Muriithi
2024-04-12Move entry-point module to scripts package.Frederick Muriuki Muriithi
This ensures the entry-point script/module is actually installed together with the rest of the code.
2024-04-08Fix pylint and mypy errors.Frederick Muriuki Muriithi
2024-04-04Remove unused database connection.Frederick Muriuki Muriithi
2024-04-03Reduce size of data inserted per queryFrederick Muriuki Muriithi
Reduce the size of data inserted per query since MariDB allows a packet with a maximum size of 1GB. This should hopefully resolve the …OperationalError: (2006, 'Server has gone away') error.
2024-03-29Quiet linter.Frederick Muriuki Muriithi
2024-03-22Notify user if identifiers are not consistent.Frederick Muriuki Muriithi
2024-03-22Map names in files to names in database.Frederick Muriuki Muriithi
2024-03-22Fix linting issue.Frederick Muriuki Muriithi
2024-03-20Fix bug: correctly merge standard-error values in file to data in dbFrederick Muriuki Muriithi
`read_datavalues(…)` function returns a dict of the form: ``` { ProbeSetName01: ({…}, …), ProbeSetName02: ({…}, …), ︙ } ``` Previously, the generator would thus try to index into the keys of the datavalues, which were strings, leading to an error. This commit changes the generator to return the values of the datavalues dict as a flattened list of values.
2024-02-28Fix bug: fetch from cursor, not return from cursor.execute(…)load-raw-data-no-parsingFrederick Muriuki Muriithi
2024-02-21Check that samples/cases are consistentFrederick Muriuki Muriithi
Ensure that **ALL** samples/cases/individuals mentioned in any of the pheno files actually exist in at least one of the geno files.
2024-02-21Pass 'filename' value to error checker function.Frederick Muriuki Muriithi
2024-02-20Track filename in the errorsFrederick Muriuki Muriithi
R/qtl2 bundles can contain more than one file, of the same type. When errors are encountered in any of the files, we need to be able to inform the user which file it is, in addition to the line and column number.
2024-02-15Filter out NULL valuesFrederick Muriuki Muriithi
2024-02-15Only log out information if the check is actually run.Frederick Muriuki Muriithi
2024-02-13Add some parallelism to the QC ChecksFrederick Muriuki Muriithi
2024-02-13Provide nice UI progress indicators.Frederick Muriuki Muriithi
2024-02-12Check for errors in the 'phenose' file.Frederick Muriuki Muriithi
2024-02-12Check for errors in the 'pheno' file.Frederick Muriuki Muriithi
2024-02-12Collect and display errors on 'geno' files in the bundle.Frederick Muriuki Muriithi
2024-02-12Add scaffolding for running individual files' QC checksFrederick Muriuki Muriithi
2024-02-12Extract missing files check to external functionFrederick Muriuki Muriithi
2024-02-12Retrive and display generic bundle errorsFrederick Muriuki Muriithi
Implement the first QC check for generic errors e.g. missing files in bundle, etc. Display retrieved errors on UI.
2024-02-12R/qtl2 QC: Set up scaffolding for QC UIFrederick Muriuki Muriithi
Set up the scaffolding for the flows and UI that will be used when running QC against the uploaded R/qtl2 bundle. This will be fleshed out later, and the UI is likely to change somewhat, down the line.