Commit 6bd291b0 authored by Mathieu Giraud's avatar Mathieu Giraud

vidjil.cpp: -c segment, unique id per sequence

We require in `vidjil-format.md` the unicity of the `id` fields.
parent a3b3a7bc
......@@ -1582,9 +1582,10 @@ int main (int argc, char **argv)
FineSegmenter s(seq, germline, segment_cost, expected_value, nb_reads_for_evalue, kmer_threshold, alternative_genes);
string id = string_of_int(nb);
CloneOutput *clone = new CloneOutput();
output->addClone(seq.label, clone);
clone->set("id", seq.label);
output->addClone(id, clone);
clone->set("id", id);
clone->set("sequence", seq.sequence);
clone->set("reads", { 1 });
clone->set("top", 0);
......
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