Skip to content

Conversation

@tristanpwdennis
Copy link
Collaborator

See #825

@leehart
Copy link
Collaborator

leehart commented Dec 4, 2025

Hi @tristanpwdennis , @ahernank , @jonbrenas

Noting linting check failures here:

malariagen_data/anoph/pca.py:354: error: Unsupported operand types for + ("Series[Any]" and "str")  [operator]
malariagen_data/anoph/pca.py:458: error: Unsupported operand types for + ("Series[Any]" and "str")  [operator]

Noting that anoph/pca.py has not changed in this PR.

Looking at the existing code for pca.py in the master branch, line 354:

        # Convenience variables.
        data["country_location"] = data["country"] + " - " + data["location"]

....and line 458 is similar:

        # Convenience variables.
        data["country_location"] = data["country"] + " - " + data["location"]

I recognise this problem, which has already been addressed in the pending PR #833

The solution appears to be to ensure that the country and location values are strings. For example, in the pending PR mentioned:

        # Convenience variables.
        # Prevent lint error (mypy): Unsupported operand types for + ("Series[Any]" and "str")
        data["country_location"] = (
            data["country"].astype(str) + " - " + data["location"].astype(str)
        )

@tristanpwdennis
Copy link
Collaborator Author

Thanks @leehart, should I wait until #833 is merged before requesting a review?

@leehart
Copy link
Collaborator

leehart commented Dec 5, 2025

Hi @tristanpwdennis , #833 has been merged now.

@tristanpwdennis tristanpwdennis force-pushed the amin1.0-clean branch 2 times, most recently from 5c03d92 to 62ff9e0 Compare December 7, 2025 22:33
@tristanpwdennis
Copy link
Collaborator Author

Tests are passing locally but failing here?

@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.01%. Comparing base (6168f4c) to head (90da5cc).
⚠️ Report is 23 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #839      +/-   ##
==========================================
+ Coverage   90.68%   92.01%   +1.33%     
==========================================
  Files          49       49              
  Lines        5175     5175              
==========================================
+ Hits         4693     4762      +69     
+ Misses        482      413      -69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tristanpwdennis
Copy link
Collaborator Author

hi guys - I am struggling to find the source of this. @ahernank suggested it may be due to threading issues that were fixed in #833, but the branch has incorporated these changes.

Copy link
Collaborator

@ahernank ahernank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much @tristanpwdennis, super exciting! I've left some minor notes after a light review.

Comment on lines 144 to 145
f"Data filtered to unrestricted use only: {self._unrestricted_use_only}\n"
f"Data filtered to surveillance use only: {self._surveillance_use_only}\n"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the data-side of these has been sorted. I am conscious part of this is because we are missing accessions for some of the vobs-asia samples. What do you think about commenting these out to avoid confusion around this functionality and we can open an issue separately to fix these for Adir/Amin later on?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this file here, as this is up in curation.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems there is an extra metadata/metadata dir here, including an extra copy of this file & the ones below.

@ahernank ahernank mentioned this pull request Dec 16, 2025
tristanpwdennis and others added 5 commits December 17, 2025 14:02
Co-authored-by: Anastasia Hernandez-Koutoucheva <[email protected]>
Co-authored-by: Anastasia Hernandez-Koutoucheva <[email protected]>
Co-authored-by: Anastasia Hernandez-Koutoucheva <[email protected]>
Co-authored-by: Anastasia Hernandez-Koutoucheva <[email protected]>
Copy link
Collaborator

@ahernank ahernank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tristanpwdennis, looks good to me, I've added an issue on vobs-asia to address the surveillance flags/accessions separately. Happy to merge and we can do any other fixes post.

@tristanpwdennis tristanpwdennis merged commit 1e03be2 into master Dec 17, 2025
13 of 24 checks passed
@tristanpwdennis tristanpwdennis deleted the amin1.0-clean branch December 17, 2025 22:39
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.

4 participants