Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:24
    aghayoor commented #3263
  • 01:24
    aghayoor synchronize #3263
  • Oct 26 23:01
    effigies commented #3263
  • Oct 26 22:46
    aghayoor synchronize #3263
  • Oct 26 21:31
    aghayoor commented #3263
  • Oct 26 19:47
    effigies commented #3263
  • Oct 26 18:53
    aghayoor commented #3263
  • Oct 26 18:38
    effigies commented #3263
  • Oct 26 18:37
    aghayoor commented #3263
  • Oct 26 18:19
    aghayoor opened #3263
  • Oct 26 12:28
  • Oct 26 10:07
    GalBenZvi synchronize #3248
  • Oct 26 09:59
    GalBenZvi synchronize #3248
  • Oct 26 09:59
    GalBenZvi synchronize #3248
  • Oct 26 09:59
    GalBenZvi synchronize #3248
  • Oct 23 18:11
  • Oct 23 06:10
    GalBenZvi commented #3248
  • Oct 22 09:52
    effigies commented #3248
  • Oct 22 07:44
    GalBenZvi commented #3248
  • Oct 22 05:52
    HippocampusGirl commented #3260
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!!!!!!!!!!
Thank you so much . Able to fix the issue
Peer Herholz
@PeerHerholz
could you maybe post the solution (for the sake of completness)? on a related note: such question are great for https://neurostars.org/ as more folks will see your post, might be able to help and furthermore other folks with similar problems are able to find your post and thus the potential solution.
Divyaashwin
@Divyaashwin
yeah !!!!!!!!! sure
@Divyaashwin :
Divyaashwin
@Divyaashwin

@Divyaashwin ,
Step 1.

A) FSL installation is must even if we use nipype.interface for brain extration. FSL Installation link -> https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FslInstallation.
B) Add the following to ~/.bashrc file
. /etc/fsl/5.0/fsh.sh
. ${FSLDIR}/etc/fslconf/fsl.sh
PATH=${FSLDIR}/bin:${PATH}
export FSLDIR PATH

C) After complete installation restart the system.

Step 2: Check the installation :

A) Type FSL and press enter (BET tool (GUI)pops out).
B) In command prompt , type bet inputfilename.nii.gz outfilename

If it work well, then we can use nipype.interface program for multiple slice brain extraction .

