miykael / parcellation_fragmenter

Fragments FreeSurfer parcellation annotation in N-equal sized parcels
BSD 3-Clause "New" or "Revised" License
27 stars 11 forks source link

Preparation for JOSS Paper #36

Open miykael opened 4 years ago

miykael commented 4 years ago

Hello everyone,

Following up on @ctoroserey and @PeerHerholz 's resurrection of this project (thank you guys), I finally found the time to look into the things that are (in my opinion) still missing before we can submit this to the JOSS.

Following is a todo-list of things I consider still to be open (can be discussed):

Minor revisions

Additional notes

As a note, I've removed the docs folder and any other documents which were related to potentially creating some github pages. Reason for this is, that I don't think that this is necessary, and I don't have the time to set this up myself :-)

Major revisions

Notebooks

Test suite

First, the test suite is currently only testing the Adjacency.py functions. Ideally, we would have a test suite ready that also tests all the other functions:

# Clustering.py
def spectral_clustering(n_clusters, samples, size=False):
def k_means(n_clusters, samples):
def gmm(n_clusters, samples):
def ward(n_clusters, samples):

# Colormaps.py
def get_equally_spaced_colors(n):
def get_ctab_and_names(coords, labels, use_pretty_colors=True):

# Rotator.py
class Rotator(NullBase.NullBase):
    def fit(self, maxd_x=10, maxd_y=10, maxd_z=10):
    def _rotate(self, maxd_x, maxd_y, maxd_z):

# RegionExtractor.py
class Extractor(object):
    def map_regions(self):
    def map_subregions(self, parcels, fragments):

# rotations.py
def rotx(t)
def roty(t)
def rotz(t)

# Sampler.py
class Sampler(NullBase.NullBase):
    def fit(self, iterations=1):

# Fragment.py
class Fragment(object):
    def fit(
    def write(self, output_name, to_file=False):

Second, once these tests are ready. I would recommend to setup travis to test these tests and the notebooks after each commit. Setup could again be inspired by the one from atlasreader.

Best, Michael