Code Monkey home page Code Monkey logo

Comments (6)

lucapinello avatar lucapinello commented on July 4, 2024

from stream.

charles-bernard avatar charles-bernard commented on July 4, 2024

Hi Luca,

Thank you for your super quick reply ! And thank you for proposing me your help, that's really nice of you.

I personally don't mind but I don't know if the people who where involved in the production of these data do. Sorry for that. Nevertheless, what I can share with you is the expression matrix filled with 0 values, as well as the labels and their corresponding colors. Hope it is ok for you?

cell_labels.tsv.gz
cell_labels_colors.tsv.gz
hvg_expr_mat.tsv.gz

Ps: On another note, I would be interested in retrieving the cell coordinates on the MLLE embedding to plot them back with the R rgl package. Unfortunately, the way the cells are ordered in the output coord_cells.csv is not the same as in the input expression matrix. Would it be therefore possible to return the cell names as well in the coord_cells table ?

Thank you so much,

Charles

from stream.

huidongchen avatar huidongchen commented on July 4, 2024

Hi, Charles,

Thanks for trying STREAM and your feedbacks! We just fixed it! It should work now.

The issue was caused by our recent update, in which the filename was changed by mistake when uploading them. (Also for the Hex color, we currently only support 6 digits. We noticed that in your example color file, you are using 8 digits. You might need to change that)

Please let us know if you encounter any other issues. Thanks!

Best,
Huidong

from stream.

charles-bernard avatar charles-bernard commented on July 4, 2024

Awesome !

Thank you very much Huidong, it works like a charm now !

Concerning the output coord_cells.csv file, can you tell me how I can know to which cell does a line correspond to? Thanks to the first column, I can know the color of the cell, but what if I'd like to know its identity?

Best,

Charles

from stream.

huidongchen avatar huidongchen commented on July 4, 2024

Hi, Charles,

I'm happy that it works for you!

In order to avoid some visual artifacts caused by the plotting order of cells, we always shuffle cells before plotting them. Here coord_cells.csv is coordinates of shuffled cells so it's hard to link it to the 'cell_info.tsv' file.

The easiest way to obtain cells' MLLE coordinates and branch ids(line) would be utilizing the precomputed variable files:

import cPickle
f = open('./Precomputed/df_flat_tree.pickle', 'rb')
df_flat_tree = cPickle.load(f)
f.close()
f = open('./Precomputed/dict_node_state.pickle', 'rb')
dict_node_state = cPickle.load(f)
f.close()

The column 'X_projected' and 'branch_id' in df_flat_tree contain MLLE coordinates and branch ids respectively. dict_node_state has node labels.

I hope the above is useful to you. In the meantime, if it solves your concern, would you mind closing this issue? Thanks!

Best,
Huidong

from stream.

charles-bernard avatar charles-bernard commented on July 4, 2024

Awesome! Thank you for your help!

I'm going to close this issue now.

Best,
Charles

from stream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.