maximilianh / cellBrowser

main repo: https://github.com/ucscGenomeBrowser/cellBrowser/ - Python pipeline and Javascript scatter plot library for single-cell datasets, http://cellbrowser.rtfd.org
https://github.com/ucscGenomeBrowser/cellBrowser/
GNU General Public License v3.0
104 stars 40 forks source link

turn off the on-screen labels #1

Closed hbeale closed 6 years ago

hbeale commented 6 years ago

Is it possible to turn off the on-screen labels? (Keep the legend labels, but not the cluster labels). Here's an example of unhelpful labels.

example unhelpful labels

maximilianh commented 6 years ago

You could right-click any other meta data field and choose this as a label? E.g. Seurat cluster ?

How would you suggest should a function "hide cluster labels" go ? Under "View" ?

hbeale commented 6 years ago

There are definitely times we want no labels at all. And yes, under view.

On Thu, Oct 12, 2017 at 11:03 AM Maximilian Haeussler < notifications@github.com> wrote:

You could right-click any other meta data field and choose this as a label? E.g. Seurat cluster ?

How would you suggest should a function "hide cluster labels" go ? Under "View" ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/1#issuecomment-336218599, or mute the thread https://github.com/notifications/unsubscribe-auth/AADVg6yinraDS3Zax7kpkg1a1A_FnFo6ks5srlSGgaJpZM4P3You .

hbeale commented 6 years ago

It could be a toggle like the other things in that menu. Show labels/hide labels.

maximilianh commented 6 years ago

You can already hide the cluster label by editing dataset.json in the output directory under "treehouse". This file contains the configuration of your dataset (treehouse is the first dataset, the viewer can show many datasets, see file open). This whole topic is not explained at all anywhere, I have to document it somewhere.

If you simply remove the line with "clusterLabel" in there, there will be no label visible anymore.

After this change, you have to run "cbPrep html " again. This will regenerate the index.html file.

Alternatively, you can also edit your index.html file and remove the "clusterLabel" line.

I still need a menu option for hiding the label.

On Thu, Oct 12, 2017 at 4:13 PM, hbeale notifications@github.com wrote:

It could be a toggle like the other things in that menu. Show labels/hide labels.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/1#issuecomment-336306435, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS-TawoNRCHaNxhaXghn-xh40jrkr6Wks5srpz8gaJpZM4P3You .

maximilianh commented 6 years ago

I've now added "View - hide labels".

On Thu, Oct 12, 2017 at 5:00 PM, Maximilian Haeussler <maximilianh@gmail.com

wrote:

You can already hide the cluster label by editing dataset.json in the output directory under "treehouse". This file contains the configuration of your dataset (treehouse is the first dataset, the viewer can show many datasets, see file open). This whole topic is not explained at all anywhere, I have to document it somewhere.

If you simply remove the line with "clusterLabel" in there, there will be no label visible anymore.

After this change, you have to run "cbPrep html " again. This will regenerate the index.html file.

Alternatively, you can also edit your index.html file and remove the "clusterLabel" line.

I still need a menu option for hiding the label.

On Thu, Oct 12, 2017 at 4:13 PM, hbeale notifications@github.com wrote:

It could be a toggle like the other things in that menu. Show labels/hide labels.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maximilianh/cellBrowser/issues/1#issuecomment-336306435, or mute the thread https://github.com/notifications/unsubscribe-auth/AAS-TawoNRCHaNxhaXghn-xh40jrkr6Wks5srpz8gaJpZM4P3You .