Git Product home page Git Product logo

Comments (9)

KrisDavie avatar KrisDavie commented on June 4, 2024

Resolved in b01b378
@kreftl I think we might have to change how something works, although I don't know what, to be able to get this working properly.

Locally, I had to add this to API.jsx (line 22-26)

'Clustering: Seurat resolution 2.0': {
    0: {type: '', value: ''},
    1: {type: '', value: ''},
    2: {type: '', value: ''}
},

and add a few sections for clusters in FeatureSearchBox (93-98)

} else if (response.featureType[i].startsWith('Clustering: ')) {
	clusters.push({
		"title": response.feature[i],
		"type": response.featureType[i]
		});
}

line 103

clusters = {"name": "clusters", "results": clusters.slice(0, 10)}

and lines 112-114

if (clusters['results'].length && (this.props.type == 'all' || this.props.type == 'clusters')) {
	res.push(clusters);
}

The problem is, it doesn't show Clustering: Seurat resolution 2.0' in the search box, and we would need a section in the frontend, specific to each clustering. I don't know how easy this would be to solve or whether the backend implementation could be altered to help.

Mind posting your thoughts?

from scope.

kreftl avatar kreftl commented on June 4, 2024

that for sure requires a change, let me investigate that in detail...

but is there a need to put Clustering: Seurat resolution 2.0 in the searchbox, or only e.g. cluster
and put the details of clusterings etc in some general page, e.g. proper dataset info ?

from scope.

KrisDavie avatar KrisDavie commented on June 4, 2024

My only thought there is that we were planning on being able to put multiple clusterings in the loom files (i.e. different resolutions in Seurat, resulting in more clusters), and in that case, some clusters from each clustering would have the same name, but some would be different. Also then we would have to somehow distinguish 'Unannotated' clusters from each clustering too.

Maybe we could have a way to select which clustering you want to search now I think about it

from scope.

kreftl avatar kreftl commented on June 4, 2024

i would use the cluster id somehow instead of putting the complete cluster name everytime
it will result in less data exchanged between the FE and BE
what about putting 'cluster#'+clusterID as a featureType ?

from scope.

KrisDavie avatar KrisDavie commented on June 4, 2024

That would work, but it would be nice for the user to be able to see the full description, think you can make that happen?
I will prep a new loom file soon, with a second clustering in it and hopefully the subclusters too

from scope.

kreftl avatar kreftl commented on June 4, 2024

the description anyhow comes in loom metadata, so i dont need to send it each time for feature query, there id only will be sufficient

how do we structure the subclusters ?

from scope.

KrisDavie avatar KrisDavie commented on June 4, 2024

Working on the subclusters, they are in the loom file now, but I need to decide if this is the most efficient way of putting them in there and then write the backend functions for you. Should be an update today (I hope!)

from scope.

KrisDavie avatar KrisDavie commented on June 4, 2024

depends on #56

from scope.

KrisDavie avatar KrisDavie commented on June 4, 2024

Old issue. Already implemented. Further enhancements will be tracked under new specific issues.

from scope.

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.