8000 Error Error in norm_cords$x - min(norm_cords$x) : non-numeric argument to binary operator · Issue #70 · YMa-lab/CARD · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error Error in norm_cords$x - min(norm_cords$x) : non-numeric argument to binary operator #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
krigia opened this issue Mar 16, 2024 · 1 comment

Comments

@krigia
Copy link
krigia commented Mar 16, 2024

Hello @YingMa0107 @YMalab > # Make CARD object

CARD_obj = createCARDObject(

  • sc_count = sc_count,
  • sc_meta = sc_meta,
  • spatial_count = spatial_count,
  • spatial_location = spatial_location,
  • ct.varname = "cellType",
  • ct.select = unique(sc_meta$cellType),
  • sample.varname = "sampleInfo",
  • minCountGene = 100,
  • minCountSpot = 5)

QC on scRNASeq dataset! ...

QC on spatially-resolved dataset! ...

Run CARD deconvolution

CARD_obj = CARD_deconvolution(CARD_object = CARD_obj)

create reference matrix from scRNASeq...

Select Informative Genes! ...

Error in norm_cords$x - min(norm_cords$x) :
non-numeric argument to binary operator
In addition: Warning messages:
1: In asMethod(object) :
sparse->dense coercion: allocating vector of size 5.6 GiB
2: In asMethod(object) :
sparse->dense coercion: allocating vector of size 2.9 GiB
3: In asMethod(object) :
sparse->dense coercion: allocating vector of size 2.1 GiB
4: In asMethod(object) :
sparse->dense coercion: allocating vector of size 2.1 GiB

I was wondering if this could be related to count data or spatial coordinates. I used spot barcode IDs instead of number x,y coordinates. e. g.
x() TACGATCCAAGCCACT-1_1
y()TACGATCCAAGCCACT-1_1
Also, sc and spatial counts are row filtered data.

Please advise. Thank you.

@YMalab
Copy link
Collaborator
YMalab commented Apr 1, 2024

Hi @krigia,

What does your spatial_location matrix look like? This matrix should contain the spatial coordinates. Please follow our tutorial to check if you input data match exactly with the tutorial example data format. Thanks.

Best,
Ying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0