Feature #3069

PlotSpecifFile Macro

Added by Matthieu Decorde about 1 month ago. Updated about 1 month ago.

Status:New Start date:04/28/2021
Priority:Normal Due date:
Assignee:- % Done:

80%

Category:Macros Spent time: -
Target version:TXM 0.8.2

Description

FR - SLH 2021-04-28

j'ai écris une nouvelle macro PlotSpecifFile (copine de PlotSpecif) qui calcule les spécifs pour une série de paramètres encodés dans un tableau d'entrée .tsv.

Ses paramètres d'entrée sont :
- inputFile : tableau .tsv contenant une série de paramètres de spécif par ligne. Chaque ligne ayant le format : f TAB F TAB t TAB T (voir fichier exemple joint PlotSpecifFile-test-file.tsv, dont le contenu est produit par un bout de code en commentaire à la fin de la macro)
- outputLanguage : le code ISO_3166-1 à deux lettres (https://fr.wikipedia.org/wiki/ISO_3166-1#Table_de_codage) du pays de la langue à utiliser pour formater les flottants (pour utiliser les points (.) resp. les virgules (,) des parties décimales, utiliser le code 'EN' resp. 'FR'), valeur par défaut FR (pour aider l'import dans les tableurs)

La sortie du résultat se fait dans la console. Chaque ligne contient :
- f, F, t, T : reprise des paramètres d'entrée
- mode : usuel
- comp : le sens de la comparaison par rapport au mode (symbolique)
- sign : le signe de la spécificité (numérique)
- P(f'), P(f'<>mode), specificity : usuels
- specif : la version entière de la spécificité, P(f'<>mode).log10().abs().trunc().int()+1

Exemple de sortie pour le fichier d'entrée .tsv joint :

f    F    t    T    mode    comp    sign    P(f') P(f'<>mode)    specificity    specif
0    50    4588    41027    5    <=    -1 2,6497221229401650e-03    2,6497221229401650e-03 -2,5767996682524030    -3
1    50    4588    41027    5    <=    -1 1,6703661857721146e-02    1,9353383980661304e-02 -1,7132430866845856    -2
2    50    4588    41027    5    <=    -1 5,1583704076928076e-02    7,0937088057589390e-02 -1,1491266431332714    -2
3    50    4588    41027    5    <=    -1 1,0400653633624614e-01    1,7494362439383543e-01 -0,7571018802232574    -1
4    50    4588    41027    5    <=    -1 1,5396428260777740e-01    3,2890790700161290e-01 -0,4829256858791818    -1
5    50    4588    41027    5    <=    -1 1,7841141115462084e-01    5,0731931815623350e-01 -0,2947185999161574    -1
6    50    4588    41027    5    >=    +1 1,6849694270949886e-01    4,9268068184376640e-01 0,3074344662071963    1
7    50    4588    41027    5    >=    +1 1,3333620502165322e-01    3,2418373913426750e-01 0,4892087728970307    1
8    50    4588    41027    5    >=    +1 9,0203058197723440e-02    1,9084753411261432e-01 0,7193134470756533    1
9    50    4588    41027    5    >=    +1 5,2968295800483760e-02    1,0064447591489088e-01 0,9972100572931462    1
10    50    4588    41027    5    >=    +1 2,7320022212937264e-02    4,7676180114407130e-02 1,3216985481858500    2
11    50    4588    41027    5    >=    +1 1,2494611557525135e-02    2,0356157901469885e-02 1,6913041889899845    2
12    50    4588    41027    5    >=    +1 5,1059166113863750e-03    7,8615463439447410e-03 2,1044920210610796    3
13    50    4588    41027    5    >=    +1 1,8761809953822403e-03    2,7556297325583676e-03 2,5597791379653360    3
14    50    4588    41027    5    >=    +1 6,2316398176235240e-04    8,7944873717612670e-04 3,0557894703740915    4
15    50    4588    41027    5    >=    +1 1,8791465020861467e-04    2,5628475541377425e-04 3,5912772261863397    4
16    50    4588    41027    5    >=    +1 5,1635557167868190e-05    6,8370105205159600e-05 4,1651337518246200    5
17    50    4588    41027    5    >=    +1 1,2969168124566897e-05    1,6734548037291383e-05 4,7763860124702890    5
18    50    4588    41027    5    >=    +1 2,9852443324605806e-06    3,7653799127244850e-06 5,4241911985666190    6
19    50    4588    41027    5    >=    +1 6,3109630500386130e-07    7,8013558026390480e-07 6,1078299144330800    7
20    50    4588    41027    5    >=    +1 1,2275515606641495e-07    1,4903927526004350e-07 6,8266992699699000    7
21    50    4588    41027    5    >=    +1 2,2001238000211324e-08    2,6284119193628620e-08 7,5803065720317500    8
22    50    4588    41027    5    >=    +1 3,6376494172115670e-09    4,2828811934172910e-09 8,3682639727103470    9
23    50    4588    41027    5    >=    +1 5,5531884220164340e-10    6,4523177620572270e-10 9,1902842527353690    10
24    50    4588    41027    5    >=    +1 7,8321185537632310e-11    8,9912934004079500e-11 10,0461778303739390    11
25    50    4588    41027    5    >=    +1 1,0209155995647474e-11    1,1591748466447192e-11 10,9358510513480630    11
26    50    4588    41027    5    >=    +1 1,2300610169134538e-12    1,3825924707997200e-12 11,8593058124897780    12
27    50    4588    41027    5    >=    +1 1,3697369554674710e-13    1,5253145388626626e-13 12,8166405901487610    13
28    50    4588    41027    5    >=    +1 1,4091683617090646e-14    1,5557758339519200e-14 13,8080529787416200    14
29    50    4588    41027    5    >=    +1 1,3385552999241809e-15    1,4660747224285557e-15 14,8338438941482380    15
30    50    4588    41027    5    >=    +1 1,1729403686669203e-16    1,2751942250437460e-16 15,8944236627275370    16
31    50    4588    41027    5    >=    +1 9,4706244360308900e-18    1,0225385637682556e-17 16,9903203041363330    17
32    50    4588    41027    5    >=    +1 7,0357338103777860e-19    7,5476120165166910e-19 18,1221904327541400    19
33    50    4588    41027    5    >=    +1 4,8005156583804970e-20    5,1187820613890320e-20 19,2908333606921900    20
34    50    4588    41027    5    >=    +1 3,0017226510615900e-21    3,1826640300853470e-21 20,4972092041628640    21
35    50    4588    41027    5    >=    +1 1,7156468203614081e-22    1,8094137902375722e-22 21,7424621040816300    22
36    50    4588    41027    5    >=    +1 8,9354152060230340e-24    9,3766969876164290e-24 23,0279501181961380    24
37    50    4588    41027    5    >=    +1 4,2250496767934130e-25    4,4128178159339380e-25 24,3552840021172370    25
38    50    4588    41027    5    >=    +1 1,8058222719998580e-26    1,8776813914052500e-26 25,7263780977426250    26
39    50    4588    41027    5    >=    +1 6,9401317140656300e-28    7,1859119405392510e-28 27,1435181091425300    28
40    50    4588    41027    5    >=    +1 2,3832472126611004e-29    2,4578022647362120e-29 28,6094530599313700    29
41    50    4588    41027    5    >=    +1 7,2568228565192200e-31    7,4555052075111770e-31 30,1275229221103480    31
42    50    4588    41027    5    >=    +1 1,9408572876666238e-32    1,9868235099195608e-32 31,7018407096754400    32
43    50    4588    41027    5    >=    +1 4,5056925318567110e-34    4,5966222252936960e-34 33,3375611873987100    34
44    50    4588    41027    5    >=    +1 8,9422306887752020e-36    9,0929693436984160e-36 35,0412942731033040    36
45    50    4588    41027    5    >=    +1 1,4870174836615826e-37    1,5073865492321513e-37 36,8217753643596500    37
46    50    4588    41027    5    >=    +1 2,0153580313585604e-39    2,0369065570568580e-39 38,6910288937712700    39
47    50    4588    41027    5    >=    +1 2,1381136211861315e-41    2,1548525698297294e-41 40,6665824379393040    41
48    50    4588    41027    5    >=    +1 1,6654043200946394e-43    1,6738948643597985e-43 42,7762718230824750    43
49    50    4588    41027    5    >=    +1 8,4694444499292010e-46    8,4905442651591620e-46 45,0710644694993760    46
50    50    4588    41027    5    >=    +1 2,1099815229961180e-48    2,1099815229961180e-48 47,6757213477809640    48

PlotSpecifFile-test-file.tsv (858 Bytes) Serge Heiden, 04/28/2021 10:32 am

PlotSpecifFileMacro.groovy (2.8 kB) Serge Heiden, 04/28/2021 10:32 am

Associated revisions

History

#1 Updated by Serge Heiden about 1 month ago

  • Category set to Macros
  • Target version set to TXM 0.8.2

Rename to SpecificitiesFile (il n'y a pas de plot utile)

Also available in: Atom PDF