Commit 1de75690 authored by Marc Duez's avatar Marc Duez

export.js : fasta format for clones

parent cdcbdedc
......@@ -367,7 +367,7 @@ Report.prototype = {
graph.resize(791,300)
graph.draw(0)
var head = $('<div/>', {class: 'clone_head'}).appendTo(clone);
var head = $('<span/>', {class: 'clone_head'}).appendTo(clone);
if (time == -1){
var icon = $('<span/>', {class: 'icon'}).appendTo(head);
......@@ -382,16 +382,16 @@ Report.prototype = {
icon.append(svg)
}
$('<span/>', {text: m.clone(cloneID).name, class: 'clone_name', style : 'color:'+color}).appendTo(head);
$('<span/>', {text: ">"+m.clone(cloneID).name+'\u00a0', class: 'clone_name', style : 'color:'+color}).appendTo(head);
if (typeof m.clone(cloneID).c_name != "undefined"){
$('<span/>', {text: m.clone(cloneID).c_name, class: 'clone_name', style : 'color:'+color}).appendTo(head);
$('<span/>', {text: m.clone(cloneID).c_name+'\u00a0', class: 'clone_name', style : 'color:'+color}).appendTo(head);
}
if (time == -1){
var reads_stats = $('<div/>', {class: 'clone_table'}).appendTo(clone);
var reads_stats = $('<span/>', {class: 'clone_table'}).appendTo(clone);
for (var i=0; i<m.samples.order.length; i++){
var t = m.samples.order[i]
$('<div/>', {text : m.clone(cloneID).getStrSize(t), class: 'clone_value'}).appendTo(reads_stats);
$('<span/>', {text : m.clone(cloneID).getStrSize(t), class: 'clone_value'}).appendTo(reads_stats);
}
}else{
$('<span/>', {text : m.clone(cloneID).getStrSize(time), class: 'float-right'}).appendTo(head);
......
......@@ -157,6 +157,8 @@
.sequence{
overflow-wrap:break-word;
font-family:courier;
border-top: solid;
border-width: 1px;
}
.v_gene{
color : #DDA800;
......@@ -167,6 +169,37 @@
.j_gene{
color : #00A237;
}
.float-right{
float: right;
}
.clone{
font-size : 75%;
margin: 1em 0;
}
.clone_head{
width: 100%;
}
.clone_name{
border-right:solid;
border-width:1px;
margin-right:20px;
padding-right:20px;
font-weight: bold;
}
.clone_table{
margin: 0 auto 0 auto;
float: left;
text-align: center;
border-bottom: solid;
border-width: 1px;
display: table;
width: 100%;
}
.clone_value{
margin: 0 auto 0 auto;
display:table-cell;
text-align: center;
}
</style>
<!-- graph style-->
......@@ -243,39 +276,6 @@
.circle{
stroke : none;
}
.float-right{
float: right;
}
.clone{
font-size : 75%;
margin: 1em 0;
}
.clone_head{
border-bottom: solid;
border-width: 1px;
}
.clone_name{
border-right:solid;
border-width:1px;
margin-right:20px;
padding-right:20px;
font-weight: bold;
}
.clone_table{
margin: 0 auto 0 auto;
float: left;
text-align: center;
border-bottom: solid;
border-width: 1px;
display: flex;
width: 100%;
}
.clone_value{
margin: 0 auto 0 auto;
flex-shrink: 0;
flex-basis: 0;
text-align: center;
}
</style>
</head>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment