Giter VIP home page Giter VIP logo

stamarker's People

Contributors

messcode avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

zhanglabtools

stamarker's Issues

An error while running Mouse-cerebellum.ipynb

Hi,

Thanks for such nice work! I meet a problem while running your Mouse-cerebellum.ipynb tutorial. More specifically, it is about the second box under Visualize spatial domains. The error is as follows.

TypeError: '(slice(None, None, None), (0, 1))' is an invalid key

A screenshot of the error is attached as well. After some googling, it might be about some slicing error, but I could not locate the culprit. I wonder if you know what could be the reason?

Thank you!

image

Is calculating both row and col_linkage necessary?

col_linkage = hierarchy.linkage(distance.pdist(cmat.T), method=method)

Is it necessary to calculate both row and col_linkage since the matrix cmat is symmetric?
col_linkage should be identical to row_linkage, and the function hierarchy.linkage is very slow for larger number of observations.

Also, col_linkage is used only for creation of the image, it is not used in the rest of the code.

Can you speed this up with np.meshgrid?

row_indices, col_indices = zip(*itertools.product(indices, indices))

Calling zip and itertools to only create pairs of index for symmetrical matrix seems to be too slow. You can use numpy meshgrid function.

row_indices, col_indices = np.meshgrid(indices, indices, copy=True, sparse=False, indexing='ij')
And then just unravel the index matrices:
mat[row_indices.ravel(), col_indices.ravel()] = 1

CPU only cannot run the tutorial

Please provide some information on writing the model.yaml and trainer.yaml

When using only cpu the tutorial code
if not torch.cuda.is_available():
config["stagate_trainer"]["gpus"] = None
config["classifier_trainer"]["gpus"] = None
creates an error in pipeline.py
if config["stagate_trainer"]["gpus"] > 0:
torch.cuda.empty_cache()
because None cannot be compared to int.
I suggest setting value to 0 instead of None.

Trouble running on visium sample

I'm struggling to reproduce some results from the paper. I'm running stamarker on the human visium 151507 sample, by adapting code from the tutorial, but I end up with domains that look like this:
image

Do you have any advice as to what I might be doing wrong? Are there parameters that need to be different than what's shown in the example?

Missing necessary libraries and versions in requirements.txt

Sklearn and skmisc should have full names (scikit-learn and scikit-misc) so requirements.txt can be automatically run for installation.
Missing torch-sparse package and its version.
Missing scanpy package and its version.
Missing upsetplot package and its version.

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.