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

Start adding kmcp profiler #128

Merged
merged 24 commits into from
Aug 19, 2023
Merged

Start adding kmcp profiler #128

merged 24 commits into from
Aug 19, 2023

Conversation

sofstam
Copy link
Contributor

@sofstam sofstam commented Aug 2, 2023

@sofstam sofstam requested review from Midnighter and removed request for Midnighter August 4, 2023 12:10
@sofstam
Copy link
Contributor Author

sofstam commented Aug 4, 2023

@Midnighter I think the error comes from that I have defined chunksRelDepth as float but the column in the MOCK_002_Illumina_3000.k.profile has both strings and floats. I tried to define chunksRelDepth as object but I kept on getting errors. Do you have any suggestions on how I shall define the column?

CRITICAL taxpasta.infrastructure.cli.merge:merge.py:424 Error in sample 'MOCK_002_Illumina_Hiseq_3000.k' with profile '/Users/sofia.stamouli/Documents/taxpasta/tests/data/kmcp/MOCK_002_Illumina_Hiseq_3000.k.profile'.
CRITICAL taxpasta.infrastructure.cli.merge:merge.py:427   schema_context          column  ...                                       failure_case index
0         Column  chunksRelDepth  ...                                             object  None
1         Column  chunksRelDepth  ...  TypeError("'>=' not supported between instance...  None
2         Column  chunksRelDepth  ...  TypeError("'<=' not supported between instance...  None

[3 rows x 6 columns]

@sofstam sofstam marked this pull request as ready for review August 4, 2023 13:32
@sofstam sofstam requested a review from Midnighter August 4, 2023 13:32
@sofstam
Copy link
Contributor Author

sofstam commented Aug 7, 2023

@Midnighter I am getting the follow error:

CRITICAL taxpasta.infrastructure.cli.merge:merge.py:424 Error in sample 'MOCK_002_Illumina_Hiseq_3000.k' with profile '/Users/sofia.stamouli/Documents/taxpasta/tests/data/kmcp/MOCK_002_Illumina_Hiseq_3000.k.profile'.
CRITICAL taxpasta.infrastructure.cli.merge:merge.py:427 could not convert string to float: '0.97;1.01;1.05;1.05;1.02;1.00;0.98;0.97;0.99;0.97'

Should this be handled in kmcp_profile_standardisation_service.py?

@sofstam sofstam requested a review from Midnighter August 7, 2023 12:49
@codecov-commenter
Copy link

codecov-commenter commented Aug 18, 2023

Codecov Report

Patch coverage: 98.50% and project coverage change: +0.68% 🎉

Comparison is base (731af20) 82.17% compared to head (7ef75ec) 82.85%.

❗ Current head 7ef75ec differs from pull request most recent head 8e9494d. Consider uploading reports for the commit 8e9494d to get more accurate results

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #128      +/-   ##
==========================================
+ Coverage   82.17%   82.85%   +0.68%     
==========================================
  Files         110      114       +4     
  Lines        1677     1744      +67     
  Branches      299      138     -161     
==========================================
+ Hits         1378     1445      +67     
  Misses        255      255              
  Partials       44       44              
Files Changed Coverage Δ
...ucture/application/application_service_registry.py 93.41% <83.33%> (+0.24%) ⬆️
...rc/taxpasta/infrastructure/application/__init__.py 100.00% <100.00%> (ø)
...xpasta/infrastructure/application/kmcp/__init__.py 100.00% <100.00%> (ø)
...ta/infrastructure/application/kmcp/kmcp_profile.py 100.00% <100.00%> (ø)
...astructure/application/kmcp/kmcp_profile_reader.py 100.00% <100.00%> (ø)
...ation/kmcp/kmcp_profile_standardisation_service.py 100.00% <100.00%> (ø)
...a/infrastructure/application/supported_profiler.py 100.00% <100.00%> (ø)

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

CHANGELOG.md Outdated Show resolved Hide resolved
docs/supported_profilers/kmcp.md Outdated Show resolved Hide resolved
docs/supported_profilers/kmcp.md Outdated Show resolved Hide resolved
docs/supported_profilers/kmcp.md Outdated Show resolved Hide resolved
docs/supported_profilers/kmcp.md Outdated Show resolved Hide resolved
@Midnighter
Copy link
Contributor

Weird, I cancelled my review but all these comments were posted...

Copy link
Contributor

@Midnighter Midnighter left a comment

Choose a reason for hiding this comment

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

Almost done now 😃 Good work!

@sofstam
Copy link
Contributor Author

sofstam commented Aug 18, 2023

Thanks for your comments, will update the PR tomorrow.

@Midnighter
Copy link
Contributor

Decided to finish up myself in the interest of getting a release out today.

@Midnighter Midnighter merged commit d130751 into dev Aug 19, 2023
0 of 12 checks passed
@Midnighter Midnighter deleted the add_kmcp branch August 19, 2023 14:27
@sofstam
Copy link
Contributor Author

sofstam commented Aug 20, 2023

Thanks for that @Midnighter!

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.

[Feature] Add support for kmcp profiler
3 participants