Comments (3)
I have to admit that certain tif formats can be a pain. We use ClearMap with the ome tiffs, but sometimes when we import tiff data coming from other sources it can be a problem. My recommendation is to convert the files to a less capricious format, such as the npy arrays, or I found nrrd works well for the most part. But depending on your sources, this might take a few tries to get the right format that can be opened with the tifffile library. ImageJ with BioFormat can really help in most cases to do these conversions.
from clearmap2.
I found the solution: "convert the tif-files to npy-files before resampling". Why? I don't know.
Quote from TubeMap Tutorial: "
Tile conversion
ClearMap makes use of accessing binary files in parallel.
For optimal performance we recommend to convert the data to numpy files.
I think this is evidence that this isn't just "recommended". It actually changes the outcome.
from clearmap2.
Thanks for posting your fix to this @SaibotMagd! I ran into the same issue with .tif stack files, and really didn't want to continue dealing with folders of thousands of ome.tif files -- the conversion to npy worked great for me.
from clearmap2.
Related Issues (20)
- Cell Annotation Didn't Work... HOT 2
- clearmap results ID different than Allen Region ID HOT 1
- Annotated_counts table counts area and their subdivision differently HOT 1
- Adding CCFv3 annotation requires updating the "No label" values
- Problem Plotting 3d Mesh HOT 2
- Resampling IndexError: tuple index out of range HOT 4
- Question about the unit of vasculature radius HOT 1
- Compiler issues
- import ClearMap.Compile fails HOT 1
- Pytorch version not available anymore HOT 7
- GUI: Alignment Issue HOT 4
- Export ID numbers for ClearMap2.1? HOT 1
- Numpy import issues with `ClearMap.compile` HOT 1
- Example dataset for CellMap and TubeMap HOT 5
- cannot compile ClearMap modules HOT 8
- .sh install meet some error HOT 7
- conda error while installation HOT 5
- Some problems about Mapping the Fine-Scale Organization and Plasticity of the Brain Vasculature HOT 1
- matplot not available from current channel found while installation HOT 1
- Wobbly Stitcher crashing HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clearmap2.