super(source);
}
+ @Override
public void initData()
{
super.initData();
}
+ @Override
public void parse() throws IOException
{
int i = 0;
}
}
+ @Override
public String print()
{
return print(getSeqsAsArray());
maxid++;
int len = 60;
- int nochunks = (max / len) + 1;
+ int nochunks = (max / len) + (max % len > 0 ? 1 : 0);
for (i = 0; i < nochunks; i++)
{
* @throws IOException
* DOCUMENT ME!
*/
+ @Override
public void parse() throws IOException
{
StringBuffer sb = new StringBuffer();
addProperties(al);
for (int i = 0; i < annotations.size(); i++)
{
- AlignmentAnnotation aa = (AlignmentAnnotation) annotations
+ AlignmentAnnotation aa = annotations
.elementAt(i);
aa.setPadGaps(true, al.getGapCharacter());
al.addAnnotation(aa);
out.append(newline);
- int nochunks = (s[i].getLength() / len) + 1;
+ int nochunks = (s[i].getLength() / len)
+ + (s[i].getLength() % len > 0 ? 1 : 0);
for (int j = 0; j < nochunks; j++)
{
*
* @return DOCUMENT ME!
*/
+ @Override
public String print()
{
return print(getSeqsAsArray());
/**
* DOCUMENT ME!
*/
+ @Override
public void parse() throws IOException
{
int i = 0;
out.append(newline);
int len = 50;
- int nochunks = (max / len) + 1;
-
- if ((max % len) == 0)
- {
- nochunks--;
- }
+ int nochunks = (max / len) + (max % len > 0 ? 1 : 0);
for (i = 0; i < nochunks; i++)
{
*
* @return DOCUMENT ME!
*/
+ @Override
public String print()
{
return print(getSeqsAsArray());
super(source);
}
+ @Override
public void parse() throws IOException
{
StringBuffer sequence;
}
}
+ @Override
public String print()
{
return print(getSeqsAsArray());
}
}
}
- int nochunks = (seq.length() / len) + 1;
+ int nochunks = (seq.length() / len)
+ + (seq.length() % len > 0 ? 1 : 0);
for (int j = 0; j < nochunks; j++)
{
*
* @return DOCUMENT ME!
*/
+ @Override
public String print()
{
return print(getSeqsAsArray());
}
+ @Override
public String print(SequenceI[] s)
{
StringBuffer out = new StringBuffer("PileUp");
int len = 50;
- int nochunks = (max / len) + 1;
-
- if ((max % len) == 0)
- {
- nochunks--;
- }
+ int nochunks = (max / len) + (max % len > 0 ? 1 : 0);
for (i = 0; i < nochunks; i++)
{