Giter Club home page Giter Club logo

mermaid's People

Contributors

dependabot[bot] avatar jefworks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mermaid's Issues

Enable convex hulls around points by factor

Given a set of spatially co-colocalized points that share the same factor annotation, allow users to highlight these points by generating a convex hull around them. This will be useful, for example, for cases where each point is an mRNA in space annotated based on which cell they are assigned to. We can then make a convex hull around the mRNAs belonging to each cell to get a sense of the cell segmentation. This is also useful for cases where each point is a cell on a tSNE annotated based on cell type, etc. Other minimum bounding box algorithms may also be considered.

Potential libraries:

Implementation in deck.gl:

Alternatively, a geojson file can be provided. However, if it's not provided, more time will be spent to generate it from the csv data.

The uploaded bg.png lost the original ratio in the viewer

Hello, I was trying to replace the bg.png with my own data and found out it lost the original ratio and became 1:1 (width:length). Is it possible that the ratio can be maintained after uploading? Sorry, my JAVASCRIPT knowledge is very limited. But I guess that we will change around IMAGES.BG. Thank you so much for spending time to look into it.

MERmaid/src/index.js

Lines 303 to 316 in 763e276

new BitmapLayer({
id: 'bg-layer',
coordinateSystem: COORDINATE_SYSTEM.IDENTITY,
images: Object.values(IMAGES),
data: [
{
imageUrl: IMAGES.BG,
rotation: toRadians([0, 0, 0]),
center: [0,0,-1],
scale: 1
}
],
opacity: opacity
}),

TODO

Enhancements

  • Provide option to disable rotation
  • Loading bar
  • Generalized gene.csv to be matrix of options where reach column may be a different category to visualize gene.csv no longer used
  • Generalize data.csv to accommodate any number of metadata columns (including each point being a cell and metadata being numeric gene expression)
  • Allow for numeric / non-categorical color scales
  • Allow user to select colors
  • Enable uploading own data
  • Reset to center option
  • Prevent zooming too far away Sufficient with reset

Known bugs

  • Resetting gene does not automatically change point size, only color
  • Reset view triggers with new gene selection?

Running list of related work

Download and citation for all data?

Hi: Do you think it would be ok to use the data you have here as another demo in Vitessce, which I'm working on for Peter? I see the link for the molecules csv, but is there a good way to get the background bitmap or the cell outlines?

HTTP 404 error when using own data

hellow, I met HTTP 404 error when replacing the data.csv.gz file in the build/ folder and follow the Run without re-building steps. And the the page could not be loaded.

If I do not relace the file, I will not encounter this problem


Serving HTTP on 0.0.0.0 port 8080 (http://0.0.0.0:8080/) ...
"GET / HTTP/1.1" 200 -
code 404, message File not found
"GET /MERmaid/static/js/main.92048d1f.js HTTP/1.1" 404 -
code 404, message File not found
"GET /MERmaid/manifest.json HTTP/1.1" 404 -

TypeError with input made by STARFISH

Hi, I used STARFISH, a program that analyzes transcriptome imaging, to produce a data.csv.gz file for visualization with MERmaid. However, there are 3 TypeErrors associated with the same object, called this.props.color, which seems to be Null/undefined. I believe this may be an issue with STARFISH, as the way they write the file might be out of date. A link to the data.csv.gz file is below. Can you please give me some insight on whether the file is out of date or if it is an issue with MERmaid? Thank you.
https://drive.google.com/file/d/1Uzq9U5iKa466E8FPrJEwq_2wV3AnaMCu/view?usp=sharing

To be clear, I rebuilt using "npm install" and then opened this tab using "npm start". When I tried running without re-building, I simply got the error message "code 404, message File not found", which seems to be a separate issue.

screen shot 2019-02-13 at 4 36 04 pm
screen shot 2019-02-13 at 4 36 20 pm

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.