Comments (5)
please paste the output of length(mc@colors)
and max(mc@mc)
, assuming your metacell object is named 'mc'. Assuming this is the mismatch, we'll look into why this mismatch happens when running mcell_mc_split_filt
.
from metacell.
Hi, thanks for the quick response! Indeed this was the mismatch. The output length(mc@colors)
was 1, and max(mc@mc)
was 22. When I populated mc@colors with 22 colors (e.g. using mc_colorize_default
it worked.
from metacell.
We'll still look into why the length of mc@colors was 1 when running the split function, assuming you didn't set this on purpose. For now coloring in some manner is the workaround
from metacell.
We did not set anything regarding the colours. If you need a reproducible example, I can email you a subset of data and the code we are using.
from metacell.
Hi, thanks for the quick response! Indeed this was the mismatch. The output
length(mc@colors)
was 1, andmax(mc@mc)
was 22. When I populated mc@colors with 22 colors (e.g. usingmc_colorize_default
it worked.
Indeed, I have met the similar error as above. After checking mc_outliers.r, here may be the issue:
mcell_mc_split_filt = function(new_mc_id, mc_id, mat_id, T_lfc, plot_mats=T, dirichlet=F)
{
#......
new_mc = rep(NA, length(mc@mc))
names(new_mc) = names(mc@mc)
#......
new_mc = new_mc[setdiff(names(new_mc),new_outliers)]
scdb_add_mc(new_mc_id, tgMCCov(new_mc, new_outliers, mat))
}
Since new_mc@colors was no assigned, what I'll add to after running mcell_mc_split_filt
is as followed:
mcell_mc_split_filt(new_mc_id=paste0(id,'_filt'),
mc_id=id,
mat_id=id,
T_lfc=3, plot_mats=F)
# restore mc@colors as one unknown bug-> return 1 after function 'mcell_mc_split_filt'
mc_filt = scdb_mc(paste0(id,'_filt'))
mc_filt@colors = rep(NA, max(mc_filt@mc))
names(mc_filt@colors) = 1:max(mc_filt@mc)
scdb_add_mc(paste0(id,'_filt'),mc_filt)
That takes a fair bit of redundancy as it runs after 'mcell_mc_split_filt' but not in it.
Hope that helps.
Best
from metacell.
Related Issues (20)
- mc2d_force_knn fails if mc wasn't colorized beforehand HOT 1
- Is it possible to get knn index file from Metacell?
- linear pipeline collapse with Error due to undefined variable 'marks_fn' used to coloring mc
- Could we add the proteomic data into metacell
- code error in gstats.r HOT 1
- mcell_mc_export_tab->Source Code may need to be modified HOT 3
- mcell_add_gene_stat HOT 3
- install issue HOT 1
- comp mc graph using the graph RGdb_50_graphs and K 20 Error in confu/csize2 : non-conformable arrays
- Coudn't install metacell on windows HOT 1
- Can't download the tutorial data HOT 2
- Function to extract mat class with mc and mc2d HOT 1
- Question: Assign a metacell
- mcell_mc_plot_marks creates incorrect annotation colorbar when using focus_mcs
- Log Transformation
- Batch
- install scdb, download test
- dysfunction and activation score
- mcell_mc_hierarchy while condition HOT 1
- Class of mc number here should be character but not numeric
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 metacell.