Skip to content

Instantly share code, notes, and snippets.

@agahkarakuzu
agahkarakuzu / gist:97dbc6f89652576d4b1de1d01b8a8669
Created June 17, 2025 15:19
Neuromosaics paper.md frontmatter
---
title: 'NeuroMOSAICS: A collection of neurostimulation datasets - Multi-scale Open-Source Across Interfaces Conditions & Species.'
tags:
- Neurostimulation
- Optimization
- Machine learning
- Open source dataset
authors:
- name: Lison Kardassevitch
affiliation: "1,2,3"
process {
withName: alignMtsatInputs {
cpus = 1
memory = 0.5.GB
maxForks = 5
container = 'qmrlab/antsfsl:latest'
}
withName: publishOutputs {
cpus = 1
memory = 1.GB
nextflow.enable.dsl=2
include { getSubSesEntity; checkSesFolders } from './modules/bids_patterns'
params.bids = false
params.help = false
if (params.platform == "octave"){
if (params.octave_path){
log.info "Using Octave executable declared in nextflow.config."
@agahkarakuzu
agahkarakuzu / lsline_octaeve.m
Created June 10, 2020 07:41
MATLAB's `lsline` function, super simple Octave version.
function [xl,y_bfl] = lsline_octave(X,Y,axsh)
xl = get(axsh,'xlim');
yl = get(axsh,'ylim');
pf = polyfit(X,Y,1);
y_bfl = pf(1)*xl + pf(2);
hold on;
plot(xl,y_bfl,'r','LineWidth',4);
set(axsh,'xlim',xl);
set(axsh,'ylim',yl);
@agahkarakuzu
agahkarakuzu / environment.yml
Created May 23, 2020 13:34
Conda environment for RRSG2020 (Exported from OSX)
name: sos_matlab
channels:
- defaults
dependencies:
- appnope=0.1.0=py36hf537a9a_0
- backcall=0.1.0=py36_0
- ca-certificates=2020.1.1=0
- certifi=2020.4.5.1=py36_0
- decorator=4.4.2=py_0
- ipython=7.2.0=py36h39e3cac_0
In file included from /home/jovyan/work/build/Elastix/Common/CostFunctions/itkAdvancedImageToImageMetric.h:28:0,
from /home/jovyan/work/build/Elastix/Common/itkMultiResolutionImageRegistrationMethod2.h:43,
from /home/jovyan/work/build/Elastix/Core/ComponentBaseClasses/elxRegistrationBase.h:25,
from /home/jovyan/work/build/Elastix/Core/Kernel/elxElastixTemplate.h:30,
from /home/jovyan/work/build/Elastix/Core/Install/elxIncludes.h:39,
from /home/jovyan/work/build/Elastix/Components/FixedImagePyramids/FixedRecursivePyramid/elxFixedRecursivePyramid.h:21,
from /home/jovyan/work/build/Elastix/Components/FixedImagePyramids/FixedRecursivePyramid/elxFixedRecursivePyramid.cxx:19:
/home/jovyan/work/build/Elastix/Common/CostFunctions/itkLimiterFunctionBase.h:102:35: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
virtual void Initialize( void ) throw ( ExceptionObject ) {}
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli 'sodium',
1 verbose cli '--unsafe-perm' ]
2 info using npm@3.5.2
3 info using node@v4.2.6
4 verbose config Skipping project config: /home/agah/.npmrc. (matches userconfig)
5 silly loadCurrentTree Starting