rjchallis / assembly-stats Goto Github PK
View Code? Open in Web Editor NEWAssembly statistic visualisation
Home Page: http://genomehubs.org
License: MIT License
Assembly statistic visualisation
Home Page: http://genomehubs.org
License: MIT License
Hi,
Thank you for writing this wonderful program. These figures look really nice.
However, as I have no knowledge of the java program and being a newbie in bioinformatics. I have not been able to run the program.
What I did was:
assembly-stats
on my home folderoutput.json
using asm2stats.pl
script and placed it in the assembly-stats/json
folder.But it says The requested URL was not found on this server.
I also tried with the test JSON file the same way and it's the same error.
I am also confused with the scripts you provided in usage
section for where to use.
Can you please help me with it?
Thank you,
Upendra
Aloha!
Can you provide a citation that we can use to reference this program?
Thanks!
Sheina
Hi Rich,
made the plots for two assemblies with the previous version and they are great.
what do you think about replacing the colouring of the outer GC-band with a wiggle/dot-plot of GC and N's for each scaffold (using fixed windowsize or scaffold/contig mean)?
that way one could tell wether for example half of the biggest scaffold is made up of N's ... or if you have GC outlier in the biggest scaffolds.
cheers,
dom
I'm following README file written this html file, but get an empty web page when opening it with google chrome.
<html>
<head>
<title>assembly stats</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="css/circle-plot.css">
<link rel="stylesheet" type="text/css" href="css/square-plot.css">
<link rel="stylesheet" type="text/css" href="css/table.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"></script>
<script type="text/javascript" src="js/circle-plot.js"></script>
<script type="text/javascript" src="js/square-plot.js"></script>
<script type="text/javascript" src="js/table.js"></script>
<div id="assembly_stats">
<script charset="utf-8" src="d3.js"></script>
<script>
d3.json("Danaus_plexippus_v3.assembly-stats.json", function(error, json) {
if (error) return console.warn(error);
asm = new Assembly (json);
asm.drawPlot('assembly_stats');
})
</script>
</body>
</html>
i have the program working locally (tested it on the example jsons provided). However, it displays a blank white screen when i substitute these for my own jsons generated by either of the asm2stat scripts.
i noticed that the order of the keys in my jsons were different in my so wrote a script to reorder them based on those in the Danaus file. this seems to fix it but I was just a bit confused why this was happening and wanted to flag it should it be affecting anyone else.
Hi @rjchallis - I came across your repo yesterday and I'm very eager to use assembly-stats
because I have been wanting to visualize my assembly stats just like your tool does. I spent a lot of time looking at the circulize package in R, but it's a beast with which I don't wish to mess.
But before I use your scripts, I have a few questions, please. I work with metagenomic assembled genomes (MAGs) which are essentially a bunch of single genomes. I want to compare the assembly stats of about 10-20 MAGs per sample, so can I:
I look forward to hearing from you. Thank you so much for your help!
Taruna
I got
Illegal division by zero at ./asm2stats.minmaxgc.pl line 131
when trying to run asm2stats.minmaxgc.pl
on data of this two files:
I just look into the file, I think the problem maybe due to the mixed lowercase and uppercase of the fasta file. Can you update the perl script for that ? Sorry, I want to help but doesn't so familiar with perl....
Hello Richard,
These are really great. Do you know of an easy way to download the d3 object as a static image? I've googled around and none of the solutions that I have found seem to work very well. If you have any advice, that would be great!
Thanks,
Paul Frandsen
Hello,
I know this is a basic question, but I was wondering how to proceed after using one of the perl scripts to generate a JSON file? How can I get the webpage? Is "assembly-stats.html" used as a template where you insert the example target div below?
<div id="assembly_stats">
<script>
d3.json("Danaus_plexippus_v3.assembly-stats.json", function(error, json) {
if (error) return console.warn(error);
asm = new Assembly (json);
asm.drawPlot('assembly_stats');
})
</script>
Below is the .html file I have. The .html file and Danaus_plexippus_v3.assembly-stats.json
are in the same directory.
<html>
<head>
<title>assembly stats</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="css/circle-plot.css">
<link rel="stylesheet" type="text/css" href="css/square-plot.css">
<link rel="stylesheet" type="text/css" href="css/table.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"></script>
<script type="text/javascript" src="js/circle-plot.js"></script>
<script type="text/javascript" src="js/square-plot.js"></script>
<script type="text/javascript" src="js/table.js"></script>
<div id="assembly_stats">
<script>
d3.json("Danaus_plexippus_v3.assembly-stats.json", function(error, json) {
if (error) return console.warn(error);
asm = new Assembly (json);
asm.drawPlot('assembly_stats');
})
</script>
</body>
</html>
Any help is greatly appreciated.
Hi there,
I hope this is okay to post here. If you are having trouble running assembly-stats
checkout this fork which demonstrates how to run using github pages: https://github.com/ammaraziz/assembly-stats
Demo of it running here: https://ammaraziz.github.io/assembly-stats/
If there's interest I can write up a detail instructions on how to run assembly-stats
on your own repo.
Thanks,
Ammar
Hello, I'd like to know more about the comparison part. I find it very interesting to compare genomes. However, I didn't understand how you managed to display these results in the demo. Would it be possible to have more information please? Thank you in advance.
Sorry, maybe it's a stupid question, but are contig statistics visualized ?
I can't find where are those statistics visualized in demo site.
http://content.lepbase.org/html/assembly-stats/assembly-stats.html?path=/v4/json/assemblies/&assembly=Danaus_plexippus_v3&view=circle&altAssembly=Danaus_plexippus_DanPle_1.0&altView=compare&altAssembly=Heliconius_melpomene_melpomene_Hmel2&altView=cumulative&altView=table
Dear Richard,
this looks fantastic. However, I am struggling to get my head around how to actually produce the page/ load the plots in my browser. I tried to have your code snippet
<div id="assembly_stats">
<script>
d3.json("Danaus_plexippus_v3.assembly-stats.json", function(error, json) {
if (error) return console.warn(error);
asm = new Assembly (json);
asm.drawPlot('assembly_stats');
})
</script>
as an html file, but Firefox complains about the missing d3 object then.
Tried to add it like so
<div id="assembly_stats">
<script src="js/d3.js"></script>
<script>
but then Firefox says there is an illegal character in d3. This is all done on an iMac. Also tested Vivaldi (Chrome) and Safari, no luck there.
Thanks
Philipp
I followed your documentation, and get the .json file ( let's call it output.json) by asm2stats.pl, but I don't the next step to visualize that output file, could you please give more info/guide about the detail after I get the .json file, thanks a lot
here is the script that I have tried:
file:///Users/myname/bin/assembly-stats/assembly-stats.html?path=/Users/myname/bin/assembly-stats/json/&assembly=output&view=circle&altView=cumulative&altView=table
btw, the plot from your software is really beautiful
best
Hi:
Like many, I really like your output for genome visualisation.
I would like to add the BUSCOs for my genome, but I have copied/pasted the written example to include in the json file, and when I do, nothing shows up (even though before adding it the circular, cumulative and table were OK).
I was hoping if you could put up an example genome file with the buscos, the same way the Cegma is in the Danaus (as there is a particular way of writing it, with double quotes that are not shown in the text to paste).
Thanks again.
HI, I'm actually trying to use your programm but I'm little vit stuck..
I already have generated the .jon file by doing:
And used this script:
<html>
<head>
<title>assembly stats</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="css/circle-plot.css">
<link rel="stylesheet" type="text/css" href="css/square-plot.css">
<link rel="stylesheet" type="text/css" href="css/table.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"></script>
<script type="text/javascript" src="js/circle-plot.js"></script>
<script type="text/javascript" src="js/square-plot.js"></script>
<script type="text/javascript" src="js/table.js"></script>
<div id="assembly_stats">
<script>
d3.json("output.json", function(error, json) {
if (error) return console.warn(error);
asm = new Assembly (json);
asm.drawPlot('assembly_stats');
asm.drawTable('assembly_stats');
asm.toggleVisible(['asm-longest_pie','asm-count']);
})
</script>
</body>
</html>
But only the plot is here, there is not the table.
And also, I have busco output, how could I had these information into the plot?
Thanks for your help;
After I trace the code, I see there is a missing value in contig statistics, which is at this line.
assembly-stats/js/circle-plot.js
Line 544 in 1f4e88e
It should be something like this
assembly-stats/js/circle-plot.js
Line 518 in 1f4e88e
I am trying to generate the image using repo, however, it displays a blank white screen for jsons generated by either of the asm2stat scripts.
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.