Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"'sidecar' not found in columns" #38

Open
shnizzedy opened this issue Apr 30, 2024 · 0 comments
Open

"'sidecar' not found in columns" #38

shnizzedy opened this issue Apr 30, 2024 · 0 comments

Comments

@shnizzedy
Copy link

Trying to run

ba-tsconcat \
  /ocean/projects/med220004p/bshresth/vannucci/all_runs/scripts/outputs/ANTS_FSL_noBBR_lenient/output/pipeline_cpac_fmriprep-options/ \
  /ocean/projects/med220004p/shared/data_derived/vannucci/tsconcat/ANTs_FSL_noBBR_lenient/ \
  group \
  -c run \
  -w 8 \
  -f

, getting

Index(['ds__dataset', 'ds__dataset_type', 'ds__dataset_path',
       'ds__dataset_description', 'ent__sub', 'ent__ses', 'ent__sample',
       'ent__task', 'ent__acq', 'ent__ce', 'ent__trc', 'ent__stain',
       'ent__rec', 'ent__dir', 'ent__run', 'ent__mod', 'ent__echo',
       'ent__flip', 'ent__inv', 'ent__mt', 'ent__part', 'ent__proc',
       'ent__hemi', 'ent__space', 'ent__split', 'ent__recording', 'ent__chunk',
       'ent__atlas', 'ent__res', 'ent__den', 'ent__label', 'ent__desc',
       'ent__datatype', 'ent__suffix', 'ent__ext', 'ent__extra_entities',
       'meta__json', 'finfo__file_path', 'finfo__link_target',
       'finfo__mod_time'],
      dtype='object')
      ds__dataset ds__dataset_type  ... finfo__link_target finfo__mod_time
0            None             None  ...               None    1.711219e+09
1            None             None  ...               None    1.711224e+09
2            None             None  ...               None    1.711219e+09
3            None             None  ...               None    1.711224e+09
4            None             None  ...               None    1.711219e+09
...           ...              ...  ...                ...             ...
73349        None             None  ...               None    1.711151e+09
73350        None             None  ...               None    1.711157e+09
73351        None             None  ...               None    1.711157e+09
73352        None             None  ...               None    1.711157e+09
73353        None             None  ...               None    1.711154e+09

[73354 rows x 40 columns]
      ds__dataset ds__dataset_type  ... finfo__link_target finfo__mod_time
31           None             None  ...               None    1.711220e+09
44           None             None  ...               None    1.711240e+09
45           None             None  ...               None    1.711242e+09
46           None             None  ...               None    1.711220e+09
47           None             None  ...               None    1.711220e+09
...           ...              ...  ...                ...             ...
73339        None             None  ...               None    1.711180e+09
73342        None             None  ...               None    1.711177e+09
73345        None             None  ...               None    1.711186e+09
73346        None             None  ...               None    1.711177e+09
73349        None             None  ...               None    1.711151e+09

