Skip to content
Snippets Groups Projects
Commit ca1d3bdd authored by arq5x's avatar arq5x
Browse files

formatting

parent e379c072
No related branches found
No related tags found
No related merge requests found
......@@ -80,3 +80,32 @@ void VcfRecord::printOtherFields(QuickString &outBuf) const {
}
}
const QuickString &VcfRecord::getField(int fieldNum) const
{
//a request for any of the first six fields will retrieve
//chrom, start, end, name, score, and strand, in that order.
//A request for field 6+ will go to the otherIdxs.
switch (fieldNum) {
case 1:
return _chrName;
break;
case 2:
return _startPosStr;
break;
case 3:
return _name;
case 4:
return _varAlt;
break;
case 5:
return _varRef;
break;
case 6:
return _score;
default:
return BedPlusInterval::getField(fieldNum);
break;
}
}
......@@ -29,6 +29,7 @@ public:
//if the number of fields frequently differ between this object and the one being copied.
const BedPlusInterval &operator=(const VcfRecord &other);
virtual const QuickString &getField(int fieldNum) const;
protected:
QuickString _varAlt;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment