Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:10
    effigies edited #3279
  • 14:10
    effigies opened #3279
  • Nov 30 19:17
    axiezai commented #3278
  • Nov 30 18:12
    axiezai opened #3278
  • Nov 28 22:30
    effigies commented #2509
  • Nov 28 22:30
    effigies opened #3277
  • Nov 28 21:51
    benjo-90 commented #2509
  • Nov 28 17:00

    effigies on 1.6.0

    (compare)

  • Nov 28 17:00
    effigies closed #3275
  • Nov 28 17:00

    effigies on master

    MNT: 1.6.0 MNT: Update Zenodo ordering DOC: 1.6.0 changelog and 1 more (compare)

  • Nov 28 17:00

    effigies on 1.6.0

    (compare)

  • Nov 28 16:58
    effigies commented #3275
  • Nov 28 16:52
    effigies edited #3275
  • Nov 28 15:34
    effigies edited #3275
  • Nov 28 15:27
    effigies edited #3275
  • Nov 28 15:26
    effigies edited #3275
  • Nov 28 15:26
    effigies edited #3275
  • Nov 28 15:26
    effigies edited #3275
  • Nov 28 15:25
    effigies demilestoned #3268
  • Nov 28 15:25
    effigies commented #3268
Peer Herholz
@PeerHerholz
@emiel8, regarding installing nipype and the software it provides interfaces to, you can also have a look here . Installation instructions are for Ubuntu, but work well with Mac OS as well (just change the corresponding installation files). Re ANTs: I usually just download the latest release and add the paths to the .bashrc/.bash_profile. So far I did not need to compile it on Mac OS. That being said: newer versions (looking at you catalina) might create problems. If you want to use computers at your school the mentioned .bash thingies might be hurdle given the most likely centralized IT. based on that docker/singularity might also be out as options. let me/us know how things proceed.
emiel8
@emiel8
@PeerHerholz thank you a lot, I am going to try it ASAP this coming week and will let you know!
Grace Shearrer
@grace-shearrer
Yo! Does anyone have experience wrapping a MATLAB script in nipype? I am trying to wrap an old FSLNETS script
Tashrif Billah
@tashrifbillah
Hi, is there a documentation that explains the content of each output file from a nipype workflow?
Please see nipy/nipype#3091 for details.
Peer Herholz
@PeerHerholz
@grace-shearrer, I assume you already had a look at the examples in the nipype docs?
Tashrif Billah
@tashrifbillah
Is there a TUTORIAL showing use of DataSinkto store results in subfolders named after subject_id? This gives some hint, but no example.
Tashrif Billah
@tashrifbillah
I figured a way out from here. I am good now, thanks.
Thom Shaw
@thomshaw92
Hi experts,
I was wondering if someone could please take a look at my question over at https://neurostars.org/t/multiple-inputs-to-c3d-from-seperate-nodes/5135
Thanks so much for your help!
Sin Kim
@AKSoo
Has anyone here worked with DataSink and AWS S3 recently? I am testing the connection with a simple test file, and the file never shows up in the S3 bucket. Oddly, the workflow reports no errors. The local copy works fine too.
If one of the main developers reads this, would appreciate if he/she do a quick test on DataSink with S3 base_directory.
Sin Kim
@AKSoo
oh wow this is kind of funny
the DataSink is actually making an output directory named s3:
and putting things there
still would appreciate if someone else tests to make sure it's not a problem with my set-up
alegiac95
@alegiac95
Hello everyone, I'm having some troubles using the ants.WarpImageMultiTransform() interface. The problem I'm having is that one of the input fields of this interface is supposed to be composed of multiple files (in_fields input) but as soon as I run the pipeline I get an TypeError: unhashable type: 'list' error. How can I avoid this? Thank you so much for your help!
Peer Herholz
@PeerHerholz
@alegiac95 could you provide a little more information on your pipelines, maybe including a code snippet? ants.WarpImageMultiTransform()has two mandatory inputs: input_image and transformation_series. The first should an image (e.g., a structural or a functional) and the second a list of files representing the transformation files.
alegiac95
@alegiac95
@PeerHerholz sorry i typed the wrong input name. The input is transformation_series and I'm using it to apply some transformations that I already have obtained from the generation of an ants template to a functional image. The problem is that to transform correctly the image I have to provide two inputs in the transformation_series input (an affine and a warp) but when I provide a list as input the workflow won't run because of the error mentioned earlier
Peer Herholz
@PeerHerholz
did you check the .rst file of the corresponding node and .cmdline regarding if all other inputs are set as they should?
alegiac95
@alegiac95
@PeerHerholz I resolved it using a Merge node. Thank you for your quick support and help
Peer Herholz
@PeerHerholz
@alegiac95 glad to hear that. So it was a pipeline-input-output problem?
alegiac95
@alegiac95
@PeerHerholz yes, it was just an input-ouput problem.
EndritPJ
@EndritPJ

Hello! I have a question regarding nipype - I found the c3d wrapper to be missing lots of functions such as thresholding: https://nipype.readthedocs.io/en/latest/interfaces/generated/nipype.interfaces.c3.html

Is there any way I can access all c3d functions from the nipype module? If not are there any plans to add this? Thank you!

