Skip to content

Instantly share code, notes, and snippets.

Created August 13, 2009 17:37
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 anonymous/167330 to your computer and use it in GitHub Desktop.
Save anonymous/167330 to your computer and use it in GitHub Desktop.
my $seqNoGaps = $currentSeq->seq;
$seqNoGaps =~ tr/-//d;
my $domainStartResidue = index($seqNoGaps, $domainSeq)+1;
my $domainEndResidue = $domainStartResidue + length($domainSeq)-1;
my $domainStartColumn = $currentSeq->column_from_residue_number($domainStartResidue);
my $domainEndColumn = $currentSeq->column_from_residue_number($domainEndResidue);
my $alnDomain = $aln->slice($domainStartColumn,$domainEndColumn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment