INNER CODE UNIT · Python

remove_prefix

BortonWrightonLabs/DRAM · bin/format_kegg_database.py:135

def remove_prefix(text, prefix):
    if text.startswith(prefix):
        return text[len(prefix) :]
    return text  # or whatever


def get_iso_date():
    return datetime.today().strftime("%Y%m%d")


def main():
    parser = argparse.ArgumentParser(description="Prepare KEGG database")
    parser.add_argument("--kegg_loc", type=str, help="Path to the KEGG fasta file")
    parser.add_argument(
        "--gene_ko_link_loc", type=str, help="Path to the gene KO link file"
    )
    parser.add_argument(
        "--skip_gene_ko_link",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…