alegiac95
@alegiac95
clear
AishvaryaShri
@AishvaryaShri
can functional connectivity be calculated in rsfMRI using nipype
Hailey Trier
@trier1_gitlab
Hi, possibly silly question here - nipype can't find the executable file 'feat_model' from fsl, even though it's definitely in my fsl file - any suggestions? i must be missing a simple command
matrixbot
@matrixbot
Chris Markiewicz Not sure what you mean by "in your FSL file"... Is feat_model runnable from the same shell you're running nipype from?
Sudhakar Tummala
@Tummala1985_twitter
Hello, How to convert zipped dicom folder to Nifti in Nipype?
matrixbot
@matrixbot
Chris Markiewicz There's a dcm2niix interface in Nipype.
Or Duek
@orduek
@AishvaryaShri Nilearn might be you best bet for those ones
Luke Bloy
@bloyl
Not sure if here or neurostars or github is the best to ask questions but I’ll start here :)
Can I use a joinNode to merge the outputs of a mapNode? I feel like I should but haven’t seen it in any of the docs?
matrixbot
@matrixbot
Chris Markiewicz Nope. JoinNode's collapse workflows split by an iterable. You can think of a MapNode as a single-node split and join. The outputs are always promoted to lists.
Luke Bloy
@bloyl
Thanks. My error actually ended up being unrelated.
Elham Khosravi
@elhamkhosravi_gitlab
Hi there, I am using ConvertScalarImageToRGB and want to use a custom_color_map_file. I have defined an array for my colormap, but couldn't make it work. Do you have an example that shows how custom_color_map_file should be defined? Thanks!
andrewcyung
@andrewcyung
Hello everybody, is it possible for me to delete just the output data in a node's directory, but configure nipype in such a way that the node will not try to run again to generate new data, nor trigger the execution of downstream nodes in the same workflow? Use case: I am running out of hard drive space, and want to clear away some intermediate data that I know I won't need anymore. However, I want to prevent reprocessing of downstream data which uses a lot of compute power. Any ideas?
Divyaashwin
@Divyaashwin

def getthreshop(thresh):
return '-thr %.10f -Tmin -bin' % (0.1 * thresh[0][1])

preproc.connect(getthresh, ('out_stat', getthreshop), threshold, 'op_string')

error: ----> preproc.connect(getthresh, ('out_stat', getthreshop), threshold, 'op_string')

NameError: name 'threshold' is not defined

matrixbot
@matrixbot
Chris Markiewicz You need to create a node named threshold to connect. Or pass the name of another node.
Divyaashwin
@Divyaashwin

Dear all,
could you please help me out to fix the issue.
I'm working on skull stripping of brain MRI dicom images.
The following program :

################PROGRAM BEGINS

from nipype.interfaces import fsl
from nilearn.plotting import plot_anat
import numpy as np
import os
import matplotlib.pyplot as plt
def bet(in_file, frac = 0.40, robust = True):
fsl.FSLCommand.set_default_output_type('NIFTI_GZ')
skullstrip = fsl.BET()
in_file = in_file
skullstrip.inputs.in_file = os.path.abspath(in_file)
skullstrip.inputs.out_file = os.path.abspath(
infile.replace('.nii.gz',
f'
{frac}_brain.nii.gz')
)
skullstrip.inputs.frac = frac
skullstrip.inputs.robust = robust
return skullstrip
anat_head = 'flair.nii.gz'
fracs = np.arange(0.3,0.75,0.05)
for frac in fracs:
skullstrip = bet(anat_head,frac = round(frac,2),)
skullstrip.run()
print(skullstrip.cmdline)

########################PROGRAM ENDS

getting following error :
Traceback (most recent call last):
File "fsl_bet.py", line 61, in <module>
skullstrip.run()
File "/anaconda3/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 397, in run
runtime = self._run_interface(runtime)
File "/anaconda3/lib/python3.7/site-packages/nipype/interfaces/fsl/preprocess.py", line 162, in _run_interface
runtime = super(BET, self)._run_interface(runtime)
File "/anaconda3/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 781, in _run_interface
% (executable_name, runtime.hostname)
OSError: No command "bet" found on host divya-HP-ProBook-440-G3. Please check that the corresponding package is installed.

matrixbot
@matrixbot
Chris Markiewicz Is FSL installed?
Divyaashwin
@Divyaashwin
yeah sir.
Peer Herholz
@PeerHerholz
are the respective environment variables set in your bashrc/bashprofile (e.g. if you type and run “fsl” within your terminal, does it work)? do you have multiple python environments?
Divyaashwin
@Divyaashwin
yeah sir. If i type fsl within the terminal(BET )works.
Divyaashwin
@Divyaashwin
I have only python3.7.6
Satrajit Ghosh
@satra
does bet work in the terminal (bet flair.nii.gz test) and are you running the python code in the same terminal (or separately through an ide)
Divyaashwin
@Divyaashwin
yeah i checked it worked
Satrajit Ghosh
@satra
are you running the code you posted in the same terminal?
can you do which bet in the terminal that you are running the code in.
Divyaashwin
@Divyaashwin
it echos "/usr/share/fsl/5.0/bin/bet"
Divyaashwin
@Divyaashwin
Dear all!!!!!!!!!!