one more change needed to commit
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1093 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
f6eeb36c93
commit
ea2426dcd0
|
|
@ -176,6 +176,19 @@ public class Utils {
|
|||
return new String(basesAsbytes);
|
||||
}
|
||||
|
||||
public static boolean is454Read(SAMRecord read, SAMFileHeader header) {
|
||||
Object readGroupAttr = read.getAttribute("RG");
|
||||
if ( readGroupAttr != null ) {
|
||||
SAMReadGroupRecord readGroup = header.getReadGroup(readGroupAttr.toString());
|
||||
if ( readGroup != null ) {
|
||||
Object readPlatformAttr = readGroup.getAttribute("PL");
|
||||
if ( readPlatformAttr != null )
|
||||
return readPlatformAttr.toString().toUpperCase().contains("454");
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private static final Map<Integer, String> readFlagNames
|
||||
= new HashMap<Integer, String>();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue