Coder Social home page Coder Social logo

shnizzedy / c-pac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fcp-indi/c-pac

1.0 1.0 0.0 287.01 MB

Configurable Pipeline for the Analysis of Connectomes

License: GNU Lesser General Public License v3.0

Python 97.52% HTML 0.27% Shell 1.96% Gherkin 0.19% Dockerfile 0.06% Roff 0.01%

c-pac's Introduction

https://github.com/lowlighter/metrics

How to work with Jon

My work hours

I strive to maintain a healthy work-life balance. We also recently (2023 April) had a baby. In service of that effort, for my primary employment I try to be available 20 hours per week, around the babe's schedule.

What’s the best way to communicate with me?

I'm a bit hard of hearing and a bit of a stutterer, so I prefer written to spoken communication. I check the following in order of frequency:

  1. Slack CMI-CNL Slack
  2. Credo Mobile text messages
  3. Outlook work (@childmind.org) email
  4. :octocat: GitHub issues
  5. Slack other Slack workspaces
  6. Mattermost Brainhack Mattermost
  7. Vasegurt personal (@vasegurt.com) email

If I don’t respond, try:

  1. Just wait longer
  2. reaching out to someone else relevant to the question / project
  3. sending me a reminder
What makes me grumpy? Demands for action combined with unwillingness to explain the target of said action.

American Chopper Argument

How do I like to give feedback? Timely, constructively, and specifically.
How do I like to receive feedback? Specifically, action-oriented, and visually.
One of my goals for the coming year I hope to carve out enough time to help my friend Dr. Bu realize his design for the *Comics History Index*.
Topics I’m always happy to talk about Art, particularly music, literature, and film.
Other things you might want to know
  • My favorite baked good — pie
  • Spouses/partners/kiddos/pets — one spouse
  • Fruit on pizza — yes, especially jalapeño + pineapple Mazikeen's pizza order
  • My coffee order — decaf café au lait
Some badges 📛 Hacktoberfet 2021Hacktoberfest 2020 tree plantedHacktoberfest 2020Pluralsight Python IQORCID iD icon@shnizzedy's Holopin board
Creative Commons License

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 Generic License.

Inspiration from Inspirobot

c-pac's People

Stargazers

 avatar

Watchers

 avatar  avatar

c-pac's Issues

📧 atlas in cifti format

We're trying to use a new subcortical atlas that's incorporated into a gordon cortex atlas. It's available only in a cifti format. Do you have any suggestions for how to use this with cpac, particularly as it's in cifti format?

  1. how to use the gordon-tian atlas we identified, which is not an existing atlas in CPAC and is in cifti format.

🐛 "OSError: Duplicate node name"

Describe the bug

Trying to test FCP-INDI#1524 (cpac-singularity-image.simg) with prelim_forks_ses_test.yml, I get

Connecting nuisance_regression...

Traceback (most recent call last):
  File "/code/run.py", line 672, in <module>
    test_config = 1 if args.analysis_level == "test_config" else 0
  File "/code/CPAC/pipeline/cpac_runner.py", line 549, in run
    p_name, plugin, plugin_args, test_config)
  File "/code/CPAC/pipeline/cpac_pipeline.py", line 395, in run_workflow
    subject_id, sub_dict, c, p_name, num_ants_cores
  File "/code/CPAC/pipeline/cpac_pipeline.py", line 1261, in build_workflow
    wf = connect_pipeline(wf, cfg, rpool, pipeline_blocks)
  File "/code/CPAC/pipeline/cpac_pipeline.py", line 976, in connect_pipeline
    wf = nb.connect_block(wf, cfg, rpool)
  File "/code/CPAC/pipeline/engine.py", line 1163, in connect_block
    pipe_x, opt)
  File "/code/CPAC/nuisance/nuisance.py", line 2141, in nuisance_regression_complete
    wf.connect(node, out, regressors, 'inputspec.functional_file_path')
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/workflows.py", line 158, in connect
    self._check_nodes(newnodes)
  File "/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/workflows.py", line 766, in _check_nodes
    raise IOError('Duplicate node name "%s" found.' % node.name)
OSError: Duplicate node name "nuisance_regressors_2-aCompCor-no-GSR-no-spike-regression_128" found.

C-PAC seems to be duplicating at least that one regressor somehow?

To Reproduce
Steps to reproduce the behavior:

singularity run \
  -B /$output:/outputs \
  -B ${BIDS_DIR}:/bids_dataset \
  -B ${CPAC_DIR}:/code \
  -B ${DATA_CONFIG}:/data_config \
  -B ${CPAC_DIR}/CPAC/resources/configs:${CPAC_DIR}/CPAC/resources/configs \
  -B /tmp:/scratch -B /media/ebs/Columbia_Nim/configs:/configs \
  cpac-singularity-image.simg /bids_dataset /outputs participant \
  --data_config_file ${DATA_CONFIG_FILE} \
  --pipeline_file /configs/prelim_forks_ses_test.yml \
  --mem_gb 100 \
  --participant_label ${PARTICIPANT}

Versions

Additional context

The regressor section of the pipeline file:

