Comments (1)
- Pretty sure this is an artefact remaining from either a debugging/or variable renaming. This should definitely be removed.
- I am not explicitly checking for it and relying on pandas of throwing an error. Definitely not good practice and should be done explicitly.
- The logic of the function should be:
If pannelcsv is None:
returns a .tiff with containing all the channels of the acquisition
# in this case metalcolumn and massscolumn can be unspecified
else:
load pannel with filename pannelcsv
if the pannel has only 1 column:
# assume the csv is just a list of metal
return a tiff containing the channels specified in the pannel
# in this case metalcolumn and massscolumn can be unspecified
else:
# asssumes the csv is a table, thus needs a specification
# which is the metalcolumn or masscolumn
if masscolumn is None:
# requires that the metalcolumn needs to be specifiec
return a tiff containing the channels specified in the metalcolumn
else:
return a tiff containing the channels specified in the masscolumn
Thus it depends on
a) if pannelcsv is None -> metalcolumn and massscolumn can be None
b) the pannel is a 1 column csv -> metalcolumn and massscolumn can be None
c) the pannel has multiple columns -> either metalcolumn and massscolum need be not None
The code readability and error checks should be definitely improved here.
from imctools.
Related Issues (20)
- extract panorama HOT 4
- Make exceptions discoverable in API HOT 3
- Extra 161 bytes extracted on all image buffers HOT 1
- TxtParser and McdParser should share a common base class
- Wrong ROI coordinates for new Fluidigm software versions HOT 4
- Create imctools.data.Acquisition object without loading image data when using TxtParser
- Feature request: option to export additional columns in omefile_2_analysisfolder HOT 4
- KeyError: 'Name' HOT 11
- ValueError: invalid literal for int() with base 10: HOT 1
- Broken assertion HOT 3
- ome2histocat stripps .tiff file ending from masks HOT 2
- Value Error: No session JSON files available HOT 3
- Error while running IMCtools HOT 4
- Generated OME-XML in OME-TIFF files is not schema compliant due to out-of-order AcquisitionDate element HOT 3
- broken link to xml namespace HOT 1
- imctools.scripts HOT 2
- Typo in method omexml.py HOT 2
- Inquiry about omexml.py related to schema location HOT 2
- NotADirectoryError: [Errno 20] Not a directory: '../../data/ometiff/.DS_Store/.DS_Store_Acquisition_meta.csv' HOT 4
- Adding clear specification of the 'ome' folder HOT 1
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 imctools.