This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /lab-share/Neuro-Cohen-e2/Public/repos/e2scripts/sbatch_script_bids_target_sublist.sh \ | |
| /lab-share/Neuro-Cohen-e2/Public/repos/e2scripts/single_CBIG_Legacy.sh \ | |
| /lab-share/Neuro-Cohen-e2/Public/collections/GSP \ | |
| /lab-share/Neuro-Cohen-e2/Public/projects/GSP \ | |
| /lab-share/Neuro-Cohen-e2/Public/projects/GSP/GSP1000.txt | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # On github, fork the public repo: here, I went from https://github.com/ThomasYeoLab/CBIG to https://github.com/bchcohenlab/CBIG.git | |
| git remote rename origin upstream | |
| git remote add origin https://github.com/bchcohenlab/CBIG.git | |
| git fetch origin | |
| git branch --set-upstream-to origin/master master | |
| git pull | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /lab-share/Neuro-Cohen-e2/Public/repos/BIDS_to_CBIG_fMRI_Preproc2016/BIDS_E2_CBIG_fMRI_preprocess.sh \ | |
| /lab-share/Neuro-Cohen-e2/Public/collections/GSP \ | |
| /lab-share/Neuro-Cohen-e2/Public/projects/GSP/freesurfer_v4.5.0 \ | |
| /lab-share/Neuro-Cohen-e2/Public/projects/GSP \ | |
| sub-0001 \ | |
| /lab-share/Neuro-Cohen-e2/Public/repos/BIDS_to_CBIG_fMRI_Preproc2016/configs/Legacy.config | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # Scripts are here: https://github.com/bchcohenlab/BIDS_to_CBIG_fMRI_Preproc2016 | |
| # Usage for Whole BIDS directory: | |
| # BIDS_parallel.sh <number_of_threads> <script_to_run> <bids_dir> <all_the_arguments> | |
| # BIDS_parallel_list.sh <number_of_threads> <script_to_run> <bids_dir> <list> <all_the_arguments> | |
| #Examples: | |
| /fileserver/caladan_ssd/repos/BIDS_to_CBIG_fMRI_Preproc2016/BIDS_parallel.sh 60 \ | |
| /fileserver/caladan_ssd/repos/BIDS_to_CBIG_fMRI_Preproc2016/BIDS_CBIG_fMRI_preprocess.sh \ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| for i in `cat ABCD1000.txt`; do | |
| echo rsync -ravhP --delete -e ssh \ | |
| /reference_databases/RestrictedAccessDatabase/Dropoff_Alex/abcdbids/s3/sub-${i}/ \ | |
| ch186161@corrin:/local_raid/collections/ABCD/sub-${i}/ >> commands.txt | |
| done | |
| parallel --eta --jobs 4 < commands.txt | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| /lab-share/Neuro-Cohen-e2/Public/repos/e2scripts/sbatch_script_bids_target_sublist_exclude.sh \ | |
| /lab-share/Neuro-Cohen-e2/Public/repos/e2scripts/single_freesurfer_v4.5.sh \ | |
| /lab-share/Neuro-Cohen-e2/Public/collections/GSP \ | |
| /lab-share/Neuro-Cohen-e2/Public/projects/GSP/freesurfer_v4.5.0 \ | |
| /lab-share/Neuro-Cohen-e2/Public/projects/GSP/GSP1000.txt | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # in study dir: | |
| # Create superdataset | |
| datalad create -c text2git --force | |
| for i in `ls -d sub-*`; do | |
| if [ ! -d "${i}/.git" ]; then | |
| # Create and register the subdataset | |
| datalad create -c text2git --force -d . $i | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| for i in `ls -d sub-*/`; \ | |
| do echo $i `grep '"'Manufacturer'"' ${i}/ses-baselineYear1Arm1/func/sub*_ses-baselineYear1Arm1_task-rest_run-01_bold.json` >> scanner_list; done | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Bootstrap:docker | |
| From:centos:6 | |
| %files | |
| license.txt /opt/freesurfer/.license | |
| %environment | |
| FREESURFER_HOME=/opt/freesurfer | |
| SUBJECTS_DIR=/output | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| #After logging into E2 | |
| srun -A bch -p bch-interactive -n 16 --mem=16GB --pty /bin/bash | |
| python3 /lab-share/Neuro-Cohen-e2/Public/repos/nda-abcd-s3-downloader/download.py \ | |
| -i datastructure_manifest.txt \ | |
| -o /reference_databases/RestrictedAccessDatabase/Dropoff_Alex/abcdbids/s3 \ | |
| -d data_subsets_inputs_only.txt \ | |
| -p 16 |