[15486 rows x 40 columns]
Traceback (most recent call last):
  File "/ocean/projects/med220004p/jclucas/.conda/envs/tsconcat/bin/ba-tsconcat", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/ocean/projects/med220004p/jclucas/.conda/envs/tsconcat/lib/python3.11/site-packages/tsconcat/cli.py", line 194, in main
    df_reduced_bold = df_reduced_bold.astype(
                      ^^^^^^^^^^^^^^^^^^^^^^^
  File "/ocean/projects/med220004p/jclucas/.conda/envs/tsconcat/lib/python3.11/site-packages/pandas/core/generic.py", line 6605, in astype
    raise KeyError(
KeyError: "Only a column name can be used for the key in a dtype mappings argument. 'sidecar' not found in columns."

Additional info

# packages in environment at /ocean/projects/med220004p/jclucas/.conda/envs/tsconcat:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
_openmp_mutex             5.1                       1_gnu  
ba-tsconcat               0.1.1                    pypi_0    pypi
bids2table                0.1.0b0                  pypi_0    pypi
build                     1.2.1                    pypi_0    pypi
bzip2                     1.0.8                h5eee18b_5  
ca-certificates           2024.3.11            h06a4308_0  
cachecontrol              0.14.0                   pypi_0    pypi
certifi                   2024.2.2                 pypi_0    pypi
cffi                      1.16.0                   pypi_0    pypi
charset-normalizer        3.3.2                    pypi_0    pypi
cleo                      2.1.0                    pypi_0    pypi
cpac                      1.8.6.post1.dev1          pypi_0    pypi
crashtest                 0.4.1                    pypi_0    pypi
cryptography              42.0.5                   pypi_0    pypi
distlib                   0.3.8                    pypi_0    pypi
docker                    7.0.0                    pypi_0    pypi
docker-pycreds            0.4.0                    pypi_0    pypi
dockerpty                 0.4.1                    pypi_0    pypi
dulwich                   0.21.7                   pypi_0    pypi
elbow                     0.1.1                    pypi_0    pypi
fastjsonschema            2.19.1                   pypi_0    pypi
filelock                  3.13.4                   pypi_0    pypi
idna                      3.7                      pypi_0    pypi
importlib-metadata        7.1.0                    pypi_0    pypi
installer                 0.7.0                    pypi_0    pypi
jaraco-classes            3.4.0                    pypi_0    pypi
jeepney                   0.8.0                    pypi_0    pypi
keyring                   24.3.1                   pypi_0    pypi
ld_impl_linux-64          2.38                 h1181459_1  
libffi                    3.4.4                h6a678d5_0  
libgcc-ng                 11.2.0               h1234567_1  
libgomp                   11.2.0               h1234567_1  
libstdcxx-ng              11.2.0               h1234567_1  
libuuid                   1.41.5               h5eee18b_0  
markdown-it-py            3.0.0                    pypi_0    pypi
mdurl                     0.1.2                    pypi_0    pypi
more-itertools            10.2.0                   pypi_0    pypi
msgpack                   1.0.8                    pypi_0    pypi
ncurses                   6.4                  h6a678d5_0  
nibabel                   5.2.1                    pypi_0    pypi
numpy                     1.26.4                   pypi_0    pypi
openssl                   3.0.13               h7f8727e_0  
packaging                 24.0                     pypi_0    pypi
pandas                    2.2.2                    pypi_0    pypi
pexpect                   4.9.0                    pypi_0    pypi
pip                       23.3.1                   pypi_0    pypi
pkginfo                   1.10.0                   pypi_0    pypi
platformdirs              4.2.1                    pypi_0    pypi
poetry                    1.8.2                    pypi_0    pypi
poetry-core               1.9.0                    pypi_0    pypi
poetry-plugin-export      1.7.1                    pypi_0    pypi
ptyprocess                0.7.0                    pypi_0    pypi
pyarrow                   16.0.0                   pypi_0    pypi
pycparser                 2.22                     pypi_0    pypi
pygments                  2.17.2                   pypi_0    pypi
pyproject-hooks           1.1.0                    pypi_0    pypi
python                    3.11.9               h955ad1f_0  
python-dateutil           2.9.0.post0              pypi_0    pypi
pytz                      2024.1                   pypi_0    pypi
pyyaml                    6.0.1                    pypi_0    pypi
rapidfuzz                 3.8.1                    pypi_0    pypi
readline                  8.2                  h5eee18b_0  
requests                  2.31.0                   pypi_0    pypi
requests-toolbelt         1.0.0                    pypi_0    pypi
rich                      13.7.1                   pypi_0    pypi
secretstorage             3.3.3                    pypi_0    pypi
semver                    3.0.2                    pypi_0    pypi
setuptools                68.2.2                   pypi_0    pypi
shellingham               1.5.4                    pypi_0    pypi
six                       1.16.0                   pypi_0    pypi
spython                   0.3.13                   pypi_0    pypi
sqlite                    3.41.2               h5eee18b_0  
tabulate                  0.9.0                    pypi_0    pypi
tk                        8.6.12               h1ccaba5_0  
tomlkit                   0.12.4                   pypi_0    pypi
tornado                   6.4                      pypi_0    pypi
tqdm                      4.66.2                   pypi_0    pypi
trove-classifiers         2024.4.10                pypi_0    pypi
typing-extensions         4.11.0                   pypi_0    pypi
tzdata                    2024.1                   pypi_0    pypi
urllib3                   2.2.1                    pypi_0    pypi
virtualenv                20.26.0                  pypi_0    pypi
websocket-client          1.8.0                    pypi_0    pypi
wheel                     0.41.2                   pypi_0    pypi
xz                        5.4.6                h5eee18b_0  
zipp                      3.18.1                   pypi_0    pypi
zlib                      1.2.13               h5eee18b_0  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant