Thank you very much for your response! I think I have managed to get it working by compiling CMTK from source using [2]
docker images
- although I had to rename the folder called "cmtk 3.3.1" to "core" to get the script to work. The script is currently running.
My aim is to register images to the jrc2018 template brain, convert the reformatted image to colour depth MIP and use a mask search to find a neuron of interest in flyEM database so it can be further studied in neuprint. The database I intend to conduct the mask search against is the EM dataset found at https://www.janelia.org/open-science/color-depth-mip - which contains colour depth mips of flyEM neurons. I was wondering whether you think this is a good approach to take or whether you would suggest different ways of finding a neuron of interest in the EM dataset.
If you are interested I have outlined some of the issues I encountered with regards to your suggestion of using -b "/usr/local/lib/cmtk/bin". Specifically, I received the error:"/home/george/Fiji.app/bin/cmtk/munger" -b "/usr/local/lib/cmtk/bin" -a -w -r 010203 -X 26 -C 8 -G 80 -R 4 -A '--accuracy 0.4' -W '--accuracy 0.4' -T 1 -s "refbrain/JRC2018_U.nrrd" images
hostname = george-VirtualBox; short hostname = george-VirtualBox
Can't access binary directory /usr/local/lib/cmtk/bin at /home/george/Fiji.app/bin/cmtk/munger line 121.Having looked I found that usr/local/lib/cmtk/bin was under /home/cmtk not /usr/local however when I modified the script to reflect this, it returned same error as before.
Thank you for your time, it is really appreciated.
REPOSITORY TAG IMAGE ID CREATED SIZE
natverse/shiny-natverse latest f2ce9cc40882 4 weeks ago 3.43GB
rocker/shiny-verse latest 2dc98c900e0b 4 weeks ago 2.03GB
virtualflybrain/nblast-on-the-fly latest 097a6e39c75d 4 weeks ago 2.9GB
natverse/r-natverse <none> bb94d8d6350c 4 weeks ago 3.66GB
natverse/r-natverse latest 705e66ff670b 4 weeks ago 3.66GB
virtualflybrain/nblast-on-the-fly 3.6.3 5cb15356ed26 4 weeks ago 2.9GB
<none> <none> c972df413975 4 weeks ago 3.47GB
natverse/r-natverse-java latest 0a381d7b76ea 4 weeks ago 3.59GB
<none> <none> c64a156f68af 4 weeks ago 3.57GB
<none> <none> 6e606ddff39a 4 weeks ago 1.31GB
<none> <none> 5ddfdb28997f 4 weeks ago 2.22GB
<none> <none> 78069cc3165b 4 weeks ago 910MB
<none> <none> f378a671f797 4 weeks ago 2.63GB
<none> <none> 6a3b3cf8c567 4 weeks ago 2.73GB
<none> <none> e5cd6df3e212 4 weeks ago 2.63GB
rocker/tidyverse latest ba7955185ce8 4 weeks ago 2.31GB
rocker/rstudio latest bbe56e7a74af 4 weeks ago 1.69GB
rocker/r-ver latest 54dd779d5f43 4 weeks ago 809MB
[2] run a container starting the bash shell
docker run --rm -ti -v $"HOME":/home/rstudio --user rstudio bb94d8d6350c
rstudio@d272e87b5373:/$ ls /usr/local/lib/cmtk/bin/
asegment cmtk_locking.sh dcm2image fibxform fit_spline_xform groupwise_reformat jidb mcaffine overlap reorient stream_pixels vol2csv xform2dfield
average_affine concat_affine describe film geomatch groupwise_warp levelset mcwarp probe sba streamxform volume_injection xform2itk
average_images convert_warp destripe filter glm hausdorff lmsba mk_adni_phantom pxsearch sbai sympl volume_reconstruction xform2scalar
average_labels convertx dof2mat fit_affine_dfield gmm histogram lsba mk_analyze_hdr reformatx sequence symplx vtkxform
avg_adm correct_dwi_distortion dwi_mask_bad_slices fit_affine_xform gregxform imagemath lvote mk_nifti_hdr registration similarity ttest warp
cmtk_functions.sh correct_dwi_distortion_and_motion epiunwarp fit_affine_xform_landmarks groupwise_affine interleaved_bad_slices make_initial_affine mk_phantom_3d registrationx split unsplit warp2ps
cmtk_locking_procmail.sh correct_nex_motion fib2image fit_spline_dfield groupwise_init iterative_shape_averaging mat2dof mrbias regress statistics unwarp_image_phantom warpx
Dear George,
On Thursday, June 18, 2020 at 7:42:07 PM UTC+1, George Yerou wrote:Thank you very much for your response! I think I have managed to get it working by compiling CMTK from source using [2]
My aim is to register images to the jrc2018 template brain, convert the reformatted image to colour depth MIP and use a mask search to find a neuron of interest in flyEM database so it can be further studied in neuprint. The database I intend to conduct the mask search against is the EM dataset found at https://www.janelia.org/open-science/color-depth-mip - which contains colour depth mips of flyEM neurons. I was wondering whether you think this is a good approach to take or whether you would suggest different ways of finding a neuron of interest in the EM dataset.
This should work, however if your intent is to search for EM neurons, there are other ways including NBLASTing the hemibrain neurons, or jumping to a location in the hemibrain dataset. It depends a bit what your query object is. A neuron? A GAL4 line? If it is something less sparse like a GAL4 line then the MIP search is a good option.
- although I had to rename the folder called "cmtk 3.3.1" to "core" to get the script to work. The script is currently running.Yes I see that's correct. If you have a moment you could correct Torsten's howto on the CMTK mailing list. Nobody else pointed it out, but his instructions were correct if you svn / git clone the repository but not if you download the tgz.
Yes, my intent is to search for EM neurons - ie I have a confocal image of my neuron and I would like to find it in neuprintexplorer so I can query its connections. You mention that I could NBLASTing with hemibrain neurons directly, but I can't quite find a way to do so. The elmr package looked promising but its functions (eg fetchdp_fafb and nblast_fafb) are more geared towards finding an EM tracing's counterpart in the flycircuit database and not the reverse, requiring a catmaid skeleton ids which are not listed for neurons in neuprintexplorer. The EM hemi brain data can be downloaded from Google Bucket and gsutil gs://hemibrain-release/neuprint/hemibrain_v1.0, would it be possible to NBLAST against this data instead of the flycircuit data to obtain neuron ids that could be further investigated in neuprint explorer?
If you are interested I have outlined some of the issues I encountered with regards to your suggestion of using -b "/usr/local/lib/cmtk/bin". Specifically, I received the error:"/home/george/Fiji.app/bin/cmtk/munger" -b "/usr/local/lib/cmtk/bin" -a -w -r 010203 -X 26 -C 8 -G 80 -R 4 -A '--accuracy 0.4' -W '--accuracy 0.4' -T 1 -s "refbrain/JRC2018_U.nrrd" images
hostname = george-VirtualBox; short hostname = george-VirtualBox
Can't access binary directory /usr/local/lib/cmtk/bin at /home/george/Fiji.app/bin/cmtk/munger line 121.Having looked I found that usr/local/lib/cmtk/bin was under /home/cmtk not /usr/local however when I modified the script to reflect this, it returned same error as before.So I am puzzled by this as the docker image should include cmtk at that location as mentioned above. In terms of why you might have needed to change the command line a second time, this is because Torsten's howto did not suggest doing
On 6 Jul 2020, at 17:57, <gj.y...@gmail.com> <gj.y...@gmail.com> wrote:Dear Dr Jefferis,Here is the output:<image002.jpg>Please let me know if you would like me to try anything else.Best wishes,George.From: Greg Jefferis <jeff...@gmail.com>
Sent: 06 July 2020 17:46
To: George Yerou <gj.y...@gmail.com>
Subject: Re: [nat-user] CMTK plugin error & Docker# run this in your terminaldocker run --rm -ti -v "$HOME":/home/rstudio --user rstudio natverse/r-natverse bash# then run this after the docker command line startsls /usr/local/lib/cmtk/bin/ls /usr/lib/cmtk/binexitOn 6 Jul 2020, at 17:43, <gj.y...@gmail.com> <gj.y...@gmail.com> wrote:<image002.jpg>