humlab-speech / superassp

A wrassp super-package that re-exports all the functionality of wrassp, and adds the ability to get Praat and MATLAB signals into SSFF format.
https://humlab-speech.github.io/superassp/
2 stars 1 forks source link

Redifine as_tibble.AsspDataObj to fascilitate reindeer::quantify / get_trackdata collation of tibbles #34

Closed FredrikKarlssonSpeech closed 1 year ago

FredrikKarlssonSpeech commented 1 year ago

The output of as_tibble.AsspDataObj should provide the SSFF track columns expected in the emuR/reindeer get_trackdata output

Rows: 228
Columns: 24
$ sl_rowIdx          <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, …
$ labels             <chr> "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "V", "E", "E", "E", "E", "E", "E", "E", "E", "E", "E", "E", "E", "E",…
$ start              <dbl> 187.425, 187.425, 187.425, 187.425, 187.425, 187.425, 187.425, 187.425, 187.425, 187.425, 187.425, 187.425, 187.425, 187.425, 340.175, 340.175, 340.175, 340.175, 340.175, 340.175, 340.175, 340.175, 340.175, 340.175, 340…
$ end                <dbl> 256.925, 256.925, 256.925, 256.925, 256.925, 256.925, 256.925, 256.925, 256.925, 256.925, 256.925, 256.925, 256.925, 256.925, 426.675, 426.675, 426.675, 426.675, 426.675, 426.675, 426.675, 426.675, 426.675, 426.675, 426…
$ db_uuid            <chr> "0fc618dc-8980-414d-8c7a-144a649ce199", "0fc618dc-8980-414d-8c7a-144a649ce199", "0fc618dc-8980-414d-8c7a-144a649ce199", "0fc618dc-8980-414d-8c7a-144a649ce199", "0fc618dc-8980-414d-8c7a-144a649ce199", "0fc618dc-8980-414d…
$ session            <chr> "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "0000", "00…
$ bundle             <chr> "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "msajc003", "ms…
$ start_item_id      <int> 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,…
$ end_item_id        <int> 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157,…
$ level              <chr> "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Ph…
$ attribute          <chr> "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Phonetic", "Ph…
$ start_item_seq_idx <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19…
$ end_item_seq_idx   <int> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19…
$ type               <chr> "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT", "SEGMENT",…
$ sample_start       <int> 3749, 3749, 3749, 3749, 3749, 3749, 3749, 3749, 3749, 3749, 3749, 3749, 3749, 3749, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 6804, 18999, 18999, 18999, 18999, 18999…
$ sample_end         <int> 5138, 5138, 5138, 5138, 5138, 5138, 5138, 5138, 5138, 5138, 5138, 5138, 5138, 5138, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 8533, 20638, 20638, 20638, 20638, 20638…
$ sample_rate        <int> 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20000, 20…
$ times_orig         <dbl> 187.5, 192.5, 197.5, 202.5, 207.5, 212.5, 217.5, 222.5, 227.5, 232.5, 237.5, 242.5, 247.5, 252.5, 342.5, 347.5, 352.5, 357.5, 362.5, 367.5, 372.5, 377.5, 382.5, 387.5, 392.5, 397.5, 402.5, 407.5, 412.5, 417.5, 422.5, 95…
$ times_rel          <dbl> 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45,…
$ times_norm         <dbl> 0.00000000, 0.07692308, 0.15384615, 0.23076923, 0.30769231, 0.38461538, 0.46153846, 0.53846154, 0.61538462, 0.69230769, 0.76923077, 0.84615385, 0.92307692, 1.00000000, 0.00000000, 0.06250000, 0.12500000, 0.18750000, 0.2…
$ T1                 <int> 0, 628, 655, 724, 717, 715, 711, 688, 625, 535, 496, 502, 458, 440, 454, 523, 568, 607, 618, 643, 665, 638, 584, 524, 493, 490, 484, 474, 455, 435, 417, 422, 434, 447, 449, 445, 439, 424, 412, 423, 433, 415, 410, 408, 4…
$ T2                 <int> 1293, 1306, 1303, 1283, 1266, 1244, 1229, 1214, 1189, 1173, 1146, 1136, 1121, 1111, 1156, 1187, 1201, 1222, 1239, 1265, 1278, 1283, 1288, 1296, 1314, 1329, 1340, 1358, 1370, 1375, 1414, 1613, 1651, 1686, 1703, 1712, 173…
$ T3                 <int> 2424, 2410, 2397, 2338, 2312, 2317, 2349, 2362, 2364, 2359, 2328, 2296, 2258, 2223, 2221, 2262, 2286, 2300, 2306, 2316, 2304, 2282, 2254, 2228, 2213, 2200, 2186, 2176, 2170, 2178, 2188, 2118, 2195, 2229, 2245, 2275, 230…
$ T4                 <int> 3429, 3348, 3337, 3326, 3326, 3462, 3451, 3391, 3372, 3381, 3389, 3323, 3218, 3177, 3319, 3355, 3367, 3387, 3412, 3433, 3450, 3464, 3476, 3482, 3486, 3515, 3565, 3609, 3640, 3659, 3652, 2750, 2824, 3536, 3536, 3224, 329…
FredrikKarlssonSpeech commented 1 year ago

Fixed in https://github.com/humlab-speech/superassp/commit/c55fc64852c5651b9ee68c18dbbbc45d204a62c4