nuisance_corrections: 
  2-nuisance_regression: 
    run: [On]
    Regressors: 
      #1: aCompCor, GSR, no spike regression
      - Name: "1-aCompCor-GSR-no-spike-regression"
        Motion:
          include_delayed: true
          include_squared: true
          include_delayed_squared: true
        aCompCor:
          summary:
            method: DetrendPC
            components: 5
          tissues:
            - WhiteMatter
            - CerebrospinalFluid
          extraction_resolution: 2
        GlobalSignal:
          summary: Mean
        PolyOrt:
          degree: 2
        Bandpass:
          bottom_frequency: 0.01
          top_frequency: 0.1
      #2 aCompCor, no GSR, no spike regression
      - Name: "2-aCompCor-no-GSR-no-spike-regression"
        Motion:
          include_delayed: true
          include_squared: true
          include_delayed_squared: true
        aCompCor:
          summary:
            method: DetrendPC
            components: 5
          tissues:
            - WhiteMatter
            - CerebrospinalFluid
          extraction_resolution: 2
        PolyOrt:
          degree: 2
        Bandpass:
          bottom_frequency: 0.01
          top_frequency: 0.1
      #3 No aCompCor, GSR, no spike regression
      - Name: "3-No-aCompCor-GSR-no-spike-regression"
        Motion:
          include_delayed: true
          include_squared: true
          include_delayed_squared: true
        GlobalSignal:
          summary: Mean
        PolyOrt:
          degree: 2
        Bandpass:
          bottom_frequency: 0.01
          top_frequency: 0.1
      #4 No aCompCor, no GSR, no spike regression
      - Name: "4-No-aCompCor-no-GSR-no-spike-regression"
        Motion:
          include_delayed: true
          include_squared: true
          include_delayed_squared: true
        PolyOrt:
          degree: 2
        Bandpass:
          bottom_frequency: 0.01
          top_frequency: 0.1
      #5: aCompCor, GSR, spike regression
      - Name: "5-aCompCor-GSR-spike-regression"
        Motion:
          include_delayed: true
          include_squared: true
          include_delayed_squared: true
        aCompCor:
          summary:
            method: DetrendPC
            components: 5
          tissues:
            - WhiteMatter
            - CerebrospinalFluid
          extraction_resolution: 2
        GlobalSignal:
          summary: Mean
        PolyOrt:
          degree: 2
        Bandpass:
          bottom_frequency: 0.01
          top_frequency: 0.1
        Censor:
            method: SpikeRegression
            thresholds:
              - type: FD_J
                value: 0.2
            number_of_previous_trs_to_censor: 0
            number_of_subsequent_trs_to_censor: 0
      #6 aCompCor, no GSR, spike regression
      - Name: "6-aCompCor-no-GSR-spike-regression"
        Motion:
          include_delayed: true
          include_squared: true
          include_delayed_squared: true
        aCompCor:
          summary:
            method: DetrendPC
            components: 5
          tissues:
            - WhiteMatter
            - CerebrospinalFluid
          extraction_resolution: 2
        PolyOrt:
          degree: 2
        Bandpass:
          bottom_frequency: 0.01
          top_frequency: 0.1
        Censor:
            method: SpikeRegression
            thresholds:
              - type: FD_J
                value: 0.2
            number_of_previous_trs_to_censor: 0
            number_of_subsequent_trs_to_censor: 0
      #7 No aCompCor, GSR, spike regression
      - Name: "7-No-aCompCor-GSR-spike-regression"
        Motion:
          include_delayed: true
          include_squared: true
          include_delayed_squared: true
        GlobalSignal:
          summary: Mean
        PolyOrt:
          degree: 2
        Bandpass:
          bottom_frequency: 0.01
          top_frequency: 0.1
        Censor:
            method: SpikeRegression
            thresholds:
              - type: FD_J
                value: 0.2
            number_of_previous_trs_to_censor: 0
            number_of_subsequent_trs_to_censor: 0
      #8 No aCompCor, no GSR, spike regression
      - Name: "8-No-aCompCor-no-GSR-spike-regression"
        Motion:
          include_delayed: true
          include_squared: true
          include_delayed_squared: true
        PolyOrt:
          degree: 2
        Bandpass:
          bottom_frequency: 0.01
          top_frequency: 0.1
        Censor:
            method: SpikeRegression
            thresholds:
              - type: FD_J
                value: 0.2
            number_of_previous_trs_to_censor: 0
            number_of_subsequent_trs_to_censor: 0

🕵️ Determine cause of fewer timepoints than regressors

  1. For diff-proj-SB151-lessmotion, I'm not sure why so much is getting censored. The problem here is that so much gets censored that there are fewer timepoints left than regressors. I'm running this one by the rest of the team to see if they have any ideas.

🐛 `gen_motion_stats` not getting all necessary parameters

Describe the bug

if 'motion_params' not in strat:
# skullstripping tool
skullstrip_tool = strat.get('bold_masking_method')
# motion correction reference
motion_correct_ref = strat.get('motion_correction_ref')
# motion correction tool
motion_correct_tool = strat.get('motion_correction_method')
gen_motion_stats = motion_power_statistics(
name='gen_motion_stats_{0}_{1}_{2}_{3}'.format(skullstrip_tool,
motion_correct_ref,
motion_correct_tool,
num_strat),
motion_correct_tool=motion_correct_tool)

200606-00:00:33,108 nipype.workflow ERROR:
	 could not run node: resting_preproc_2014113_1.gen_motion_stats_None_None_None_0.calc_motion_parameters.b0
200606-00:00:33,108 nipype.workflow ERROR:
	 could not run node: resting_preproc_2014113_1.gen_motion_stats_None_None_None_0.calc_power_parameters.b0
200606-00:00:33,109 nipype.workflow ERROR:
	 could not run node: resting_preproc_2014113_1.gen_motion_stats_None_None_None_0.calculate_FDJ

Versions

Additional context
This may be fixed in FCP-INDI#1288

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.