ragtag_utilities/ScaffoldGraph.py
def add_node(self, n, **kwargs):
        """ Add a node to the graph. """
        if not isinstance(n, str):
            raise TypeError("Nodes must be strings. Got {}".format(type(n)))

        if not n.endswith("_b") and not n.endswith("_e"):
            raise ValueError("Nodes must end with either '_b' or '_e'.")

        if n[:-2] not in self.component_lens:
            raise ValueError("{} was not found in {}".format(n[:-2], self.components_fasta_fname))

        self.graph.add_node(n, **kwargs)
 Add a node to the graph. 
Add a node to the graph.
Add a node to the graph .
def add_node(self, n, **kwargs):
        if not isinstance(n, str):
            raise TypeError("Nodes must be strings. Got {}".format(type(n)))
        if not n.endswith("_b") and not n.endswith("_e"):
            raise ValueError("Nodes must end with either '_b' or '_e'.")
        if n[:-2] not in self.component_lens:
            raise ValueError("{} was not found in {}".format(n[:-2], self.components_fasta_fname))
        self.graph.add_node(n, **kwargs)
def add_node ( self , n , ** kwargs ) : if not isinstance ( n , str ) : raise TypeError ( "Nodes must be strings. Got {}" . format ( type ( n ) ) ) if not n . endswith ( "_b" ) and not n . endswith ( "_e" ) : raise ValueError ( "Nodes must end with either '_b' or '_e'." ) if n [ : - 2 ] not in self . component_lens : raise ValueError ( "{} was not found in {}" . format ( n [ : - 2 ] , self . components_fasta_fname ) ) self . graph . add_node ( n , ** kwargs )
Add a node to the graph.
Add a node to the graph .
""" Add a node to the graph. """
self
n