ragtag_utilities/ScaffoldGraph.py
def filter_by_seq_len(self, min_len):
        """
        Remove nodes whose associated component sequence is shorter than min_len.
        :param min_len: minimum component sequence length
        """
        if not isinstance(min_len, numbers.Number):
            raise TypeError("min_len must be a number")

        # Iterate over the nodes and remove any nodes shorter than min_len
        old_nodes = set(self.nodes)
        for n in old_nodes:
            comp_name = n[:-2]
            if self.get_component_len(comp_name) < min_len:
                self.remove_node(n)

        Remove nodes whose associated component sequence is shorter than min_len.
        :param min_len: minimum component sequence length
        
Remove nodes whose associated component sequence is shorter than min_len.
Remove nodes whose associated component sequence is shorter than min_len .
def filter_by_seq_len(self, min_len):
        if not isinstance(min_len, numbers.Number):
            raise TypeError("min_len must be a number")
        old_nodes = set(self.nodes)
        for n in old_nodes:
            comp_name = n[:-2]
            if self.get_component_len(comp_name) < min_len:
                self.remove_node(n)
def filter_by_seq_len ( self , min_len ) : if not isinstance ( min_len , numbers . Number ) : raise TypeError ( "min_len must be a number" ) old_nodes = set ( self . nodes ) for n in old_nodes : comp_name = n [ : - 2 ] if self . get_component_len ( comp_name ) < min_len : self . remove_node ( n )
Remove nodes whose associated component sequence is shorter than min_len.
Remove nodes whose associated component sequence is shorter than min_len .
"""
        Remove nodes whose associated component sequence is shorter than min_len.
        :param min_len: minimum component sequence length
        """ # Iterate over the nodes and remove any nodes shorter than min_len
self
min_len
minimum component sequence length
minimum component sequence length