Skip to content
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

Error ReadMtx ( Cannot find expression matrix) #4723

Closed
ahmedibatta opened this issue Jul 5, 2021 · 3 comments
Closed

Error ReadMtx ( Cannot find expression matrix) #4723

ahmedibatta opened this issue Jul 5, 2021 · 3 comments
Labels
bug Something isn't working more-information-needed We need more information before this can be addressed

Comments

@ahmedibatta
Copy link

I am trying using the ReadMtx function to single-cell data with different names but I got Cannot find expression matrix

my code:

file_temp = "/data/external/ms/MS19270_PBMC"

mxt_temp= paste0(file_temp,'/',list.files(file_temp,pattern="*_matrix.mtx.gz"))
print(mxt_temp)
cells_temp= paste0(file_temp,'/',list.files(file_temp ,pattern="*_barcodes.tsv.gz"))
print(cells_temp)
features_temp = paste0(file_temp,'/',list.files(file_temp ,pattern="*_genes.tsv.gz"))
print(features_temp)
counts_temp <- ReadMtx(mtx = mxt_temp,cells = cells_temp,features =  features_temp)

the results :

[1] "/data/external/ms/MS19270_PBMC/GSM4104134_MS19270_PBMCs_GRCh38_matrix.mtx.gz"
[1] "/data/external/ms/MS19270_PBMC/GSM4104134_MS19270_PBMCs_GRCh38_barcodes.tsv.gz"
[1] "/data/external/ms/MS19270_PBMC/GSM4104134_MS19270_PBMCs_GRCh38_genes.tsv.gz"
Error: Cannot find expression matrix at /data/external/ms/MS19270_PBMC/GSM4104134_MS19270_PBMCs_GRCh38_matrix.mtx.gz
Traceback:

1. ReadMtx(mtx = mxt_temp, cells = cells_temp, features = features_temp)
2. stop(err, call. = FALSE)

when I checked by list.files(file_temp), the files are present

R session

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=ar_EG.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=ar_EG.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=ar_EG.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=ar_EG.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] patchwork_1.1.1    dplyr_1.0.7        SeuratObject_4.0.2 Seurat_4.0.3      

@ahmedibatta ahmedibatta added the bug Something isn't working label Jul 5, 2021
@saketkc
Copy link
Collaborator

saketkc commented Jul 9, 2021

Thanks @Ahmed-fub, I confirm this is a bug. We'll have a fix soon.

@andrewwbutler
Copy link
Collaborator

This should be fixed now on the develop branch. Please try installing (instructions here) and see if that resolves the issue.

@andrewwbutler andrewwbutler added the more-information-needed We need more information before this can be addressed label Jul 11, 2021
@no-response
Copy link

no-response bot commented Jul 25, 2021

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working more-information-needed We need more information before this can be addressed
Projects
None yet
Development

No branches or pull requests

3 participants