Skip to content

Instantly share code, notes, and snippets.

@codekaust
Last active February 22, 2020 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codekaust/07b690c6e57e854799af5b1f2c307c28 to your computer and use it in GitHub Desktop.
Save codekaust/07b690c6e57e854799af5b1f2c307c28 to your computer and use it in GitHub Desktop.
Do not delete.
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