8000 CRITICAL MISTAKE IN createCARDObject FUNCTION CODE · Issue #84 · YMa-lab/CARD · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CRITICAL MISTAKE IN createCARDObject FUNCTION CODE #84

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
karJac opened this issue Feb 18, 2025 · 0 comments
Open

CRITICAL MISTAKE IN createCARDObject FUNCTION CODE #84

karJac opened this issue Feb 18, 2025 · 0 comments

Comments

@karJac
Copy link
karJac commented Feb 18, 2025

Hi,

In the createCARDObject function there is a mistake in the logic in the lines:

spatial_countMat = spatial_countMat[rowSums(spatial_countMat >
0) > minCountSpot, ]
spatial_countMat = spatial_countMat[, (colSums(spatial_countMat) >=
minCountGene & colSums(spatial_countMat) <= 1e+06)]

Looking at the object which is input to these function, you apply the genes threshold for minimum number of read to the cells and the cells threshold to the genes.

spatial_countMat[1:5,1:5]
5 x 5 sparse Matrix of class "dgCMatrix"
s_008um_00433_00599-1 s_008um_00511_00539-1 s_008um_00474_00567-1
ISG15 . . .
ANKRD65 . . .
VWA1 . . .
MEGF6 . . .
TPRG1L . . .

Best,
Karol

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

1 participant
0