Skip to content

Instantly share code, notes, and snippets.

View AmeliaES's full-sized avatar

Amelia Edmondson-Stait (AJES) AmeliaES

View GitHub Profile
@AmeliaES
AmeliaES / Sample_random_downstream_profiles.R
Created June 8, 2018 10:59
Gives random ordering of post-synaptic profiles
#Code originally written by Kimberly Meechan and Fiona Love.
#Function returns downstream profiles of a provided skid at nodes distal to a provided cut point.
#NB. Check root point in CATMAID, as distal_to function looks distal to the root node.
# skid = skid of neuron you want to sample downstream partners from
# node = node at which you want to virtually cut your neuron to sample the distal fragment
downstream_profiles <- function(skid, node) {
library(elmr)
library(catmaid)