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

Parallel exports gcloud compose [prototype] #639

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

MattWellie
Copy link
Contributor

Replaces #629

This upgrades the previous solution by incorporating the gcloud storage objects compose functionality to concatenate the separate fragments in GCP without needing to localise first.

For what it's worth, this same logic could be used to replace the current 'gather VCFs from fragments' here (so long as the files are Block-GZipped, which they are)

@jmarshall
Copy link
Contributor

I looked at using gcloud compose in the gCNV pipeline at one point, but lost interest when I saw the limit was 32 items in one composition. Is that an issue here? I guess it's enough for e.g. one-shard-per-chromosome for humans…

@MattWellie
Copy link
Contributor Author

lost interest when I saw the limit was 32 items in one composition. Is that an issue here? I guess it's enough for e.g. one-shard-per-chromosome for humans…

I've mitigated this with a rolling merge - start off with the list of all fragments, condense that in blocks of 30, then keep condensing the list until you end up with a single product

Comment on lines 240 to 250
# rolling squash of the chunks, should enable infinite-ish scaling
temp_chunk_prefix_num = 1
condense_job = None
while len(chunk_paths) > 1:
condense_temp = join(temp, f'temp_chunk_{temp_chunk_prefix_num}')
temp_chunk_prefix_num += 1
chunk_paths, condense_job = compose_condense_fragments(
chunk_paths,
condense_temp,
depends=condense_job
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cassimons cassimons removed their request for review March 18, 2024 20:31
This was referenced Mar 26, 2024
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.

None yet

2 participants