Comments (4)
Could you list all the columns in the underlying dataframe, e.g. by doing
print(ex.data.columns)
There are two things going on here. The error message you are seeing is due to a bug.
raise util.CytoflowError("Tried to sanitize column name {1} to "
"{2} but it already existed in the "
" DataFrame."
.format(name, new_name))
should read
raise util.CytoflowError("Tried to sanitize column name {0} to "
"{1} but it already existed in the "
" DataFrame."
.format(name, new_name))
But this piece of code is triggered by another issue, which is that two columns seem to be "sanitizing" to the same name. E.g. if you have a column "DNA positive" and then try to add a filter with the name "DNA_positive", they are distinct, but end up being sanitized to the same thing.
from cytoflow.
Hi @kristjaneerik!
Thanks, you were right, I messed up the channel naming when instantiating the experiment and two different channels had the same name. After fixing that, I can query now without issues. However, I think that:
- We should fix the issue with the
.format
indexes that you specified, do you want to open a PR? - Maybe there should be a check at experiment definition that makes sure no two channels share the same name (or resolve to the same name after 'sanization'?)
from cytoflow.
- We should fix the issue with the
.format
indexes that you specified, do you want to open a PR?
Yep, that's a bug. I'll fix it.
- Maybe there should be a check at experiment definition that makes sure no two channels share the same name (or resolve to the same name after 'sanization'?)
Agreed. I'll add a test and a fix.
from cytoflow.
Fixed in fa4f593
from cytoflow.
Related Issues (20)
- "Range" init got unexpected keyword "interactive" HOT 1
- Updated Conda Packaging for 1.2 Release / Python 3.8 HOT 2
- Cytoflow 1.2 fails to launch HOT 3
- App logo HOT 3
- Export .FCS file issue
- Feature Request: Tidy Data Tables and/or documentation on extraction of Tidy Data
- Feature Request: Add URCP-100-2H beads back HOT 3
- Experiment.subset doesn't support a single Str condition
- TODO: Document which statistics each op produces
- TODO: Deal better with multi-dataset FCS files
- Edit Compensation & Import Compensation Matrix
- Add single datapoints to barplots
- build for Raspberry Pi OS (64-bit) fails
- Files from a Guava EasyCyte HT causing exceptions
- Installation problem of cytoflow on Mac M2 HOT 3
- Import_Op.apply() is really slow... HOT 1
- Serializing experiment objects HOT 3
- Is there a way to save a Python cytoflow experiment as a .flow file to load into the GUI version of cytoflow?
- Error using conda HOT 2
- Cython compile error when installing with pip
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 cytoflow.