Commit fb4143e6 authored by Mathieu Giraud's avatar Mathieu Giraud

core/fasta.{h,cpp}: stores basename in Fasta

parent 94258ba9
......@@ -45,12 +45,14 @@ void Fasta::init(int extract_field, string extract_separator)
this -> extract_separator = extract_separator ;
total_size = 0;
name = "";
basename = "";
}
Fasta::Fasta(bool virtualfasta, string name)
{
init(0, "");
this -> name = name;
basename = extract_basename(name);
}
Fasta::Fasta(int extract_field, string extract_separator)
......@@ -85,6 +87,7 @@ void Fasta::add(const string &filename, bool verbose) {
}
name += filename + " ";
basename += extract_basename(filename) += " ";
if (verbose)
cout << " <== " << filename ;
......
......@@ -55,6 +55,7 @@ public:
Fasta(bool virtualfasta, const string name); // virtualfasta unused
string name;
string basename;
int size() const;
int totalSize() const;
......
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