Initial messy refactor to reduce use of regex in trans_tbl_init
Use kstring_t over char* to avoid weird segfault woes
Consolidate searches for ID fields in RG,PG headers
Give _id a better name
No need to copy from translate->text?
Use strdup over malloc/strcpy
Use header data from htslib
Use regex (for now) to insert transformed ID lines
Use new structures for RG-PG search
Use RG structure to compare seen IDs instead of regexp
Remove rg_list
break if matching ID pair found
Convert PG processing to use new PG struct fields
Convert PG PP processing to use new PG struct fields
Ensure to update ID when moving from trans rg/pg to out rg/pg!
NULL references to translate rg/pg to avoid double free
Only NULL PG and RG structures if this is not bam_hdr_t out & add missing regfree
Always free transformed id, remove uneeded transformed_line data
valgrind clean so...
Woops! Add new ID to structure->text representation