39 questions
1
vote
0
answers
48
views
MATLAB Documentation for SPM1d
I am trying to use the two-sample ttest in the spm1d MATLAB package. I have watched the tutorial videos on Youtube and know how to run tests similar to what's shown in those videos. I am wondering if ...
0
votes
0
answers
36
views
iOS making optional framework with canimport
I’m trying to create a CustomFramework that uses PLCrashReporter and CocoaLumberjack.
If the consuming application does not embed either one of these SDKs, the framework should skip executing the code ...
0
votes
1
answer
258
views
Bitrise can't find Xcode test bundles when running Swift Package tests
I'm having an issue with running Swift Package tests through a test plan on Bitrise. While everything works fine locally, Bitrise fails with "There are no test bundles available to test."
...
2
votes
1
answer
351
views
I can't find the Storekit configuration file for unit test
I'm writing a library for Storekit. I want to write a unittest of my code. But I cannot see the storekit configuration file I added. And I get the following error: testFetchProducts(): failed: caught ...
1
vote
1
answer
697
views
issues with SPM12 and iMac (Apple M1) - Sonoma
I get this error. I've tried to fix it following the guidelines online but it seems impossible to solve.
Can someone help me please?
Error using spm_check_installation>check_basic
SPM uses a ...
0
votes
1
answer
859
views
SPM can't find HTTPS packages but seems to resolve when I'm changing to SSH: "The repository could not be found"
I am trying to run a project that only ran on the original developer's machine until now and has a massive amount of Swift Packages, most of them remote but a few local as well.
As soon as I update ...
-1
votes
1
answer
330
views
SPM Xcode test fails because bundle couldn't be loaded
I cannot run tests in Xcode when working on a pure SPM package, testing on Mac (macOS 13).
Running the tests of the package with swift test in the Package root folder works!
Only Xcode testing of the ...
1
vote
2
answers
311
views
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')
...
11
votes
4
answers
4k
views
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/...
1
vote
1
answer
1k
views
SPM dependency between multiple packages
I'm trying to create SPM hierarchy where some packages have dependecies on other, like this:
Package A is Core package where I also added dependencies to some external libraries and where I keep most ...
4
votes
0
answers
123
views
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 ...
0
votes
0
answers
51
views
How to extract value per voxel in Matlab?
I am doing SPM on brain images and I want to extract the value of T-stat for each voxel (in mm coordinate rather than voxel coordinate). Is there any function do that in Matlab?
The image is the SPM ...
2
votes
2
answers
1k
views
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.
...
2
votes
1
answer
1k
views
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 ...
2
votes
1
answer
832
views
Xcode cloud Swift Package Dependencies workspace does not exist at the root of the repository [closed]
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 CocoaPods, I removed them and ...
1
vote
0
answers
177
views
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 ...
0
votes
2
answers
2k
views
How to overlay 2 nifti files?
Im a beginner in the nifti world, and have to overlay 2 niftis (one segmented white matter and one segmented gray matter images) together.
I tried with FSLeyes but I cant save them to a nifti.
If ...
2
votes
2
answers
413
views
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, ...
1
vote
1
answer
1k
views
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 ...
81
votes
5
answers
12k
views
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....
0
votes
1
answer
98
views
Using SPM (SQL Plan Management) - Oracle DB
Can SPM cause a temp regression for the SQL in case below --
Scenario :
1.Weekend Changes (suppose) like huge data load and the weekend gather stats job causes stats to change and thus this change ...
-1
votes
1
answer
3k
views
Error compiling SPM12 for MATLAB on a Mac M1 with Big Sur
I have some problems, trying to install SPM12 on my Mac M1 with Big Sur. My config is:
Mac M1 Big Sur (11.3.1) - 512/16GB
MATLAB_R2020a
SPM12
I followed the instruction here
On Matlab: addpath ./...
0
votes
2
answers
135
views
What seems to be the problem with my short SPM12 script - it's supposed to sum two neural maps (.nii)?
I'm not afraid this question might be too obscure, but here it goes!
I have limited experience with scripting, and I wrote this script to sum two neural maps (that contain "c1" or "c2&...
1
vote
1
answer
501
views
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 ...
0
votes
1
answer
653
views
Using nibabel to save nifti in "SPM" style
I have used python to analyse some fMRI data and would now like to save my results as niftis that I can then use in an SPM analysis.
My data scores is an array of float64 of shape (97, 115, 97). I ...
0
votes
0
answers
189
views
for how How to compute whether representational similarity matrix values are significant
I am new to RSA analysis in fMRI images. I used SPM 12 for preprocessing and first level analysis of my fMRI images and used RSA-toolbox to compute RDMs (representational dissimilarity matrix) for my ...
-1
votes
1
answer
1k
views
Cannot import dicom images in SPM
I have some dicom images which SPM cannot import them, for each dcm file I see the below error:
S11956_I11604.dcm" does not seem to have positional information.
It seems my dcm files do not have ...
0
votes
1
answer
1k
views
Nested Anova in python with Spm1d. Can't print f statistics and p values
I'm looking for a simple solution to perform multi-factor ANOVA analysis in python. A 2-factor nested ANOVA is what I'm after, and the SPM1D python module is one way to do that, however I am having an ...
0
votes
1
answer
56
views
MATLAB selecting items considering the end of their name
I have to extract the onset times for a fMRI experiment. I have a nested output called "ResOut", which contains different matrices. One of these is called "cond", and I need the 4th element of it [1,2,...
1
vote
0
answers
410
views
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.
...
0
votes
1
answer
1k
views
Is it possible to apply an arbitrary transformation matrix to an image in SPM?
I have a somewhat specific task I'd like to do in SPM.
Basically, I have some input NII file scan.nii and I would like to apply an arbitrary affine transformation to it, defined by x y z p r yw.
x,y,...
1
vote
1
answer
721
views
Compiled MATLAB error: Undefined function 'ft_datatype_sens' for input arguments of type 'struct'
I have a MATLAB program written by one of my users which makes use of the SPM8 toolbox. If run directly, it works fine. However, when compiled and then run, the following error occurs:
Undefined ...
1
vote
1
answer
400
views
ImportError: No module named 'spm1d
I have Python 3.5.2 (Anaconda 4.2.0 (x86_64)) on my Mac laptop and I am facing this problem:
import spm1d
Traceback (most recent call last):
ImportError: No module named 'spm1d'
I searched about the ...
0
votes
1
answer
526
views
SPM12 debugging on Matlab
I have a problem using SPM on Matlab. I have an m-file that I need to debug and I have not written.
This code is old and probably the error is hopefully given by the difference in syntax of the newer ...
4
votes
0
answers
373
views
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 ...
1
vote
0
answers
270
views
Call external function in SPM matlabbatch
I tried to use a private MATLAB function (private means that I wrote it myself) via the matlabbatch object in SPM12 that I compiled :
run_spm12.sh $MCR_ENV run batch.m
with the batch.m file ...
1
vote
1
answer
385
views
SPM Dicom Convert in python (Ipython/ Nipype)
I am new to python or more specifically ipython. I have been running through the steps to run what should be a very simple Dicom Conversion in a statistical package called SPM for an MRI image file ...
2
votes
1
answer
1k
views
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 ...
4
votes
1
answer
3k
views
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 ...