Skip to content
/ lncdtools Public

a collection of small utlities useful for neuroimaging research

Notifications You must be signed in to change notification settings

lncd/lncdtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0a18b12 · Dec 6, 2024
May 24, 2023
Aug 30, 2023
Sep 29, 2023
Dec 4, 2022
Nov 13, 2024
Nov 22, 2021
Feb 18, 2020
Jul 28, 2022
Nov 7, 2022
Feb 16, 2023
Aug 16, 2024
Dec 6, 2024
Oct 16, 2023
Mar 10, 2022
Feb 8, 2023
Nov 22, 2021
Aug 16, 2024
Aug 30, 2023
Feb 8, 2023
Dec 22, 2023
Aug 31, 2022
Nov 9, 2022
Jul 24, 2023
Mar 16, 2023
Sep 16, 2022
Feb 19, 2021
Nov 3, 2021
Nov 22, 2024
Nov 13, 2024
Apr 1, 2024
Oct 11, 2022
Feb 8, 2023
Dec 28, 2023
Oct 27, 2021
Jul 21, 2023
Aug 10, 2021
Aug 10, 2021
Apr 2, 2019
Feb 8, 2023
Aug 4, 2023
Jul 24, 2023
May 9, 2023
Dec 22, 2023
Mar 14, 2019
Feb 8, 2023
Jan 14, 2021
Mar 15, 2023
Oct 17, 2020
Dec 18, 2023
Oct 17, 2020
May 24, 2023
Feb 19, 2024
Nov 13, 2024
Feb 8, 2023
Aug 29, 2023
Nov 19, 2019
Mar 10, 2022
Feb 4, 2021
Aug 12, 2020
Apr 29, 2021
Oct 18, 2020
Sep 17, 2018
Apr 30, 2020
Feb 12, 2021
Aug 23, 2024
May 3, 2021
Jan 14, 2021
May 18, 2016
Dec 13, 2019
Jul 20, 2024
May 9, 2023
Nov 13, 2024
Feb 8, 2023
Nov 14, 2023
Feb 25, 2023

Repository files navigation

LNCD Tools

small scripts useful for data wrangling at the LNCD DOI

Install

See the docs

Briefly clone and add to path

git clone https://github.com/lncd/lncdtools ~/lncdtools
echo "export PATH=\$PATH:$HOME/lncdtools" >> ~/.bashrc

Usage/cookbooks

  • TODO: Makefile sentinels for make using mkifdiff, mkls, mkmissing, mkstat
  • BIDS with dcmdirtab, dcmtab_bids, and mknii

Tools

  • 4dConcatSubBriks - extract a subbrick from a list of nifti label with luna ids. Useful for quality checking many structurals, subject masks, or individual contrasts. Wraps around 3dbucket and 3drefit:
  • img_bg_rm - use imagemagick's convert to set a background to alpha (remove). Taken from "hackerb9" stack overflow solution. use on afni and suma screen captures
  • mkmissing - find missing patterns between two steps in a pipeline (file globs)
  • r - read dataframe from stdin and run R code with shortcuts and magic a la DataScienceToolkit's Rio
  • tat2, melanin_align - modality specific wrappers

also see more detaied docs (/Volumes/Hera/Datasets/ABCD/TAT2/tat2_avg3797_med_voldisc.nii.gz and /Volumes/Hera/Projects/7TBrainMech/scripts/mri/tat2/mean_176.nii.gz)

permutation of tat2 calls were compared against R2 acquisitions: -vol_median is likely the approprate normalization.

(/Volumes/Phillips/mMR_PETDA/scripts/tat2/multiverse)

Notes

  • get_ld8_age.R requires R and the LNCDR package + access with the firewall (for db at arnold.wpic.upmc.edu)