This file contains 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
# Get a connection to the XNAT server | |
import pyxnat | |
xnat = pyxnat.Interface('https://my-xnat.org','username','password') | |
# Request a list of all MR scans, keeping only those with RAGE in the scan type (e.g., MPRAGE, MP-RAGE) | |
import scans | |
mprage_sessions = scans.get_sessions(x, 'MYPROJECT', lambda t : 'RAGE' in t) | |
# Break the scans list into groups of 32 | |
chunks32 = [g for g in scans.partition(32, mprage_sessions.iteritems())] |
This file contains 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
<script type="text/javascript"> | |
jQuery(window).load(function(){ | |
var s = jQuery('#solar-submit'); | |
s.click(function(event){ | |
var trait = jQuery('#trait').find(":selected").text(); | |
var covars = jQuery('#covars').val(); | |
jQuery.ajax({ | |
url:'$content.getURI("/spring/script/application/SolarEclipse-univ-polygenic?keep=true")', | |
type:'POST', | |
data: 'TRAIT='+trait+'\nCOVARS='+covars+'\n', |
This file contains 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
<bean name="sessionDataFactoryClasses" class="java.util.ArrayList"> | |
<constructor-arg> | |
<list> | |
<value type="java.lang.Class"> | |
org.nrg.dcm.xnat.SOPMapXnatImagesessiondataBeanFactory | |
</value> | |
<value type="java.lang.Class"> | |
org.nrg.dcm.xnat.ModalityMapXnatImagesessiondataBeanFactory | |
</value> | |
</list> |
This file contains 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
#!/usr/bin/env python | |
# ---------------------------------------------------------------------- | |
# Numenta Platform for Intelligent Computing (NuPIC) | |
# Copyright (C) 2013, Numenta, Inc. Unless you have purchased from | |
# Numenta, Inc. a separate commercial license for this software code, the | |
# following terms and conditions apply: | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License version 3 as | |
# published by the Free Software Foundation. |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>xnat dynamic graph</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script> | |
<script type="text/javascript"> | |
var xnat_data, plotsvg | |
var base_url = 'https://central.xnat.org' | |
var stored_search = 'ALL_OASIS_MR_DATA_1_1_1' | |
var url = base_url + '/REST/search/saved/' + stored_search + |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:util="http://www.springframework.org/schema/util" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd | |
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> | |
<bean name="dicomObjectIdentifier" class="org.nrg.dcm.id.ClassicDicomObjectIdentifier"> | |
<property name="userProvider" ref="receivedFileUserProvider" /> |