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

float vs. real in .mtx files? #1369

Closed
bugneville opened this issue Oct 15, 2021 · 4 comments
Closed

float vs. real in .mtx files? #1369

bugneville opened this issue Oct 15, 2021 · 4 comments
Milestone

Comments

@bugneville
Copy link

Importing float .mtx files (e.g., like those from multimapping) in R for downstream analysis is currently not straightforward. Would there be any limitations if STAR just output these files as real instead?

@alexdobin
Copy link
Owner

Hi @bugneville

did you mean integer instead of float?
When multimappers are included, the counts indeed become non-integer, as one read can be "distributed" between multiple genes. You can round them to integeres, but is not the best approach, I believe - see the discussion here: #1262 (comment)

Cheers
Alex

@bugneville
Copy link
Author

bugneville commented Nov 14, 2021

@alexdobin, apologies for not responding sooner.

No -- i meant real instead of float. It appears if you simply change the header in the .mtx from float to real, the .mtx files can be read into R by the various packages (most of which appear to depend on the Matrix R package?). Is there any limitation with only real precision vs. float that you can imagine?

@alexdobin
Copy link
Owner

Hi @bugneville

you are right, we indeed need to use "real" not "float" in the matrix market header.
I will fix it in the next release.

Thanks!
Alex

@alexdobin alexdobin added this to the 2.7.10 milestone Nov 18, 2021
@bugneville
Copy link
Author

thanks @alexdobin!

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

No branches or pull requests

2 participants