Commit def2bb94 authored by Mathieu Giraud's avatar Mathieu Giraud

core/germline.{h,cpp}: stores 'ref' from json

See #2155.
parent 132ff4e7
......@@ -231,6 +231,7 @@ ostream &operator<<(ostream &out, const Germline &germline)
MultiGermline::MultiGermline(IndexTypes indexType, bool _one_index_per_germline):indexType(indexType)
{
ref = "custom germlines" ;
species = "custom germlines" ;
species_taxon_id = 0 ;
index = NULL;
......@@ -286,6 +287,7 @@ void MultiGermline::build_from_json(string path, string json_filename_and_filter
exit(1);
}
ref = germlines["ref"].get<std::string>();
species = germlines["species"].get<std::string>();
species_taxon_id = germlines["species_taxon_id"];
......
......@@ -131,6 +131,7 @@ class MultiGermline {
bool one_index_per_germline;
list <Germline*> germlines;
string ref;
string species;
int species_taxon_id;
......
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