Commit 63795683 authored by Bertrand  NÉRON's avatar Bertrand NÉRON

remove t3ss_family info add predicted_system and ncbi_id

replace all t3ss_family info and search by predicted_system

and add info ncbi_id and search system using ncbi_id
parent a256b94c
......@@ -3,10 +3,11 @@ function(doc) {
"id" : doc._id,
"code" : doc.code ,
"name" : doc.replicon.name ,
"T3SS_family" : doc.T3SS_family,
"predicted_system" : doc.predicted_system,
"taxid" : doc.replicon.taxid,
"ncbi_id": doc.replicon.ncbi_id,
"strain" : doc.replicon.strain ,
"taxonomy" : doc.replicon.taxonomy.join( ", ") ,
"taxonomy" : doc.replicon.taxonomy.join(", ") ,
"type" : doc.replicon.type
});
}
\ No newline at end of file
function(doc) {
emit(doc.replicon.ncbi_id, {
"id" : doc._id,
"code" : doc.code ,
"name" : doc.replicon.name ,
"predicted_system" : doc.predicted_system,
"taxid" : doc.replicon.taxid,
"ncbi_id": doc.replicon.ncbi_id,
"strain" : doc.replicon.strain ,
"taxonomy" : doc.replicon.taxonomy.join(", ") ,
"type" : doc.replicon.type
});
}
\ No newline at end of file
......@@ -3,10 +3,11 @@ function(doc) {
"id" : doc._id,
"code" : doc.code ,
"name" : doc.replicon.name ,
"T3SS_family" : doc.T3SS_family,
"predicted_system" : doc.predicted_system,
"taxid" : doc.replicon.taxid,
"ncbi_id": doc.replicon.ncbi_id,
"strain" : doc.replicon.strain ,
"taxonomy" : doc.replicon.taxonomy.join( ", ") ,
"taxonomy" : doc.replicon.taxonomy.join(", ") ,
"type" : doc.replicon.type
});
}
\ No newline at end of file
......@@ -3,10 +3,11 @@ function(doc) {
"id" : doc._id,
"code" : doc.code ,
"name" : doc.replicon.name ,
"T3SS_family" : doc.T3SS_family,
"predicted_system" : doc.predicted_system,
"taxid" : doc.replicon.taxid,
"ncbi_id": doc.replicon.ncbi_id,
"strain" : doc.replicon.strain ,
"taxonomy" : doc.replicon.taxonomy.join( ", ") ,
"taxonomy" : doc.replicon.taxonomy.join(", ") ,
"type" : doc.replicon.type
});
}
\ No newline at end of file
function(doc) {
taxonomy = doc.replicon.taxonomy;
for( var j=0; j< taxonomy.length ; j++ ){
for(var j = 0; j < taxonomy.length; j++){
emit(taxonomy[j], {
"id" : doc._id,
"code" : doc.code ,
"name" : doc.replicon.name ,
"T3SS_family" : doc.T3SS_family,
"predicted_system" : doc.predicted_system,
"taxid" : doc.replicon.taxid,
"ncbi_id": doc.replicon.ncbi_id,
"strain" : doc.replicon.strain ,
"taxonomy" : doc.replicon.taxonomy.join( ", ") ,
"type" : doc.replicon.type
......
function(doc) {
emit(doc.T3SS_family , 1);
emit(doc.predicted_system, 1);
}
\ No newline at end of file
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