Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Added getDescription() in VCFFilterHeaderLine #726
Conversation
coveralls
commented
Oct 18, 2016
| + */ | ||
| + public String getDescription() { | ||
| + final String desc = getGenericFieldValue("Description"); | ||
| + return ( StringUtil.isBlank(desc) ? getID() : desc ); |
yfarjoun
Oct 27, 2016
Contributor
I think that this logic should not be in htsjdk. getDescription() should return null or blank if there's no decription. the user can choose what to do with that information.
|
This looks fine to me. I'll leave it for a few more days to see if there are other comments and merge it otherwise. |
coveralls
commented
Oct 27, 2016
lbergelson
merged commit 4558e37
into
samtools:master
Nov 22, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lindenb commentedOct 18, 2016
Description
Using a VCFFilterHeaderLine as a java-bean, I was surprised to see that there is no (?) public/easy way to get the "Description" of a VCFFilterHeaderLine . This PR adds the method
getDescription(); It returns the ID if the description is empty.I've also added some
finalkeywords and theserialVersionUIDChecklist