@Test public void testGetGeneID002() { assertEquals(1000000419, RNA2GeneIDMapper.getGeneID("ENSG01000000419")); }
public static int getGeneID(String geneName){ Matcher matcher; matcher = ensemblPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } matcher = refseqPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } return -1; }
RNA2GeneIDMapper { public static int getGeneID(String geneName){ Matcher matcher; matcher = ensemblPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } matcher = refseqPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } return -1; } }
RNA2GeneIDMapper { public static int getGeneID(String geneName){ Matcher matcher; matcher = ensemblPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } matcher = refseqPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } return -1; }  }
RNA2GeneIDMapper { public static int getGeneID(String geneName){ Matcher matcher; matcher = ensemblPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } matcher = refseqPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } return -1; }  static int getGeneID(String geneName); }
RNA2GeneIDMapper { public static int getGeneID(String geneName){ Matcher matcher; matcher = ensemblPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } matcher = refseqPattern.matcher(geneName); if(matcher.matches()){ return Integer.parseInt(matcher.group(1)); } return -1; }  static int getGeneID(String geneName);  }