Lowercases the sequencing platform so that a difference in case doesn't lead to the failure to look up an entry in the hash.

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1565 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
kiran 2009-09-09 17:35:45 +00:00
parent d82d6c0665
commit 3b1e966b4c
1 changed files with 3 additions and 2 deletions

View File

@ -43,8 +43,9 @@ public class EmpiricalSubstitutionGenotypeLikelihoods extends GenotypeLikelihood
}
public static SequencerPlatform standardizeSequencerPlatform( final String sequencerString ) {
if ( sequencerString != null && PLFieldToSequencerPlatform.containsKey(sequencerString) ) {
return PLFieldToSequencerPlatform.get(sequencerString);
String lcSequencerString = sequencerString.toLowerCase();
if ( sequencerString != null && PLFieldToSequencerPlatform.containsKey(lcSequencerString) ) {
return PLFieldToSequencerPlatform.get(lcSequencerString);
} else {
return SequencerPlatform.UNKNOWN;
}