0b7fc0972a745005ac329190569f51b12877ebe0 kent Sun Sep 15 15:24:53 2019 -0700 Adding unroll for unpacking csv arrays into a table with multiple rows. The driving use case is the contacts/contributors merge for HCA. diff --git src/tabFile/tabToTabDir/tests/input/spec.txt src/tabFile/tabToTabDir/tests/input/spec.txt index 365ac4f..9cb9daf 100644 --- src/tabFile/tabToTabDir/tests/input/spec.txt +++ src/tabFile/tabToTabDir/tests/input/spec.txt @@ -7,30 +7,34 @@ notmess not messy not0 not 0 not1 not 1 notEmpty not "" mess3 word_range(messy,0,3) mess3a chop_range(messy,' ',0,3) mess2end word_range(messy,-2,99999) mess_mid word_range(messy, 3, -3) letMes letter_range(messy, 4, 7) x complex + " complex" id tidy less_messy tidy("messy ", messy, " very") mangled_date symbol("DATE_", submission_date) messy messy +unroll unroll_test id +id "1,2,3" +summary GEO_Series_summary + table a_strex_test id tooLoud warn("this is a test of the warning system") untidy "big messy string with messy parts" tidyStart tidy("messy ", "big messy string with messy parts", "") tidyEnd tidy("", "big messy string with messy parts", " messy") tidyBoth tidy("messy ", "big messy string with messy parts", " messy") yes ( same("a", "a") ? "yes" : "no") no ( same("a", "b") ? "yes" : "no") cond ( ends_with("abc", "d") ? "D is cond" : ends_with("abc", "b") ? "B is cond" : ends_with("abc", "c") ? "C is cond" : "unmatched") id "constant ID" symboled symbol("ID_", "constant ID") pickedNum pick( 0? 0:"zero", 1:"one") pickedString pick("a"? "b": "beta", "a": "alpha") lowered lower("NotMixedCase") uppered upper("NotMixedCase")