Comments (4)
I think the error might be caused by the default value of cluster_values parameter in testCV. If cluster_values is set to a cluster that doesn't exist (for example through using the default parameter) the error seems to occur.
Perhaps an error message could be displayed if cluster_values is set to a nonexistent cluster?
from cytonorm.
@SansMorel I came up with the same error. After pulling the function apart, the first problem comes up in this part of testCV
, at the end of the function:
res <- named.list(pctgs, cvs, meta_cl) if(plot){ PlotOverviewCV(fsom, res) }
and specifically: PlotOverviewCV(fsom, res)
returns:
Error in rep(NA, (width - length(x))) : invalid 'times' argument
So the issues is in the PlotOverviewCV
function, which is defined just below it. The issue comes up here:
cv_matrix <- do.call(rbind, lapply(cvs[as.character(cluster_values)], function (x) { c(x, rep(NA, (width - length(x)))) }))
from cytonorm.
So yes, it carries the cluster_values
value the whole way through to that point. If you change it fro c(5, 10, 15)
to c(5, 10)
then it works fine.
from cytonorm.
@SansMorel @tomashhurst
I just pushed a fix for this issue, thanks for pointing it out and figuring out where it went wrong! Let me know if you still run into any related problems.
from cytonorm.
Related Issues (20)
- Update needed for FlowSOM object update? HOT 3
- script is interrupted and doesn't produce output
- combine cytonorm with PeacoQC? HOT 2
- Cytonorm creating highly negative or very large values HOT 6
- testCV() Error in t.default(data) : argument is not a matrix HOT 4
- no output on cytonorm HOT 1
- Error in t.default(data) : argument is not a matrix
- What type of data should be used? HOT 1
- CytoNorm not working in R 4.2 HOT 1
- Differential marker expression after using Cytonorm
- prep.cytonorm does not keep original cellular.cols columns
- CytoNorm by Flowjo=> No normalized files created HOT 7
- Normalization question HOT 2
- Not a real issue, but rather I just don't understand how to read the testCV function results. Help? HOT 1
- CytoNorm for anaconda install HOT 3
- Error in the step of training the model HOT 2
- Arcsinh transform with a cofactor of 150 for Cytek Aurora data HOT 1
- cytonorm error in if (any(idx)) { : missing value where TRUE/FALSE needed HOT 2
- Reading fcs files generated through PeacoQC by Cytonorm
- Any plans for a python implementation? HOT 5
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 cytonorm.