Method: Bio::Alignment::OriginalAlignment#remove_seq

Defined in:
lib/bio/alignment.rb

#remove_seq(seq) ⇒ Object

Removes given sequence from the alignment. Returns removed sequence. If nothing removed, returns nil.

It resembles BioPerl’s AlignI::remove_seq.



1919
1920
1921
1922
1923
1924
1925
1926
# File 'lib/bio/alignment.rb', line 1919

def remove_seq(seq)
  #(BioPerl) AlignI::remove_seq like method
  if k = self.index(seq) then
    self.delete(k)
  else
    nil
  end
end