Main Page: Difference between revisions
Line 78: | Line 78: | ||
==Statistical Methods== | ==Statistical Methods== | ||
(Very) Basic R Commands | |||
To install packages: ''install.packages("package")'' | |||
To run library: "library(package)" | |||
Useful packages: | |||
library(xlsx) | |||
library(geoR) | |||
library(ggplot2) | |||
library(HH) | |||
library(nortest) | |||
library(tseries) | |||
library(fUtilities) | |||
library(nlme) | |||
library(lme4) | |||
The help function: | |||
"?? query" (I.e. ?? lm) | |||
To import data on an excel sheet: | |||
"library(xlsx)" | |||
"Data <- read.xlsx("Data.xlsx")" | |||
"attach(Data)" | |||
To generate a subset of a dataframe: | |||
"subset.data <- subset(Data, factor=="group1")" | |||
Linear Analysis: | |||
"m <- lm(a ~ b, data=Data)" | |||
"summary(m)" | |||
"drop1(m, test="F")" | |||
"ancova(a ~ b*factor, data=Data)" | |||
"t.test(Data$a, Data$b)" | |||
"cor.test(Data$a, Data$b, method="spearman")" | |||
"ad.test(Data$a)" | |||
"boxcoxfit(Data$a)" | |||
Diagnostic tests: | |||
"par(mfrow=c(2, 3))" | |||
"plot(m, which=1:6)" | |||
Plotting: | |||
The package "ggplot2" makes lovely figures and there are many guides for how to use it on the web. | |||
Other basic plotting; | |||
"plot(x, y)" | |||
"m <- lm(y ~ x)" | |||
"abline(m, col="red")" | |||
==Visualization Tools== | ==Visualization Tools== |
Revision as of 21:52, 26 January 2012
Welcome to the Brain Mapping Unit wiki
This is a wiki, a user-editable Web site. You can treat it as a perfectly ordinary Web site (read it), but you are also able to make changes to any page that has an edit link at the top of it. The more or you contribute, the more useful this page will become for current and future members of our group, so please feel free to add any relevant information!
The relationship between BMU, BCNI and CBU wikis
When you first join the BMU, you may wonder how the BMU, BCNI and CBU are related. Broadly speaking, the BMU (Brain Mapping Unit) is a constituent unit within the Department of Psychiatry, the BCNI (Behavioural and Clinical Neuroscience Institute) links six basic-science and clinical departments within the university and has a focus on translational research, and the CBU (Cognition and Brain Sciences Unit) is a standalone non-university-affiliated centre for cognitive science research.
There are many resources that the BMU, BCNI and CBU have in common and it therefore makes sense for you to explore the BCNI and CBU websites and wikis when you have time (see details below). However, too much information can be problematic when you arrive in a new group. The aim of this wiki is therefore to concentrate on the key knowledge and resources that you are most likely to need when starting out at the BMU. We aim to present these in a clear, well-organized and easy-to-navigate way. This wiki will also include some more specialized in-house knowledge such as network analysis and visualisation tools often used in the group. For more general fMRI and MEG image analysis methods, the CBU wiki is probably the place to go.
BCNI username: bcni password: re:cognition
CBU The CBU Imaging Wikis (one for fMRI and another for MEG) host a wealth of information on the design and analysis of imaging studies including highly popular tutorials.
Become a Contributor
If you have just joined the BMU, it is the ideal time to become a wiki contributor. You can 'keep notes' of what you are learning by adding it to the wiki. This will both help you remember and help others learn faster. To learn how to edit the wiki just click on the link at the bottom of the page (it's dead easy and will only take 5 to 10 minutes).
For your first wiki-edit, try adding your name to this list of contributors: Lisa Ronan, Petra Vertes, Mika Rubinov ...
General Information
Booking the BCNI seminar room or the Craik Marshall room
Setting up a VNC connection
Transferring Files to and from Server
Who's who
Background Reading
Introductory papers
The first thing to do if you are starting out at the BMU is probably to read a couple of easy introductory papers on network science in general, as well as applied to neuroscience. Some useful papers to start with can be found at Introductory Papers
Publications by the BMU
You can see a list of the group's publications on the relevant page of the BMU group website
A non-exhaustive list of journals you may find intersting
Nature, Science, Nature Neuroscience, PNAS, Journal of Neuroscience, Brain, NeuroImage, Biological Psychiatry, PLoS Computational Biology, Cerebral Cortex, Frontiers in Systems Neuroscience...
Keeping up with new litterature
Most scientific journals allow you to sign up for 'e-alerts'. These are regular emails with either the journal's Table of Content (each time a new issue is published) or alerts about new papers from specific authors or containing specific keywords that you indicate you wish to follow. Just visit the webpage of your journal of interest and follow instructions to set up your e-alerts.
Courses, seminars and groups
Statistics, Programming and Neuroimaging Courses
The Department of Experimental Psychology has a useful list of courses on statistics, programming and neuroimaging here
Tuesday Meetings - The Networks Group
Our weekly seminars are held on Tuesday mornings (9:30-12:30). These are principally for Ed Bullmore's students but also for other people within the BMU and associated groups with an interest in using networks to study the brain. We usually have an informal presentation by a group member (+ discussion) in the BCNI seminar room. This is often followed by a seminar given by an external speaker (we sometimes move to the Craik Marshall room for this talk). For information about these seminars please contact Mika Rubinov (mr572) or Petra Vertes (pv226).
Cambridge Networks Network (CNN)
CNN aims to bring together researchers from many different departments across Cambridge who share an interest in Complex Networks. You can learn more about it and join the CNN mailing list here
Sharing Data
In principle, we could put links to data located on the server so as to make it available to others in the group. Please make sure the data in question is free for you to share before doing this. Also, please try to document the data (a link to a paper describing the same dataset should do) and maybe add the name of the person that originally sourced the data.
Data Preprocessing
fMRI
MEG
Structural
Other
Network Construction
In brain functional networks, each node corresponds to a different brain region, , and edges or connections between nodes represent statistical associations, e.g., correlations, between the time series, , recorded at each of these regions. Once the association matrix of correlation coefficients has been evaluated (for brain regions), it is possible to draw a fully connected, weighted network where the weight of each link corresponds to the correlation strength between the pair of nodes it connects. This network, however, is not easy to analyze and contains many spurious connections resulting from noise rather than genuine correlations. It is therefore usually replaced by a sparser, unweighted network where, following the application of some filtering technique, only the most important connections have been retained as edges in a binary adjacency matrix. One difficulty arises from the fact that the method for filtering out less important connections is arbitrary and has a strong influence on the results obtained.
Beyond Correlations
This section discusses the various forms of statistical association that networks can be based on.
Filtering Methods
This section discusses the various filtering methods that can be used.
Network Analysis
All commonly used network measures have been implemented in MATLAB and bundled into a wonderful toolbox called the Brain Connectivity Toolbox by Olaf Sporns and collaborators. [[1]] They also welcome any additions to their toolbox, so feel free to contribute.
For the less computationally fluent: Yong Liu is developing a point-and-click toolbox of his own... it should be ready in late 2011.
Statistical Methods
(Very) Basic R Commands
To install packages: install.packages("package") To run library: "library(package)"
Useful packages: library(xlsx) library(geoR) library(ggplot2) library(HH) library(nortest) library(tseries) library(fUtilities) library(nlme) library(lme4)
The help function: "?? query" (I.e. ?? lm)
To import data on an excel sheet: "library(xlsx)" "Data <- read.xlsx("Data.xlsx")" "attach(Data)"
To generate a subset of a dataframe: "subset.data <- subset(Data, factor=="group1")"
Linear Analysis: "m <- lm(a ~ b, data=Data)" "summary(m)" "drop1(m, test="F")" "ancova(a ~ b*factor, data=Data)" "t.test(Data$a, Data$b)" "cor.test(Data$a, Data$b, method="spearman")" "ad.test(Data$a)" "boxcoxfit(Data$a)"
Diagnostic tests: "par(mfrow=c(2, 3))" "plot(m, which=1:6)"
Plotting: The package "ggplot2" makes lovely figures and there are many guides for how to use it on the web. Other basic plotting; "plot(x, y)" "m <- lm(y ~ x)" "abline(m, col="red")"
Visualization Tools
Network Visualization
A variety of tools have been developed to generate efficient and pleasing graphical representations of networks:
- PAJEK is one of the most commonly used ones: [[2]]
- Gephi is looking increasingly poliched: [[3]]
- GUESS is my personal favourite [[4]]
Other Visualization tools
- Caret allows the creation of beautiful brain surface maps: [[5]]
How To Edit the Wiki
- You can find some help on editing this wiki on HowToEdit