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

save out to txt #22

Closed
JoJoBe2017 opened this issue Apr 10, 2017 · 2 comments
Closed

save out to txt #22

JoJoBe2017 opened this issue Apr 10, 2017 · 2 comments

Comments

@JoJoBe2017
Copy link

Hello,

How do I save out the magic massaged results (cell by gene matrix) into txt file so that I can import to R?

Thank you.

@dpcook
Copy link

dpcook commented Apr 11, 2017

Hey there,

After you go through their workflow, you can export to CSV using the to_csv function from Pandas with the following:

mat = scdata.magic.data
mat.to_csv(path_or_buf="~/Data/etc/lmagic.matrix.csv")

@JoJoBe2017
Copy link
Author

yes, I figured out. Thanks.

@pkathail pkathail closed this as completed May 1, 2017
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

3 participants