-
Notifications
You must be signed in to change notification settings - Fork 21
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
Multithreading during M3VCF/MSAV Generation? #62
Comments
Multithread option takes effect for imputation only.
On Fri, Jul 28, 2023 at 4:06 PM Michelle Franc Ragsac, Ph.D. < ***@***.***> wrote:
I am trying to generate a custom reference with Minimac3 (M3VCF) and
Minimac4 (MSAV) and was wondering if the operations to do so can be enabled
to be/are possibly multithreaded?
Commands to Generate Reference Files
# Minimac3
Minimac3 --refHaps chr${chr}.vcf.gz --processReference --prefix m3vcfs/chr${chr} --myChromosome {chr_prefix} --rsid
# Minimac4
minimac4 --compress-reference reference.{sav,bcf,vcf.gz} > reference.msav
When I try using the --cpus flag, it doesn't seem like the CPUs I have
available are being used when I'm checking on things with htop...
—
Reply to this email directly, view it on GitHub
<#62>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD6UVLILH4PH4BE7YP74QJDXSQLTFANCNFSM6AAAAAA235XCDY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Ketian Yu, M.S.
PhD candidate | Department of Biostatistics
University of Michigan, Ann Arbor MI
She | Her | Hers
|
Thank you for your speedy reply!! Is it expected that a single chromosome from an imputation panel would take multiple days to compress to the M3VCF or MSAV format? I'm trying to understand if there are issues on my end in running things or if this is expected behavior ... |
Yes, It can take a long time for large reference panels. With Minimac4, you can speed up the compression by using multiple processes (instead of threads) and then concatenating the chunks:
I don't know for sure whether this approach is possible for minimac3. bcftools: https://github.com/samtools/bcftools |
I am trying to generate a custom reference with Minimac3 (M3VCF) and Minimac4 (MSAV) and was wondering if the operations to do so can be enabled to be/are possibly multithreaded?
Commands to Generate Reference Files
When I try using the
--cpus
flag, it doesn't seem like the CPUs I have available are being used when I'm checking on things withhtop
...The text was updated successfully, but these errors were encountered: