Attention une mise à jour du service Gitlab va être effectuée le mardi 14 décembre entre 13h30 et 14h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes.

Commit 3b0c7af6 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

clones: getAverageReadLength()

Return the average read length of the clone. Note that this parameter is
not mandatory and may be undefined. Also note that Vidjil defines it
only for the top clones.
parent e334705f
......@@ -83,6 +83,16 @@ Clone.prototype = {
REGEX_GENE: /(IGH|IGK|IGL|TRA|TRB|TRG|TRD)([\w-*]*)$/, // IGHV3-11*03
REGEX_GENE_IGNORE_ALLELE: /(IGH|IGK|IGL|TRA|TRB|TRG|TRD)([\w-]*)[\w-*]*$/, // IGHV3-11*03 (ignore *03)
getAverageReadLength: function(time) {
if (this._average_read_length == 'undefined')
return 'undefined';
time = this.m.getTime(time);
var size = this._average_read_length[time];
if (size == 0)
return 'undefined';
return size;
getShortName: function () {
name_items = this.getName().split(' ')
......@@ -130,6 +130,10 @@ function ScatterPlot(id, model, database) {
label: "clone consensus length",
fct: function(cloneID) {return self.m.clone(cloneID).getSequenceLength()}
"readLength" : {
label: "clone average read length",
fct: function(cloneID) {return self.m.clone(cloneID).getAverageReadLength()}
"GCContent" : {
label: "GC content",
fct: "GCContent",
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