Dupblaster insertion#62
Conversation
| storage_gb = storage_for_align_job(alignment_input) | ||
| nthreads = config.config_retrieve(['workflow', 'align_threads'], 16) | ||
| job.storage(f'{storage_gb}GiB') | ||
| job.cpu(nthreads) |
There was a problem hiding this comment.
I like the explicit aspect here, but be careful the machine setting isnt interfering with anything here. This would affect nthreads and permissons to use job.memory maybe
in the rnaseq jobs i set them like this:
from cpg_flow.resources import HIGHMEM
HIGHMEM.set_resources(j=j, ncpu=nthreads, storage_gb=50)
There was a problem hiding this comment.
That's why I've dropped down to explicit resourcing - there's a contradiction in CPG-Flow's resource profiling.
Line 1: "GCP is one thread per vCPU"
Method: get ncpu by starting with threads, dividing by two, and getting the nearest power of two
Based on Google's documentation there are 2 threads available per CPU, so the fixed value of 1 is incorrect, and affects calculations.
This conflict was meaning that if I request a 16 core VM manually, and I run with 16 threads it's fine. If I try to use all the helper methods I request 16 threads, it's converted to a 8 CPU machine, and the profile gives me 8 threads instead.
I CBA using the helper methods which work and ignoring the ones which don't. It made sense when the code contained a decision about whether to use a highmem profile or a standard one, but it's a memory & cpu intensive process, so always using highmem feels defensible.
There was a problem hiding this comment.
This is quite literally a backbone of the pipeline so I agree that if anything deserves highmem it'll be here
| from hailtop.batch.job import BashJob | ||
|
|
||
|
|
||
| def markdup( |
| samtools = "australia-southeast1-docker.pkg.dev/cpg-common/images/samtools:1.23.1-1" | ||
| somalier = "australia-southeast1-docker.pkg.dev/cpg-common/images/somalier:0.3.1-1" | ||
| verifybamid = "australia-southeast1-docker.pkg.dev/cpg-common/images/verifybamid:2.0.1" | ||
| verifybamid = "australia-southeast1-docker.pkg.dev/cpg-common/images/verifybamid:v2.0.3-1" |
Restart of #61
Purpose
Proposed Changes
Depends on
alignment [1-n] -> merge [1]Checklist