Skip to content

Integration for Vizgen data #457

Answered by yous0614
yous0614 asked this question in Q&A
Dec 1, 2022 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

Update:

Thanks for the reply.
I found my problem, when use joinGiottoObjects(), in object@expression it generates not only a cell-by-gene $matrix, but also a list of genes called $sort_all_feats. The $Matrix and $sort_all_feats in object@expression$cell$rna$raw are considered a list, therefore it causes a problem when get_expression_values() trying to get a matrix from vizgen object and put forward in filterGiotto(), which causes:

Error in rowSums_flex(expr_values >= expression_threshold) :
  'list' object cannot be coerced to type 'double'

I bypassed the problem by

vizgen_integrated@expression$cell$rna$raw = 
get_expression_values(vizgen_integrated, spat_unit= 'cell', feat_type= 'rna', …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@yous0614
Comment options

@yous0614
Comment options

Comment options

You must be logged in to vote
1 reply
@yous0614
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yous0614
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants