Commit 83e65abd authored by Mathieu Giraud's avatar Mathieu Giraud

core/output.{h,cpp}: define and use CloneOutput.reads()

parent 657a89ce
......@@ -48,6 +48,12 @@ void Output::add_warning(string code, string msg, string level)
}
int CloneOutput::reads()
{
return j["reads"][0];
}
CloneOutput::~CloneOutput()
{
}
......@@ -116,6 +122,8 @@ map <string, string> CloneOutputAIRR::fields()
map <string, string> fields;
fields["locus"] = get("germline");
fields["consensus_count"] = string_of_int(reads());
fields["sequence_id"] = get("id");
fields["clone_id"] = get("id");
fields["sequence"] = get("sequence");
......
......@@ -36,6 +36,8 @@ class CloneOutput : public Output
public:
virtual ~CloneOutput();
int reads();
void setSeg(string subkey, json val);
json toJson();
......
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