bbglab / muts-needle-plot Goto Github PK
View Code? Open in Web Editor NEWA needle plot for mutation data
License: Other
A needle plot for mutation data
License: Other
Hi,
Is it possible to plot needles on upstream of genes? Such as the promoter region?
It would be very nice and useful if @mpschr and contributors were able to clarify licence for this software/repository - I think that more users would choose this module and more PRs will be issued if developers would know what the licence is and what is a general vision for development of this module. If the licence is somewhere, it might be a good idea to create a LICENCE file in the main directory of repository so it would be more visible.
Kind regards and thanks for creating this great piece of software!
The "needles" of the second plot are drawn on the first plot.
Download image option. Either SVG, PNG or both
plotConfig = {
maxCoord : regions_data[selected_gene]['maxcoord'],
minCoord : 0,
height: 450,
targetElement : "mutsplot_chart",
mutationData: regions_data[selected_gene]['muts'],
regionData: regions_data[selected_gene]['regions'],
colorMap: colorMap,
legends: legends
};
I haven't traced the root cause of this, but a quick look with eslint shows dozens of globals. I suggest adding eslint, using 'use strict', and eliminating the globals.
Provide possibility to add / remove mutations and regions and the plot updates itself
I just saw that you published this nice component. Nice!
Also I saw that the "snippets" documentation isn't pefect yet, so I just post here what I saw in your package - maybe it helps you.
data
-> ./data
). Otherwise there is no way for the registry to fix the pathvar yourDiv = document.getElementById('zg036315rk9');
So if you use the string "yourDiv" d3 won't find the injected element and d3 will use document.body
as fallback. As yourDiv is a DOM reference you can pass it directly to D3 like target: yourDiv
, or you can also get its id with yourDiv.id
Hi, nice lib! Starting to put it to use in a project. What would be the best practice for hooking into the drag-end event, or any event really? I'd like to fire off another custom function that uses the selected coords.
cheers,
:Larry
Is there a recommended way to include this lib from webpack? Doing a simple require() results in dependencies (d3-tip) not being available at run-time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.