Check for null platform (even when the read group isn't null) and assign it the default platform if it is
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2420 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
87e5a41964
commit
e06dfe44c4
|
|
@ -250,9 +250,13 @@ public class RecalDataManager {
|
|||
((GATKSAMRecord)read).setReadGroup( readGroup );
|
||||
}
|
||||
|
||||
if( RAC.FORCE_PLATFORM != null && !readGroup.getPlatform().equals(RAC.FORCE_PLATFORM)) {
|
||||
if( RAC.FORCE_PLATFORM != null && (readGroup.getPlatform() == null || !readGroup.getPlatform().equals(RAC.FORCE_PLATFORM))) {
|
||||
readGroup.setPlatform( RAC.FORCE_PLATFORM );
|
||||
}
|
||||
|
||||
if ( readGroup.getPlatform() == null ) {
|
||||
readGroup.setPlatform( RAC.DEFAULT_PLATFORM );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue