lingualabpy 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
lingualabpy/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.1.0'
32
- __version_tuple__ = version_tuple = (0, 1, 0)
31
+ __version__ = version = '0.1.2'
32
+ __version_tuple__ = version_tuple = (0, 1, 2)
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -87,10 +87,16 @@ class ConnectomeHcp2025(Connectome):
87
87
  default=5.0,
88
88
  help="full-width at half maximum in millimeters of the spatial smoothing to apply to the signal",
89
89
  )
90
+ @click.option(
91
+ "--kind",
92
+ type=str,
93
+ default="correlation",
94
+ help="kind of functional connectivity matrices",
95
+ )
90
96
  @click.argument("atlas_path", nargs=1, type=click.Path(exists=True))
91
97
  @click.argument("lut_path", nargs=1, type=click.Path(exists=True))
92
98
  @click.argument("rs_path", nargs=1, type=click.Path(exists=True))
93
- def main(atlas_path, lut_path, rs_path, output, smoothing_fwhm):
99
+ def main(atlas_path, lut_path, rs_path, output, smoothing_fwhm, kind):
94
100
  """Process resting-state fMRI from the HCP-Young-Adult-2025 release to extract connectome.
95
101
 
96
102
  1. Validates input resting-state fMRI data structure
@@ -112,6 +118,8 @@ def main(atlas_path, lut_path, rs_path, output, smoothing_fwhm):
112
118
  output (str): Path to save results
113
119
 
114
120
  smoothing_fwhm (float): full-width at half maximum in millimeters of the spatial smoothing to apply to the signal
121
+
122
+ kind (str): kind of functional connectivity matrices
115
123
  """
116
124
  resting_state = ConnectomeHcp2025(path=Path(rs_path), output=Path(output))
117
125
 
@@ -125,7 +133,7 @@ def main(atlas_path, lut_path, rs_path, output, smoothing_fwhm):
125
133
  )
126
134
 
127
135
  correlation_measure = ConnectivityMeasure(
128
- kind="correlation",
136
+ kind=kind,
129
137
  standardize=False,
130
138
  vectorize=False,
131
139
  )
@@ -17,6 +17,11 @@ def parse_waywithwords(document: Document) -> dict:
17
17
  content = para.text.split()
18
18
  speaker = content[0]
19
19
  transcription = " ".join(content[1:])
20
+
21
+ # Since 2026, some transcripts have `PA` for the interviewee.
22
+ # This check has been added to ensure backward compatibility.
23
+ if speaker == "PA":
24
+ speaker = "IE"
20
25
  except:
21
26
  speaker = None
22
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lingualabpy
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Tools and utilities from the LINGUA laboratory
5
5
  Project-URL: Documentation, https://github.com/lingualab/lingualabpy
6
6
  Project-URL: Source, https://github.com/lingualab/lingualabpy
@@ -1,5 +1,5 @@
1
1
  lingualabpy/__init__.py,sha256=KoUkh_Y5eCEDxIh8SaCL_jht5ebBIv7RuHyU-bu-uXk,685
2
- lingualabpy/_version.py,sha256=5jwwVncvCiTnhOedfkzzxmxsggwmTBORdFL_4wq0ZeY,704
2
+ lingualabpy/_version.py,sha256=Ok5oAXdWgR9aghaFXTafTeDW6sYO3uVe6d2Nket57R4,704
3
3
  lingualabpy/io.py,sha256=-UXNXHgjy-W7h2h9fmZTe2glKm6tFNSgjLcGxcrVpEo,1106
4
4
  lingualabpy/plot.py,sha256=yfqKpS387u1TQaDINXatJhMr67J-q9k78EKrAnyBHlE,836
5
5
  lingualabpy/audio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -12,15 +12,15 @@ lingualabpy/cli/docx2json.py,sha256=6c5CSAS0ru30aLIsD9lRfqiehrTHjmbPb_ICw5pi-6Y,
12
12
  lingualabpy/cli/jsons2csv.py,sha256=ASOHY2GjAn8G_qNyR0ZwQ_81_uakXjhwkCLOGGnLcMw,573
13
13
  lingualabpy/cli/plot_sound.py,sha256=DCK31EIN9IpirOw-Cb87k1U79dniFuNT8TWcGUBGh14,1603
14
14
  lingualabpy/neuroimaging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- lingualabpy/neuroimaging/hcp_connectome.py,sha256=uVFz7yCHkSxIQIWZlvK11RqylUizVINmmuKRvBk5IM4,4945
15
+ lingualabpy/neuroimaging/hcp_connectome.py,sha256=DM7KjXsnPjrvU0mMs7ys91vXNYDvsBgp8x5zts1_hOo,5129
16
16
  lingualabpy/text/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
- lingualabpy/text/parser.py,sha256=A97YKH3syPrHrNgT7WD4IBsOFuM3IFEArOsyLWdJZeU,878
17
+ lingualabpy/text/parser.py,sha256=EA2BGQ2RFgXYTOWzzoZuhhoFBK2THQNcPryZ2vY8KCg,1090
18
18
  lingualabpy/text/textgrid.py,sha256=X4R7gDLIM-xHEtvyqaXY8-72HY4kbpoWMPs2E5eQmhM,1418
19
19
  lingualabpy/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  lingualabpy/tools/data.py,sha256=qzMHFhUTK59f4me646D6I8VNr0nF5xs53nTXtDCyTeU,1482
21
21
  lingualabpy/tools/interval.py,sha256=1wJO7sBB97GWRNvr5FmebOj7K33ZEn-nd2Xy9DY__Fg,2001
22
- lingualabpy-0.1.0.dist-info/METADATA,sha256=F6S6LBHVveLo7zH6a5FEVwfOam12ZFhC1m0elDwK_XY,2956
23
- lingualabpy-0.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
24
- lingualabpy-0.1.0.dist-info/entry_points.txt,sha256=iz_pd8DzlHRCT3x-j0ElQtC-ZrXjMZYCg14hgyRcb84,385
25
- lingualabpy-0.1.0.dist-info/licenses/LICENSE,sha256=c-I54KLO-TBc3-uz1_w3ru3Mf6RSEHnU5cbiIEuCRzw,1074
26
- lingualabpy-0.1.0.dist-info/RECORD,,
22
+ lingualabpy-0.1.2.dist-info/METADATA,sha256=tPi_8YBJVgehSWhbxj_vKRZKwjyCM_de2PHUUDIImtA,2956
23
+ lingualabpy-0.1.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
24
+ lingualabpy-0.1.2.dist-info/entry_points.txt,sha256=iz_pd8DzlHRCT3x-j0ElQtC-ZrXjMZYCg14hgyRcb84,385
25
+ lingualabpy-0.1.2.dist-info/licenses/LICENSE,sha256=c-I54KLO-TBc3-uz1_w3ru3Mf6RSEHnU5cbiIEuCRzw,1074
26
+ lingualabpy-0.1.2.dist-info/RECORD,,