Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore secondary annotations (undefined annotations in TYPE_DCT) #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BCJongbloets
Copy link

Usage of reconstruction data files with structural annotations for anatomical contours fail to load
in the current TMD package. This is because those annotations usually are not connected with the
soma or any of the processes (basal, apical, axon) as defined in TYPE_DCT. To allow for loading of
the data we can remove all data that is not defined in TYPE_DCT. A 'verbose' argument is added
to allow the user to avoid superfluous printing of the warning that data was removed.

I hope you find this edit useful, also included a test file that would in the current version of TMD
cannot be read, but with the edit will be read. This file was converted from a neurolucida .DAT file to
SWCplus file with (https://neuroinformatics.nl/HBP/morphology-viewer/).

BJ2510_a1_MSaa00455_PVAi9-4473_B2_traced_BCJ.swc.txt
*had to add .txt to allow for import

annotations that are not declared in TYPE_DCT. This
prevents breakage of load_neuron when data contains
undeclared structural annotations (eg. contours, spines).
These undeclared structural annotations have not the same
origin points as the soma, basal, apical, or axon (TYPE_DCT).
During csr_matrix generation the annotations require to
be connected with soma, therefore those undeclared
annotations often break the loading of data.
To block annoying error messages an verbose argument is
added to suppress printing of the messages.
to be processed. Otherwise in case of LoadNeuronError the loading
is stopped.
@wizmer
Copy link
Contributor

wizmer commented Jan 23, 2020

Hi @BCJongbloets I think Travis is not running your build because of a flagged account. Could you loggin to https://travis-ci.org/ and see if you have a notification about it ?

@BCJongbloets
Copy link
Author

BCJongbloets commented Jan 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants