{
boolean sameGroup = false;
SequenceI dseq, aseq, seq = seqNames.get(seqId);
- int base = seq.getStart() - 1;
+ int base = seq.findPosition(start)-1;
aseq = seq;
while ((dseq = seq).getDatasetSequence() != null)
{
boolean[] gapMap;
int realw;
+
+ int start,end;
public List<FastaSequence> getInputSequences(AlignmentI alignment, AnnotatedCollectionI inputSeqs)
{
seqNames = new HashMap<String, SequenceI>();
}
gapMap = new boolean[0];
+ start=inputSeqs.getStartRes();
+ end=inputSeqs.getEndRes();
+
for (SequenceI sq : (List<SequenceI>) inputSeqs.getSequences())
{
- if (sq.getEnd() - sq.getStart() > minlen - 1)
+ if (sq.findPosition(end+1) -sq.findPosition(start+1) > minlen - 1)
{
String newname = SeqsetUtils.unique_name(seqs.size() + 1);
// make new input sequence with or without gaps
{
seqs.add(seq = new compbio.data.sequence.FastaSequence(newname,
AlignSeq.extractGaps(jalview.util.Comparison.GapChars,
- sq.getSequenceAsString())));
+ sq.getSequenceAsString(start,end+1))));
}
if (seq.getSequence().length() > ln)
{