
skbio.sequence.Protein
======================







   
      
   

   

   
      
   

   
      
   

   
      
   

   

   

   
      
   

   

   
      
   

   

   
      
   

   
      
   

   
      
   

   

   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   

   

   

   

   
      
   

   

   

   
      
   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   








   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   





   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   

   
      
         
      
   





   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   

   
      
   





.. currentmodule:: skbio.sequence

.. autoclass:: Protein




   
   
   .. rubric:: Attributes

   .. autosummary::
   
      ~Protein.alphabet
      ~Protein.default_gap_char
      ~Protein.definite_chars
      ~Protein.degenerate_map
      ~Protein.gap_chars
      ~Protein.noncanonical_chars
      ~Protein.stop_chars
      ~Protein.wildcard_char
   

   
   .. rubric:: Attributes (inherited)

   .. autoinherit::
   
      ~Protein.default_write_format
      ~Protein.degenerate_chars
      ~Protein.interval_metadata
      ~Protein.metadata
      ~Protein.nondegenerate_chars
      ~Protein.observed_chars
      ~Protein.positional_metadata
      ~Protein.values
   
   

   
   
   .. rubric:: Methods

   .. autosummary::
      :toctree:
   
      ~Protein.find_motifs
   
      ~Protein.has_stops
   
      ~Protein.read
   
      ~Protein.stops
   
      ~Protein.write
   
   

   
   .. rubric:: Methods (inherited)

   .. autoinherit::
      ~Protein.concat
      ~Protein.count
      ~Protein.definites
      ~Protein.degap
      ~Protein.degenerates
      ~Protein.distance
      ~Protein.expand_degenerates
      ~Protein.find_with_regex
      ~Protein.frequencies
      ~Protein.gaps
      ~Protein.has_definites
      ~Protein.has_degenerates
      ~Protein.has_gaps
      ~Protein.has_interval_metadata
      ~Protein.has_metadata
      ~Protein.has_nondegenerates
      ~Protein.has_positional_metadata
      ~Protein.index
      ~Protein.iter_contiguous
      ~Protein.iter_kmers
      ~Protein.kmer_frequencies
      ~Protein.lowercase
      ~Protein.match_frequency
      ~Protein.matches
      ~Protein.mismatch_frequency
      ~Protein.mismatches
      ~Protein.nondegenerates
      ~Protein.replace
      ~Protein.to_definites
      ~Protein.to_indices
      ~Protein.to_regex
   
   

   
   

   
   .. rubric:: Special methods (inherited)

   .. autoinherit::
   
      ~Protein.__bool__
      ~Protein.__contains__
      ~Protein.__copy__
      ~Protein.__deepcopy__
      ~Protein.__eq__
      ~Protein.__ge__
      ~Protein.__getitem__
      ~Protein.__getstate__
      ~Protein.__gt__
      ~Protein.__iter__
      ~Protein.__le__
      ~Protein.__len__
      ~Protein.__lt__
      ~Protein.__ne__
      ~Protein.__reversed__
      ~Protein.__str__
   
   




   
   .. rubric:: Details

   
   
   .. autoattribute:: Protein.alphabet
   
   
   
   .. autoattribute:: Protein.default_gap_char
   
   
   
   .. autoattribute:: Protein.definite_chars
   
   
   
   .. autoattribute:: Protein.degenerate_map
   
   
   
   .. autoattribute:: Protein.gap_chars
   
   
   
   .. autoattribute:: Protein.noncanonical_chars
   
   
   
   .. autoattribute:: Protein.stop_chars
   
   
   
   .. autoattribute:: Protein.wildcard_char
   
   

   
   