Skip to content

Commit

Permalink
fixed imports and type-specific parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Jul 10, 2017
1 parent 8143d76 commit 903e227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samri/pipelines/fc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from os import path, listdir, getcwd, remove


from nilearn.input_data import NiftiMasker
from nilearn.input_data import NiftiMasker, NiftiLabelsMasker
from nilearn.connectome import ConnectivityMeasure
from nipype.interfaces import fsl

Expand Down
4 changes: 3 additions & 1 deletion samri/plotting/connectivity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy as np
from os import path
from matplotlib import pyplot as plt
from numpy import genfromtxt
import seaborn as sns
Expand All @@ -25,7 +26,8 @@ def plot_connectivity_matrix(correlation_matrix,

#TODO: fix labels in ascending order corresponding to intensity values
labels = path.abspath(path.expanduser(labels))
correlation_matrix = path.abspath(path.expanduser(correlation_matrix))
if isinstance(correlation_matrix, str):
correlation_matrix = path.abspath(path.expanduser(correlation_matrix))

labels_np = genfromtxt(labels, delimiter=',', usecols = (1), dtype = 'str')
correlation_matrix = genfromtxt(correlation_matrix, delimiter=',')
Expand Down

0 comments on commit 903e227

Please sign in to comment.