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

Well libs #229

Merged
merged 5 commits into from
Jun 12, 2024
Merged

Well libs #229

merged 5 commits into from
Jun 12, 2024

Conversation

mgcam
Copy link
Member

@mgcam mgcam commented Jun 11, 2024

No description provided.

mgcam added 4 commits June 8, 2024 23:53
Reimplemented the PacBioExperiment class, removed
from_orm method, replaced it by a pre-init hook.
... for mlwh ORM classes so that common methods can be
implemented.

Customised __repr__ method for one of db classes.
@mgcam mgcam mentioned this pull request Jun 11, 2024
Copy link
Collaborator

@nerdstrike nerdstrike left a comment

Choose a reason for hiding this comment

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

Seems fine, a few questions to ease my concerns.

A base class for declarative class definitions for the ml warehouse database.
"""

def get_row_description(self, fields: list[str]) -> str:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe make this guy private?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

lang_qc/models/pacbio/experiment.py Show resolved Hide resolved
returned by the constructor.
"""

db_library: PacBioRun = Field(init_var=True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Spot check - a "library" is the prep of one sample, therefore 1:1 with a row in pac_bio_run? As distinct from pool, which is a pool of libraries?

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct. A pool might contain one library as long as the library is indexed. The term pool is only used with indexed libraries.

lang_qc/models/pacbio/well.py Show resolved Hide resolved
tests/test_mlwh_db_classes.py Outdated Show resolved Hide resolved
Also made the helper function of the parent class 'private'.
@nerdstrike nerdstrike merged commit 0b225e7 into wtsi-npg:devel Jun 12, 2024
4 checks passed
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.

2 participants