twolinin / longphase

GNU General Public License v3.0
98 stars 6 forks source link

Adjustments to multithread settings and additional comments. #38

Closed twolinin closed 7 months ago

twolinin commented 7 months ago

Summary

  1. Modify the initialization settings and runtime prompts for chromosome-level multithreading.
  2. Add code comments for modcall and multithreading.

Changes

  1. Add code comments
    • HaplotagProcess.cpp
    • ModCallParsingBam.cpp
    • ParsingBam.cpp
    • PhasingProcess.cpp
    • Util.cpp
  2. Multithread setting
    • Set the default number of chromosomes to be equal to the number of threads.
  3. Output of prompts during the running of phasing
    • Due to multithreading, the prompts in the running output become disordered. Currently, the running time output is modified to be displayed only after each thread has processed its respective contig/chromosome.