Last active
February 22, 2020 19:36
-
-
Save codekaust/07b690c6e57e854799af5b1f2c307c28 to your computer and use it in GitHub Desktop.
Do not delete.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean isGenePresentInBigg(GeneProduct geneProduct){ | |
String id = geneProduct.getId(); | |
if(id.startsWith("G_")){ | |
id=id.substring(2); | |
} | |
String query = SELECT + COLUMN_LOCUS_TAG + FROM + GENE + WHERE + COLUMN_LOCUS_TAG + " = '%s'"; | |
try { | |
ResultSet rst = connector.query(query,id); | |
return rst.next(); | |
} | |
catch (SQLException exc) { | |
logger.warning(Utils.getMessage(exc)); | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment