@staticmethod<EOL><INDENT>def _get_contig_id(contig_str):<DEDENT>
contig_id = contig_str<EOL>try:<EOL><INDENT>contig_id = re.search("<STR_LIT>", contig_str).group(<NUM_LIT:1>)<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>contig_id = re.search("<STR_LIT>", contig_str).group(<NUM_LIT:1>)<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>return contig_id<EOL>
Tries to retrieve contig id. Returns the original string if it
        is unable to retrieve the id.

        Parameters
        ----------
        contig_str : str
            Full contig string (fasta header)

        Returns
        -------
        str
            Contig id