aboutsummaryrefslogtreecommitdiff
path: root/r_qtl
AgeCommit message (Collapse)Author
2024-02-16Strip comment lines.Frederick Muriuki Muriithi
2024-02-16Read raw text data from a file in the zip bundleFrederick Muriuki Muriithi
2024-02-13Make "FILE_TYPES" part of public interface for module/package.Frederick Muriuki Muriithi
2024-02-12Refactor: Use new decimal places checker.Frederick Muriuki Muriithi
2024-02-12Check for errors in the 'phenose' file.Frederick Muriuki Muriithi
2024-02-12Provide the key for each file listed in the control file.Frederick Muriuki Muriithi
2024-02-08Generalise error retrieval: extract common structureFrederick Muriuki Muriithi
Extract the common structure into a separate function and pass in checkers that return the errors they find.
2024-02-08Use error objects rather than plain tuple values.Frederick Muriuki Muriithi
2024-02-06Check that pheno values are numerical and at least 3 decimal placesFrederick Muriuki Muriithi
2024-02-05Check that data in geno file is validFrederick Muriuki Muriithi
Add a function to ensure the values in the geno files are all listed in the control data under the "genotypes" key.
2024-02-05Fix linting and type errors.Frederick Muriuki Muriithi
2024-02-05Do general bundle validation and show errorsFrederick Muriuki Muriithi
* Display any and all errors on the UI * Move `validate_bundle` to QC module and refactor to use `missing_files`
2024-02-05Retrieve list of all files, and list of missing filesFrederick Muriuki Muriithi
Add QC a function to list all files listed in the control file, and another to list only the files missing from the bundle.
2024-02-02List file types in a single place for easier reuseFrederick Muriuki Muriithi
2024-02-02Ensure control file defaults are set up in code.Frederick Muriuki Muriithi
2024-01-16Provide defaults for various control variablesFrederick Muriuki Muriithi
`na.strings` has a default value of "NA" as stated in https://kbroman.org/qtl2/assets/vignettes/input_files.html#CSV_files quote: > Missing value codes will be specified in the control file (as > na.strings, with default value "NA") and will apply across all > files, so a missing value code for one file cannot be an allowed > value in another file. for `comment.char` > The CSV files can include a header with a set of comment lines > initiated by a value specified in the control file as comment.char > (with default value "#"). for `sep`: The default separator is expected to be the comma, as stated in https://kbroman.org/qtl2/assets/vignettes/input_files.html#field-separator quote: > If the data files use a separator other than a comma ...
2024-01-15Process `na.strings` even for default casesFrederick Muriuki Muriithi
There was a bug where the `na.strings` were not processed correctly if the user called the `r_qtl.r_qtl2.file_data(...)` function without explicitly providing the `process_*` arguments. This commit fixes that.
2024-01-15Extract common functional tools to separate package.Frederick Muriuki Muriithi
2024-01-10Provide convenience functions to avoid subtle call errorsFrederick Muriuki Muriithi
2024-01-10Make identifier column name explicitFrederick Muriuki Muriithi
Since the R/qtl2 bundle generator could name the identifier column anything, this commit converts the incoming identifier column name into something explicit that we know and can use.
2024-01-09Raise exception on reading non-existing fileFrederick Muriuki Muriithi
The validation checks ensure that whatever files are listed in the control file exist in the zip file bundle. It is still possible, however, that the code tries to read a file that does not exist in the file and is not listed in the control file. In those cases, raise the appropriate exception.
2024-01-08Upload R/qtl2 zip bundle and check for errors.Frederick Muriuki Muriithi
2024-01-04Parse sex information from R/qtl bundle.Frederick Muriuki Muriithi
2024-01-04Parse cross information from R/qtl2 bundle.Frederick Muriuki Muriithi
2024-01-04Process sex and cross information data in "covar" files.Frederick Muriuki Muriithi
2024-01-04Parse multiple files with same file key.Frederick Muriuki Muriithi
2024-01-03Use generic parser. Remove obsoleted functions.Frederick Muriuki Muriithi
2024-01-03Parse founder_geno files. Generalise parsing files.Frederick Muriuki Muriithi
* Add tests for parsing "founder_geno" files * Extract common file parsing structure out to more general function * Use generic function to parse "founder_geno" file in test
2024-01-03Parse the phenotype data from the R/qtl2 bundle.Frederick Muriuki Muriithi
2024-01-03Rename argument and add documentation to functions.Frederick Muriuki Muriithi
2024-01-03Extract processing of transposed files into reusable function.Frederick Muriuki Muriithi
The processing of transposed files is similar across files. This commit extracts the common parts into a separate function.
2024-01-03Refactor: Extract potentially reusable functionsFrederick Muriuki Muriithi
The processing of transposed files is probably going to be very similar, thus the need to extract some reusable code from the geno-file-specific function in preparation.
2024-01-02Abstract away non-transposed file processingFrederick Muriuki Muriithi
Since the processing of non-transposed files is mostly similar, abstract away the common operations into a separate function and use the function instead of repeating the same pattern of code throughout the codebase.
2024-01-02Cleanup: Fix linting and typing errors and update docs.Frederick Muriuki Muriithi
2023-12-28Rework parsing of transposed geno files.Frederick Muriuki Muriithi
2023-12-28Handle transposed geno files.Frederick Muriuki Muriithi
2023-12-27Tests: Test parsing of non-transposed geno files.Frederick Muriuki Muriithi
Check that the parsing of non-transposed geno files. Leave in failing test for transposed geno files.
2023-12-27Tests: Add tests for parsing gmap files.Frederick Muriuki Muriithi
2023-12-25Generalise to read both genetic and physical maps.Frederick Muriuki Muriithi
2023-12-25Read genetic map filesFrederick Muriuki Muriithi
2023-12-20Read genotype filesFrederick Muriuki Muriithi
2023-12-20Read R/qtl2 format filesFrederick Muriuki Muriithi
* Set up error objects. * Read the control data.