flowcraft/templates/assembly_report.py
def _gc_prop(s, length):
        """Get proportion of GC from a string

        Parameters
        ----------
        s : str
            Arbitrary string

        Returns
        -------
        x : float
            GC proportion.
        """

        gc = sum(map(s.count, ["c", "g"]))

        return gc / length
def _gc_prop(s, length):
        gc = sum(map(s.count, ["c", "g"]))

        return gc / length
def _gc_prop ( s , length ) : gc = sum ( map ( s . count , [ "c" , "g" ] ) ) return gc / length
Get proportion of GC from a string

        Parameters
        ----------
        s : str
            Arbitrary string

        Returns
        -------
        x : float
            GC proportion.
Get proportion of GC from a string