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
| # web-based (must be within VPN): | |
| https://jupyterhub.partners.org/ | |
| #ssh (must be within VPN; lowercase username): | |
| ssh -XYC xxx@erisone.partners.org | |
| # transfer node: | |
| rsync -avz path/to/source/files <username>@erisonexf.partners.org:path/to/destination/folder |
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
| # The API token is obtainable after you log-in to Harvard dataverse from your profile page | |
| export API_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | |
| export SERVER_URL=https://dataverse.harvard.edu | |
| export PERSISTENT_ID=doi:10.7910/DVN/ILXIKS | |
| export VERSION=1.0 | |
| curl -O -J -H "X-Dataverse-key:$API_TOKEN" $SERVER_URL/api/access/dataset/:persistentId/versions/$VERSION?persistentId=$PERSISTENT_ID |
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
| # key is your API key from Harvard Dataverse (optainable after log-in from the profile settings) | |
| java -jar DVUploader-v1.0.9.jar -server=https://dataverse.harvard.edu -did=doi:10.7910/DVN/ILXIKS -key=xxxx-xxx-xxxx-xxxx -ex=^.DS_Store -recurse GSP1000 |
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
| # Back up most of E2 to GDrive | |
| rclone sync /lab-share/Neuro-Cohen-e2/Public/collections/yeo1000 drive_cohenlab:/collections/yeo1000 --progress --copy-links --exclude '.*{/**,}' --delete-excluded --delete-during --drive-stop-on-upload-limit && \ | |
| rclone sync /lab-share/Neuro-Cohen-e2/Public/collections/GSP drive_cohenlab:/collections/GSP --progress --copy-links --exclude '.*{/**,}' --delete-excluded --delete-during --drive-stop-on-upload-limit && \ | |
| rclone sync /lab-share/Neuro-Cohen-e2/Public/connectomes drive_cohenlab_Connectomes:/connectomes --progress --copy-links --exclude '.*{/**,}' --delete-excluded --delete-during --drive-stop-on-upload-limit && \ | |
| rclone sync /lab-share/Neuro-Cohen-e2/Public/containers drive_cohenlab:/containers --progress --copy-links --exclude '.*{/**,}' --delete-excluded --delete-during --drive-stop-on-upload-limit && \ | |
| rclone sync /lab-share/Neuro-Cohen-e2/Public/environment drive_cohenlab:/environment - |
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
| for i in $(seq 97); do | |
| sbatch /lab-share/Neuro-Cohen-e2/Public/repos/e2scripts/single_LOOCV_PALM.sh \ | |
| /lab-share/Neuro-Cohen-e2/Public/notebooks/acohen8/PALM_Damage_Score_LOOCV/4_PALM_LOOCV_memV.py $i | |
| sleep 10 | |
| 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
| /lab-share/Neuro-Cohen-e2/Public/repos/e2scripts/sbatch_script_bids_target_sublist.sh \ | |
| /lab-share/Neuro-Cohen-e2/Public/repos/e2scripts/single_freesurfer_v7.1.sh \ | |
| /reference_databases/RestrictedAccessDatabase/abcdbids/s3 \ | |
| /lab-share/Neuro-Cohen-e2/Public/projects/ABCD/freesurfer_v7.1.0 \ | |
| /lab-share/Neuro-Cohen-e2/Public/projects/ABCD/ABCD6.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
| # Allow git to store your password for 24hours at a time | |
| git config --global credential.helper 'cache --timeout=86400' |
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
| #MGH_w_GSP1000_v45 | |
| python3 /usr/local/software_env/python_modules/nimlab/nimlab/scripts/connectome_quick.py \ | |
| -cs /data1/connectome_npy/GSP1000_CBIG_Legacy_v45/ \ | |
| -r /jupyter_mount/acohen8/Yeo_to_GSP/MGH_w_GSP1000_CBIG_Legacy_v45/lesion_list.csv \ | |
| -o /jupyter_mount/acohen8/Yeo_to_GSP/MGH_w_GSP1000_CBIG_Legacy_v45/Functional_Connectivity | |
| #MGH_w_yeo1000 | |
| python3 /usr/local/software_env/python_modules/nimlab/nimlab/scripts/connectome_quick.py \ | |
| -cs /data1/connectome_npy/yeo1000_dil/ \ |
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
| # Ask Sean Clancy in CRL to add user to crlfs9 and then, on each machine, run: | |
| sudo perl /fileserver/sysadmin/pw/merge-system-files.pl | |
| sudo nano /etc/sudoers.d/lab_sudoers | |
| # add the following: | |
| chxxxxxx ALL=(ALL) ALL # First Last name |
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
| rclone sync drive_cohenlab:/connectomes /lab-share/Neuro-Cohen-e2/Public/connectomes --progress && \ | |
| rclone sync drive_cohenlab:/lesions /lab-share/Neuro-Cohen-e2/Public/lesions --progress && \ | |
| rclone sync drive_cohenlab:/LNM_archive /lab-share/Neuro-Cohen-e2/Public/LNM_archive --progress && \ | |
| rclone sync drive_cohenlab:/notebooks /lab-share/Neuro-Cohen-e2/Public/notebooks --progress && \ | |
| rclone sync drive_cohenlab:/xnat_archive /lab-share/Neuro-Cohen-e2/Public/xnat_archive --progress && \ | |
| rclone sync drive_cohenlab:/collections/yeo1000_nii /lab-share/Neuro-Cohen-e2/Public/collections/yeo1000 --progress |