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

Enable batched insert #50

Merged
merged 9 commits into from
May 5, 2023
Merged

Enable batched insert #50

merged 9 commits into from
May 5, 2023

Conversation

jsstevenson
Copy link
Contributor

@jsstevenson jsstevenson commented Apr 28, 2023

Close #37
Progress on #47

@jsstevenson jsstevenson changed the title Issue 47 optimizations stashed Enable batched insert Apr 28, 2023
@jsstevenson jsstevenson marked this pull request as ready for review April 29, 2023 01:43
@jsstevenson jsstevenson requested a review from korikuzma May 5, 2023 12:17
Copy link
Contributor

@korikuzma korikuzma left a comment

Choose a reason for hiding this comment

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

Small docstring stuff

Comment on lines 33 to 35
:param Optional[str] vcf_out: The path for the output VCF file
:param Optional[str] vrs_pickle_out: The path for the output VCF pickle file
:param str assembly: The assembly used in `vcf_in` data
Copy link
Contributor

Choose a reason for hiding this comment

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

I should make an issue in vrs-python for the paths to have type Path and not str

Suggested change
:param Optional[str] vcf_out: The path for the output VCF file
:param Optional[str] vrs_pickle_out: The path for the output VCF pickle file
:param str assembly: The assembly used in `vcf_in` data
:param vcf_out: The path for the output VCF file
:param vrs_pickle_out: The path for the output VCF pickle file
:param assembly: The assembly used in `vcf_in` data

Comment on lines 66 to 67
:name: value for `vrs_id` field
:value: value for `vrs_object` field
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
:name: value for `vrs_id` field
:value: value for `vrs_object` field
:param name: value for `vrs_id` field
:param value: value for `vrs_object` field

def __init__(self, storage: PostgresObjectStore):
"""Initialize context manager.

:param storage: Postgres instance to manage. Should be taken from the active
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
:param storage: Postgres instance to manage. Should be taken from the active
:param storage: Postgres instance to manage. Should be taken from the active
:raises ValueError: If `storage` is not a `PostgresObjectStore` instance

@jsstevenson jsstevenson merged commit 1e12135 into main May 5, 2023
@jsstevenson jsstevenson deleted the issue-47-optimizations-stashed branch May 5, 2023 12:59
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.

Load the gnomAD small variants VCF as demo/benchmark
2 participants