def gc_content(self, as_decimal=True):
gc_total = <NUM_LIT:0.0><EOL>num_bases = <NUM_LIT:0.0><EOL>n_tuple = tuple('<STR_LIT>')<EOL>accepted_bases = tuple('<STR_LIT>')<EOL>for base, count in Counter(self.seq).items():<EOL><INDENT>if base not in n_tuple:<EOL><INDENT>num_bases += count<EOL>if base in accepted_bases:  <EOL><INDENT>gc_total += count<EOL><DEDENT><DEDENT><DEDENT>gc_content = gc_total / num_bases<EOL>if not as_decimal:  <EOL><INDENT>gc_content *= <NUM_LIT:100><EOL><DEDENT>return gc_content<EOL>
Returns the GC content for the sequence.
        Notes:
            This method ignores N when calculating the length of the sequence.
            It does not, however ignore other ambiguous bases. It also only
            includes the ambiguous base S (G or C). In this sense the method is
            conservative with its calculation.

        Args:
            as_decimal (bool): Return the result as a decimal. Setting to False
            will return as a percentage. i.e for the sequence GCAT it will
            return 0.5 by default and 50.00 if set to False.

        Returns:
            float: GC content calculated as the number of G, C, and S divided
            by the number of (non-N) bases (length).