Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the value zero is not stored correctly in certain phenotype uploads #5329

Merged
merged 21 commits into from
Feb 19, 2025

Conversation

lukasmueller
Copy link
Member

Description

fixes #5328

Checklist

  • Refactoring only
  • Documentation only
  • Fixture update only
  • Bug fix
    • The relevant issue has been closed.
    • Further work is required.
  • New feature
    • Relevant tests have been created and run.
    • Data was added to the fixture
      • Data was added via a patch in /t/data/fixture/patches/.
    • User-Facing Change
      • The user manual in /docs has been updated.
    • Any new Perl has been documented using perldoc.
    • Any new JavaScript has been documented using JSDoc.
    • Any new legacy JavaScript has been moved from /js to /js/source/legacy.

@lukasmueller lukasmueller added Priority: Critical Issue/PR requires immediate resolution. Type: Bug Issue describes a bug. and removed Priority: Critical Issue/PR requires immediate resolution. Type: Bug Issue describes a bug. labels Feb 15, 2025
@lukasmueller lukasmueller requested a review from nmenda February 15, 2025 03:55
@dwaring87
Copy link
Member

It looks like these changes are properly storing 0s, but the upload is no longer skipping blank values.

If a trial already had stored trait values and a new upload file has blank values for those traits, it now seems to remove those values instead of keeping them unchanged (even when the option to remove them is not checked)

@dwaring87
Copy link
Member

Here is a script that can be used to find any 0s in recently uploaded files so they can be re-uploaded and stored properly
extract_pheno_zeros.pl

@lukasmueller
Copy link
Member Author

We should have a test for this!

@lukasmueller lukasmueller requested a review from isaak February 19, 2025 15:46
@lukasmueller lukasmueller merged commit 20c98e7 into master Feb 19, 2025
4 checks passed
@lukasmueller lukasmueller deleted the topic/fix_missing_0s_in_csv_parsing branch February 19, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zero is not stored in the database in certain phenotype uploads
3 participants