susamerz
@susamerz
Hi, I'm really new to nipype, so excuse me if I'm asking stupid questions: Is it possible to iteratively create a fslmath op string during workflow execution. I'm doing MRI analysis and my aim is to create a mask of all voxels with signal in each of a bunch of functional images from different subjects. However I don't want to hardcode how many images there are.
hardcoded I would do something like fslmath img1 -mas img2 -mas img -mas img4 outimg for four input images, where img1 has been binarized before this
christianbos1
@christianbos1
Hello, I'm also new to nipype. What packages do I need to import in order to use DualRegression()?
AishvaryaShri
@AishvaryaShri
@orduek Thank you! :)
Ari Kahn
@ariekahn
Hey, wanted to submit a quick documentation patch, but I'm seeing a number of docstring formats being used (mostly rest and numpy). What's preferred?
Ari Kahn
@ariekahn
for what it's worth, this is for a utility function, not an interface
Zvi Baratz
@ZviBaratz
Hi all! I am mentoring 2-3 students in a python course's final project / hackathon. My lab occasionally uses fsl_anat, which I couldn't find a nipype interface for. I proposed to create such an interface as a project and it was accepted, so I was wondering whether there's interest in trying to make a PR out of it.
As far as I understand there are two logical ways to create such an interface, either by subclassing FSLCommand and making the required modifications, or by checking out the source code and generating a Workflow that imitates it. Personally I think the second option is much more robust, but of course if there is interest in the PR and a strong preference for the FSLCommand method, we will gladly oblige.
Oscar Esteban
@oesteban
If you take the workflow route (which also makes more sense to me), please consider building it as a niflow (https://github.com/niflows)
niflows will basically give you a workflow manager so it can be installed as an individual application
ping @effigies for further information
Yasmin Aljedawi
@jasminej90
Hello, I am new to nipype. Can I use it with anaconda 3.7? Or is it strict to 2.7 (since FSL is compatible with python 2.7 only but not 3.X)?
Peer Herholz
@PeerHerholz
@jasminej90 yeah, nipype is a workflow enginge and โ€œonlyโ€ wraps FSL (and many other) functions. As long as your FSL installation can be sourced respectively, you should be good to go. Also, for such questions we recommend to use neurostars.org wrt archiving and findability.
Sudhakar Tummala
@tummala_gitlab
Hello all, is it possible to use T2 or FLAIR images along with T1 for SPM segment? I could not see an option at the moment in Nipype, if anybody has used it, please let me know.
Sudhakar Tummala
@tummala_gitlab
which version of Nipype has got MultiChannelNewSegment?
Ben Velie
@veliebm
hi guys! i'm struggling to transfer my pi's lab to nipype. he said nipype can automatically determine the best interface for any preprocessing step. for example, if afni has the best blurring step, then nipype should automatically use afni's interface to blur our images. but i've been fiddling with the software for a week now and i haven't figured out how to get it to do that. can nipype actually choose the best interfaces on its own?
appreciate your time ๐Ÿ™‚
matrixbot
@matrixbot
Chris Markiewicz Nipype gives you the ability to easily switch from one tool to the other, if you decide one is better, but nipype has no way to determine "best" or automatically switch. You could create a workflow that performs several steps, and then selects one result using some objective function...
Ben Velie
@veliebm
rats! oh well. thanks for answering me!
Abdul Sayyed
@AbdulSayyed
Hi, I am new to nipype and trying to follow a given example but when I read a file using BET interfaces I constantly get a trait error.
TraitError: The 'in_file' trait of a BETInputSpec instance must be a pathlike object or string representing an existing file, but a value of '/home/sayyed/neuro-science/projects/nikola/mysite/notebooks/data/ds000114/sub-01/ses-test/anat/sub-01_ses-test_T1w.nii.gz' was specified.
Any help !
from nipype.interfaces.fsl import BET
skullstrip = BET(in_file=fileInput)
res = skullstrip.run()
print(res.outputs.out_file)
matrixbot
@matrixbot
Chris Markiewicz If that's a datalad dataset, it's possible that the data is not fetched. Can you open that file with any other tool?
Abdul Sayyed
@AbdulSayyed
Yes I can open it if I move the file to my current directory
matrixbot
@matrixbot
Chris Markiewicz I'm not sure I understand. Does something prevent you from opening in its initial location?
Abdul Sayyed
@AbdulSayyed
on line 2 above skullstrip = BET(in_file = fileInput) it throws the above error
matrixbot
@matrixbot
Chris Markiewicz Sorry, I was unclear. I meant, why do you need to move the file to your current directory to open it? What are you using to open it?
Abdul Sayyed
@AbdulSayyed
I am not moving it, I am trying to read it where it is but it does not read it from the original location, for some reason it says that a path like object is expected .. but the value of ... is specified
matrixbot
@matrixbot
Chris Markiewicz
What do you get if you run: ls -AFl /home/sayyed/neuro-science/projects/nikola/mysite/notebooks/data/ds000114/sub-01/ses-test/anat/sub-01_ses-test_T1w.nii.gz
Abdul Sayyed
@AbdulSayyed
The file is in the directory /data/ds000114/sub-01/ses-test/anat/sub-01_ses-test_T1w.nii.gz but the function does not treat it an acceptable path.
matrixbot
@matrixbot
Chris Markiewicz Ah. What is fileInput, then? Is there a chance that you're missing an initial /?
Abdul Sayyed
@AbdulSayyed
Thanks I got the point it is link pointing to another location let me deal with it , if any problem I will come back many thanks
Rami Hamati
@ramroomh
Hi there, thanks for your time. Looking to wrap https://surfer.nmr.mgh.harvard.edu/fswiki/mri_cvs_register. It is 1 line in bash, with the only required flag being subject ID -freesurfer does the rest. Is there any quick way to add this to a work flow without creating a whole interface?
Renata Baptista
@rpbaptista
Hello, I wondered if I could import the whole fsl_anat() with nipype, thanks!
Peer Herholz
@PeerHerholz
@ramroomh you could use the function interface for that: https://miykael.github.io/nipype_tutorial/notebooks/basic_function_interface.html
workflows that used to be available via nipype.workflows were migrated to NiFlows and their continued use is discouraged: https://nipype.readthedocs.io/en/latest/interfaces.html#workflows
Peer Herholz
@PeerHerholz
Renata Baptista
@rpbaptista
Yes I saw that I can't use directly, would you recomend a way for transfering fsl_anat to be nipype adaptable?