Skip to content
Snippets Groups Projects
Commit 74cb3e25 authored by tcarver's avatar tcarver
Browse files

add useIndex()

parent 4a404267
Branches
Tags
No related merge requests found
......@@ -90,7 +90,7 @@ public class IndexFastaStream extends StreamSequence
* @param entry
* @return
*/
public static boolean isIndexed(Entry entry)
protected static boolean isIndexed(Entry entry)
{
try
{
......@@ -127,6 +127,22 @@ public class IndexFastaStream extends StreamSequence
return false;
}
protected boolean useIndex()
{
if(fastaIndex.size() == 1)
return true;
Object[] possibleValues = { "Use index", "Concatenate Sequences" };
int sel = JOptionPane.showOptionDialog(null,
"Use the FASTA index file (to increase the performance)\n"+
"or concatenate the sequences together?",
"Indexed FASTA Found",
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE,
null, possibleValues, possibleValues[0]);
return sel == 0;
}
/**
* Add to supported FASTA allowed suffixes.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment