Skip to content

Instantly share code, notes, and snippets.

View rlang81's full-sized avatar

Ryan Lang rlang81

  • Vesalius Theraputics
  • Cambridge, MA
  • LinkedIn in/rtlang
View GitHub Profile
@rlang81
rlang81 / rewrite_harmonyV6_index_file.py
Created November 16, 2023 22:32
Function to rewrite index files generated by PE Harmony V6 to be compatible with https://github.com/broadinstitute/pe2loaddata
import os
import xml.etree.ElementTree as ET
def rewrite_harmonyV6_index_file(index_path):
"""Fix Harmony V6 index file to be compatible with pe2loaddata
Warning: This will rewrite the index file in place!
Dependencies: os, xml.etree.ElementTree as ET
Parameters
----------