Skip to content
Snippets Groups Projects
Commit be739b60 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

generate all words of 3 to strain length instead of limiting to word of 25 char max

parent a0effe51
No related branches found
No related tags found
No related merge requests found
function(doc) { function(doc) {
var strain = doc.replicon.strain.toLowerCase(); var strain = doc.replicon.strain.toLowerCase();
for( var wl=3 ; wl<25 ; wl++){ for( var wl=3 ; wl<=strain.length ; wl++){
for( var i=0; i< strain.length-wl ; i++ ){ for( var i=0; i<= strain.length-wl ; i++ ){
emit( strain.substring(i, i+wl), doc.replicon.strain); emit( strain.substring(i, i+wl), doc.replicon.strain);
} }
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment