Commit 616bd572 authored by Tatiana Rocher's avatar Tatiana Rocher

added in export Fasta : list of V D J of selected clones

parent b1dda1f0
......@@ -1825,7 +1825,33 @@ Model.prototype = {
for (var i=0; i<list.length; i++){
fasta += this.clone(list[i]).getFasta() + '\n'
}
//V D J
var listGene = []
for (var i=0; i<list.length; i++){
var geneV = this.clone(list[i]).getGene(5)
var geneD = this.clone(list[i]).getGene(4)
var geneJ = this.clone(list[i]).getGene(3) // y a-t-il une raison de tester qu'ils ne soient pas "undefined" ?
if (listGene.indexOf(geneV) == -1)
listGene.push(geneV)
if ((geneD != undefined) && listGene.indexOf(geneD) == -1)
listGene.push(geneD)
if (listGene.indexOf(geneJ) == -1)
listGene.push(geneJ)
}
for (var i=0; i<listGene.length; i++){
fasta += ">" + listGene[i] + '\n';
//fasta += //sequence
}
//fasta += segmented_germline->rep_5.read(seg.best_V);
/*segmented_germline = windowsStorage->getGermline(it->first)
*
*
*/
var result = $('<div/>', {
html: fasta
}).appendTo(w.document.body);
......
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