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
# | |
# Basic XNAT file upload with standard python | |
# | |
import httplib, urlparse, mimetypes, io, base64, urllib, os, sys | |
def createResource(host, selector, auth): | |
""" | |
Create an XNAT resource (directory) |
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 | |
print_usage() { | |
echo " | |
Uploads images listed in a csv spreadsheet into an xnat server | |
Uses the script create-session.sh | |
The spreadsheet should contain the following columns, separated by spaces: | |
<project> <subject-id> <acquisition-date> <session-type (MR or CT)> <session-label> <scan-label> <image-file-path> |
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
198.209.202.11 | |
198.31.175.22 | |
198.209.133.33 |
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 | |
# create plugin install structure and copy/move all | |
# things needed | |
is_debug_or_release=$(pwd | grep -o 'Debug\|Release') | |
if [[ $is_debug_or_release != "" ]] ; then | |
c_mode=$is_debug_or_release | |
p_source_dir="/home/el1mc/src/git.gimias.org/gimias.git/src/Apps/Plugins" |