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

MTX_CONVERSION:MTX_TO_SEURAT fails with certain feature names #385

Open
ChristopherBarrington opened this issue Oct 24, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@ChristopherBarrington
Copy link

Description of the bug

When using --aligner cellranger the matrix files are not read correctly by ReadMtx but are read correctly by Read10X.

Command error:
  Attaching SeuratObject
  Error: Matrix has 13931 rows but found 12861 features.
  In addition: Warning messages:
  1: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :
    EOF within quoted string
  2: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :
    number of items read is not a multiple of the number of columns
  Execution halted

The 12861st feature is:

FBgn0025724     beta'COP        Gene Expression

It looks like the read.table function used by ReadMtx causes the problem - only reading so far as this feature. The Read10X function uses read.delim which uses the string as-is. Maybe Read10X would be a more robust alternative, assuming all aligners output in the 10X format?

Command used and terminal output

No response

Relevant files

No response

System information

@ChristopherBarrington ChristopherBarrington added the bug Something isn't working label Oct 24, 2024
@grst
Copy link
Member

grst commented Oct 28, 2024

Hi @ChristopherBarrington,

thanks for reporting! The whole conversion workflow will be reimplemented in #369 hopefully fixing also this issue.

@ChristopherBarrington
Copy link
Author

ok thanks, in the interim I have used a custom config to ignore if an error occurs

process {
	withName: 'NFCORE_SCRNASEQ:SCRNASEQ:MTX_CONVERSION:MTX_TO_(H5AD|SEURAT)' {
		errorStrategy = 'ignore'
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants