Questions tagged [matlab-spm]

SPM (Statistical Parametric Mapping) is a matlab library for preprocessing and analysis of functional Magnetic Resonance Imaging (fMRI) data. Use with the [matlab] tag

SPM is maintained by the Wellcome Trust Centre for Neuroimaging.

41 questions
81
votes
5 answers

Xcode 13.3 beta 3: "swift package init" shows warning: "~/Library/org.swift.swiftpm/collections.json has been deprecated" but dunno how to use new one

Just upgraded to Xcode 13.3 beta 3 (from Xcode 13.2.1) and ran swift package init. It generated a deprecation warning, I have not seen this before: warning: Usage of /Users/sajjon/Library/org.swift.swiftpm/collections.json has been deprecated.…
Sajjon
  • 8,938
  • 5
  • 60
  • 94
4
votes
1 answer

How can I segment brain tissue with SPM without the GUI?

We're trying to segment brain tissue types with SPM, and it is nearly impossible to find out online how to call its underlying matlab functions without using the GUI. Some resources I found which did not help: SPM Manual SPM Book on Wikibooks
Leo
  • 1,757
  • 3
  • 20
  • 44
3
votes
0 answers

Can xcworkspace propagate or share Package.resolved with its sub xcprojects?

We have multiple apps who are sharing dependencies. We develop these apps in a workspace to reduce time spend resolving packages, compiling etc. The issue is that the Package.resolved is being resolved in the xcworkspace. So when our CI-CD build…
jontelang
  • 589
  • 4
  • 17
2
votes
1 answer

Swift Package Manager failed with: invalid archive returned from XY which is required by binary target

When adding the usercentrics package in swift package manager i get the following error: invalid archive returned from 'https://bitbucket.org/usercentricscode/usercentrics-spm-sdk/downloads/Usercentrics-2.8.1.xcframework.zip' which is required by…
warly
  • 1,458
  • 1
  • 16
  • 21
2
votes
1 answer

SPM modules not found in test target

I'm struggling with the SPM modules in the unit test target. Simply adding @testable import MyApp and then running UTs ends up with an error saying that an SPM module has not been found. To be more explicit, those are the error…
2
votes
1 answer

Xcode cloud Swift Package Dependencies workspace does not exist at the root of the repository

I send my project to Xcode cloud and I get this error Xcode cloud Swift Package Dependencies workspace does not exist at the root of the repository The project had cocoa pods, removed them and switched to spm.
Sosin Vitalii
  • 339
  • 3
  • 4
2
votes
0 answers

When will spm_jobman run jobs in parallel?

I'm using spm_jobman() run a large number of SPM jobs. I have a machine with a large number of processors, so I would like to be able to run them in parallel. Can spm_jobman() run jobs in parallel? If so, how can this be done?
Dan
  • 12,157
  • 12
  • 50
  • 84
2
votes
1 answer

SPM in matlab: how to call matlab function in Batch Editor

I'm writing a batch using the Batch Editor in SPM8 using matlab. Now I want to include a simple matlab function that I have written myself. I make sure this function is saved in the path of SPM. As input variable the function uses a file from a…
sdbonte
  • 102
  • 12
1
vote
2 answers

Un-gzipping MRI Files in MATLAB

I'm learning MATLAB +SPM12 to do structural MRI analysis. To do this, I need to change the format of the files from gz to NIFTI. The guide I'm using said to use gunzip('*.gz') Flanker=gunzip('*.gz') Dot indexing is not supported for variables of…
1
vote
2 answers

Failed to Display Image in Swift Package Manager XCAssets using UIKit

I'm currently working on Swift Package Manager project and I need to use images (myImage) I put in my custom XCAssets (CoreUI.xcassets). I have included my XCAssets in the SPM resources like this. targets: [ .target( name: "MyCoreUI", …
Firda Sahidi
  • 1,227
  • 1
  • 11
  • 22
1
vote
0 answers

Nipype SPM12 / Matlab Compiler Runtime interface functions

I'm trying to run SPM functions via Nipype but i get the same error when calling different SPM functions. I can successfully connect to the Matlab compiler runtime and execute commands via nipype like so: import nipype.interfaces.matlab as…
Elias Rau
  • 11
  • 2
1
vote
1 answer

SPM "Bundle format unrecognized, invalid, or unsuitable"

I'm preparing the SPM package, with resources folder. When I compile it for device, it work ok and I got successful. But when I try to build to simulator, I got error: ... bundle format unrecognized, invalid, or unsuitable What can be wrong? Tried…
Bimawa
  • 3,535
  • 2
  • 25
  • 45
1
vote
1 answer

Swift Package Manager dependencies won't build: "Showing All Errors Only Command CompileSwiftSources failed with a nonzero exit code"

For some reason whenever I try to update my dependencies through SPM I get build errors. Others on my team can fetch fine, for some reason I have a hexed machine. Same version of macOS, same version of XCode, same branch from git. FYI macOS Monterey…
Yogurt
  • 2,913
  • 2
  • 32
  • 63
1
vote
1 answer

how to convert spm12 Matlab code to python?

Spm12 , GUI interface which is built on Matlab compiler.It runs inside Matlab application. Source code is available at https://github.com/spm/spm12 I need to covert the whole application into python language, any suggestions on how to get started on…
maddy23
  • 138
  • 2
  • 13
1
vote
0 answers

Skull removal from grey matter MRI

i'm working on brain images (nifti). I segmented the brain with SPM12. So the segmentation went fine but for some (a lot) of the subjects, i get this: It's a 3D image (T1 MRI) from "ADNI" database. Like you can see there are still pieces of the…
learners
  • 195
  • 1
  • 12
1
2 3