Re-allowing blacklist by read group id.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3571 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
kshakir 2010-06-16 19:45:44 +00:00
parent f003703912
commit c671864228
1 changed files with 5 additions and 1 deletions

View File

@ -58,7 +58,11 @@ public class ReadGroupBlackListFilter implements SamRecordFilter {
SAMReadGroupRecord samReadGroupRecord = samRecord.getReadGroup();
if (samReadGroupRecord != null) {
Object attribute = samReadGroupRecord.getAttribute(attributeType);
Object attribute;
if ("ID".equals(attributeType) || "RG".equals(attributeType))
attribute = samReadGroupRecord.getId();
else
attribute = samReadGroupRecord.getAttribute(attributeType);
if (attribute != null && filterEntry.getValue().contains(attribute))
return true;
}