{
  "_id": "6a16c652acfb0bcc41d888eb",
  "Package": "cubar",
  "Title": "Codon Usage Bias Analysis",
  "Version": "1.2.0.9000",
  "Authors@R": "c(\nperson(given = \"Hong\",\nfamily = \"Zhang\",\nrole = c(\"aut\", \"cre\"),\nemail = \"mt1022.dev@gmail.com\",\ncomment = c(ORCID = \"0000-0002-4064-9432\")),\nperson(given = \"Mengyue\",\nfamily = \"Liu\",\nrole = c(\"aut\")),\nperson(given = \"Bu\",\nfamily = \"Zi\",\nrole = c(\"aut\")))",
  "Description": "A suite of functions for rapid and flexible analysis of\ncodon usage bias. It provides in-depth analysis at the codon\nlevel, including relative synonymous codon usage (RSCU), tRNA\nweight calculations, machine learning predictions for optimal\nor preferred codons, and visualization of codon-anticodon\npairing. Additionally, it can calculate various gene- specific\ncodon indices such as codon adaptation index (CAI), effective\nnumber of codons (ENC), fraction of optimal codons (Fop), tRNA\nadaptation index (tAI), mean codon stabilization coefficients\n(CSCg), and GC contents (GC/GC3s/GC4d). It also supports both\nstandard and non-standard genetic code tables found in NCBI, as\nwell as custom genetic code tables.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/mt1022/cubar, https://mt1022.github.io/cubar/",
  "BugReports": "https://github.com/mt1022/cubar/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "LazyDataCompression": "bzip2",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "zlib1g-dev",
  "Repository": "https://mt1022.r-universe.dev",
  "Date/Publication": "2025-10-29 01:44:45 UTC",
  "RemoteUrl": "https://github.com/mt1022/cubar",
  "RemoteRef": "HEAD",
  "RemoteSha": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-27 10:20:37 UTC",
    "User": "root"
  },
  "Author": "Hong Zhang [aut, cre] (ORCID: <https://orcid.org/0000-0002-4064-9432>),\nMengyue Liu [aut],\nBu Zi [aut]",
  "Maintainer": "Hong Zhang <mt1022.dev@gmail.com>",
  "MD5sum": "1f105ad1389b0c0d27a5969284a3351f",
  "_user": "mt1022",
  "_type": "src",
  "_file": "cubar_1.2.0.9000.tar.gz",
  "_fileid": "e3726d88027f4a8aa55d6ffaf61f0d82e462a7b2cb4e2e14e583c5691eb66c45",
  "_filesize": 3780721,
  "_sha256": "e3726d88027f4a8aa55d6ffaf61f0d82e462a7b2cb4e2e14e583c5691eb66c45",
  "_created": "2026-05-27T10:20:37.000Z",
  "_published": "2026-05-27T10:24:18.502Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78056236427,
      "time": 162,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7237942859"
    },
    {
      "job": 78056236503,
      "time": 160,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7237942265"
    },
    {
      "job": 78056236474,
      "time": 168,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7237934532"
    },
    {
      "job": 78056236443,
      "time": 181,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7237939328"
    },
    {
      "job": 78055621978,
      "time": 239,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7237890952"
    },
    {
      "job": 78056236435,
      "time": 145,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7237936625"
    },
    {
      "job": 78056236449,
      "time": 119,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7237929608"
    },
    {
      "job": 78056236504,
      "time": 106,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7237925893"
    },
    {
      "job": 78056236446,
      "time": 126,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7237932604"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mt1022/actions/runs/26505174264",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mt1022/cubar",
  "_commit": {
    "id": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
    "author": "Hong Zhang <mt1022@users.noreply.github.com>",
    "committer": "Hong Zhang <mt1022@users.noreply.github.com>",
    "message": "update doi\n",
    "time": 1761702285
  },
  "_maintainer": {
    "name": "Hong Zhang",
    "email": "mt1022.dev@gmail.com",
    "login": "mt1022",
    "description": "",
    "uuid": 10368050,
    "orcid": "0000-0002-4064-9432"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Biostrings",
      "version": ">= 2.60.0",
      "role": "Imports"
    },
    {
      "package": "IRanges",
      "version": ">= 2.34.0",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "version": ">= 1.14.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.3.5",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.4.11",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "reticulate",
      "role": "Suggests"
    }
  ],
  "_owner": "mt1022",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-24",
      "n": 3
    },
    {
      "week": "2025-27",
      "n": 2
    },
    {
      "week": "2025-29",
      "n": 2
    },
    {
      "week": "2025-30",
      "n": 7
    },
    {
      "week": "2025-31",
      "n": 7
    },
    {
      "week": "2025-34",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 3
    },
    {
      "week": "2025-40",
      "n": 1
    },
    {
      "week": "2025-44",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.2.0",
      "date": "2025-08-01"
    }
  ],
  "_topics": [
    "bioinformatics",
    "codon-usage",
    "machine-learning",
    "sequence-analysis"
  ],
  "_stars": 10,
  "_contributors": [
    {
      "user": "mt1022",
      "count": 203,
      "uuid": 10368050
    },
    {
      "user": "creaturemoon",
      "count": 28,
      "uuid": 103840889
    }
  ],
  "_userbio": {
    "uuid": 10368050,
    "type": "user",
    "name": "Hong Zhang"
  },
  "_downloads": {
    "count": 237,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cubar"
  },
  "_devurl": "https://github.com/mt1022/cubar",
  "_pkgdown": "https://mt1022.github.io/cubar/",
  "_searchresults": 23,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/cubar.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/mt1022/cubar",
  "_realowner": "mt1022",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.0",
      "date": "2023-07-17"
    },
    {
      "version": "0.4.2",
      "date": "2023-11-18"
    },
    {
      "version": "0.5.0",
      "date": "2024-01-09"
    },
    {
      "version": "0.6.0",
      "date": "2024-07-04"
    },
    {
      "version": "1.0.0",
      "date": "2024-08-01"
    },
    {
      "version": "1.1.0",
      "date": "2024-12-07"
    },
    {
      "version": "1.2.0",
      "date": "2025-08-19"
    }
  ],
  "_exports": [
    "ca_pairs",
    "check_cds",
    "codon_diff",
    "codon_optimize",
    "count_codons",
    "create_codon_table",
    "est_aau",
    "est_csc",
    "est_optimal_codons",
    "est_rscu",
    "est_trna_weight",
    "extract_trna_gcn",
    "get_aau",
    "get_cai",
    "get_codon_table",
    "get_cscg",
    "get_dp",
    "get_enc",
    "get_fop",
    "get_gc",
    "get_gc3s",
    "get_gc4d",
    "get_tai",
    "plot_ca_pairs",
    "rev_comp",
    "seq_to_codons",
    "show_codon_tables",
    "slide",
    "slide_apply",
    "slide_codon",
    "slide_plot"
  ],
  "_datasets": [
    {
      "name": "aa2codon",
      "title": "amino acids to codons",
      "object": "aa2codon",
      "class": [
        "data.frame"
      ],
      "fields": [
        "amino_acid",
        "codon"
      ],
      "rows": 64,
      "table": true,
      "tojson": true
    },
    {
      "name": "human_mt",
      "title": "human mitochondrial CDS sequences",
      "object": "human_mt",
      "class": [
        "DNAStringSet"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "yeast_cds",
      "title": "yeast CDS sequences",
      "object": "yeast_cds",
      "class": [
        "DNAStringSet"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "yeast_exp",
      "title": "yeast mRNA expression levels",
      "object": "yeast_exp",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "gene_id",
        "gene_name",
        "fpkm"
      ],
      "rows": 6685,
      "table": true,
      "tojson": true
    },
    {
      "name": "yeast_half_life",
      "title": "Half life of yeast mRNAs",
      "object": "yeast_half_life",
      "class": [
        "data.frame"
      ],
      "fields": [
        "gene_id",
        "gene_name",
        "half_life"
      ],
      "rows": 3888,
      "table": true,
      "tojson": true
    },
    {
      "name": "yeast_trna",
      "title": "yeast tRNA sequences",
      "object": "yeast_trna",
      "class": [
        "RNAStringSet"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    },
    {
      "name": "yeast_trna_gcn",
      "title": "yeast tRNA gene copy numbers (GCN)",
      "object": "yeast_trna_gcn",
      "class": [
        "table"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "aa2codon",
      "title": "amino acids to codons",
      "topics": [
        "aa2codon"
      ]
    },
    {
      "page": "ca_pairs",
      "title": "Generate codon-anticodon pairing relationship",
      "topics": [
        "ca_pairs"
      ]
    },
    {
      "page": "check_cds",
      "title": "Quality control and preprocessing of coding sequences",
      "topics": [
        "check_cds"
      ]
    },
    {
      "page": "codon_diff",
      "title": "Differential codon usage analysis",
      "topics": [
        "codon_diff"
      ]
    },
    {
      "page": "codon_optimize",
      "title": "Optimize codon usage in coding sequences",
      "topics": [
        "codon_optimize"
      ]
    },
    {
      "page": "count_codons",
      "title": "Count codon frequencies in coding sequences",
      "topics": [
        "count_codons"
      ]
    },
    {
      "page": "create_codon_table",
      "title": "Create custom codon table from amino acid-codon mapping",
      "topics": [
        "create_codon_table"
      ]
    },
    {
      "page": "est_aau",
      "title": "Estimate Amino Acid Usage Frequencies of CDSs.",
      "topics": [
        "est_aau"
      ]
    },
    {
      "page": "est_csc",
      "title": "Estimate Codon Stabilization Coefficient",
      "topics": [
        "est_csc"
      ]
    },
    {
      "page": "est_optimal_codons",
      "title": "Identify optimal codons using statistical modeling",
      "topics": [
        "est_optimal_codons"
      ]
    },
    {
      "page": "est_rscu",
      "title": "Estimate Relative Synonymous Codon Usage (RSCU)",
      "topics": [
        "est_rscu"
      ]
    },
    {
      "page": "est_trna_weight",
      "title": "Estimate tRNA weights for TAI calculation",
      "topics": [
        "est_trna_weight"
      ]
    },
    {
      "page": "extract_trna_gcn",
      "title": "Extract tRNA gene copy numbers from nature tRNA sequences",
      "topics": [
        "extract_trna_gcn"
      ]
    },
    {
      "page": "get_aau",
      "title": "Amino Acid Usage",
      "topics": [
        "get_aau"
      ]
    },
    {
      "page": "get_cai",
      "title": "Calculate Codon Adaptation Index (CAI)",
      "topics": [
        "get_cai"
      ]
    },
    {
      "page": "get_codon_table",
      "title": "Retrieve codon table by NCBI genetic code ID",
      "topics": [
        "get_codon_table"
      ]
    },
    {
      "page": "get_cscg",
      "title": "Mean Codon Stabilization Coefficients",
      "topics": [
        "get_cscg"
      ]
    },
    {
      "page": "get_dp",
      "title": "Deviation from Proportionality",
      "topics": [
        "get_dp"
      ]
    },
    {
      "page": "get_enc",
      "title": "Calculate effective number of codons (ENC)",
      "topics": [
        "get_enc"
      ]
    },
    {
      "page": "get_fop",
      "title": "Calculate fraction of optimal codons (Fop)",
      "topics": [
        "get_fop"
      ]
    },
    {
      "page": "get_gc",
      "title": "Calculate GC content of coding sequences",
      "topics": [
        "get_gc"
      ]
    },
    {
      "page": "get_gc3s",
      "title": "GC contents at synonymous 3rd codon positions",
      "topics": [
        "get_gc3s"
      ]
    },
    {
      "page": "get_gc4d",
      "title": "GC contents at 4-fold degenerate sites",
      "topics": [
        "get_gc4d"
      ]
    },
    {
      "page": "get_tai",
      "title": "Calculate tRNA Adaptation Index (TAI)",
      "topics": [
        "get_tai"
      ]
    },
    {
      "page": "human_mt",
      "title": "human mitochondrial CDS sequences",
      "topics": [
        "human_mt"
      ]
    },
    {
      "page": "plot_ca_pairs",
      "title": "Plot codon-anticodon pairing relationship",
      "topics": [
        "plot_ca_pairs"
      ]
    },
    {
      "page": "rev_comp",
      "title": "Generate reverse complement sequences",
      "topics": [
        "rev_comp"
      ]
    },
    {
      "page": "seq_to_codons",
      "title": "Convert a coding sequence to a codon vector",
      "topics": [
        "seq_to_codons"
      ]
    },
    {
      "page": "show_codon_tables",
      "title": "Display available genetic code tables",
      "topics": [
        "show_codon_tables"
      ]
    },
    {
      "page": "slide",
      "title": "Generate sliding window intervals",
      "topics": [
        "slide"
      ]
    },
    {
      "page": "slide_apply",
      "title": "apply a cub index to a sliding window",
      "topics": [
        "slide_apply"
      ]
    },
    {
      "page": "slide_codon",
      "title": "Generate sliding windows for codon-level analysis",
      "topics": [
        "slide_codon"
      ]
    },
    {
      "page": "slide_plot",
      "title": "plot sliding window codon usage",
      "topics": [
        "slide_plot"
      ]
    },
    {
      "page": "yeast_cds",
      "title": "yeast CDS sequences",
      "topics": [
        "yeast_cds"
      ]
    },
    {
      "page": "yeast_exp",
      "title": "yeast mRNA expression levels",
      "topics": [
        "yeast_exp"
      ]
    },
    {
      "page": "yeast_half_life",
      "title": "Half life of yeast mRNAs",
      "topics": [
        "yeast_half_life"
      ]
    },
    {
      "page": "yeast_trna",
      "title": "yeast tRNA sequences",
      "topics": [
        "yeast_trna"
      ]
    },
    {
      "page": "yeast_trna_gcn",
      "title": "yeast tRNA gene copy numbers (GCN)",
      "topics": [
        "yeast_trna_gcn"
      ]
    }
  ],
  "_readme": "https://github.com/mt1022/cubar/raw/HEAD/README.md",
  "_rundeps": [
    "BiocGenerics",
    "Biostrings",
    "cli",
    "cpp11",
    "crayon",
    "data.table",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "IRanges",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "rlang",
    "S4Vectors",
    "S7",
    "scales",
    "Seqinfo",
    "vctrs",
    "viridisLite",
    "withr",
    "XVector"
  ],
  "_vignettes": [
    {
      "source": "codon_optimization.Rmd",
      "filename": "codon_optimization.html",
      "title": "Codon optimization",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Evironment setup",
        "Optimization strategies",
        "\"naive\" method",
        "\"IDT\" method",
        "\"CodonTransformer\" method",
        "Splice site detection",
        "Recommendations",
        "References"
      ],
      "created": "2025-07-01 01:07:05",
      "modified": "2025-08-01 13:16:24",
      "commits": 4
    },
    {
      "source": "cubar.Rmd",
      "filename": "cubar.html",
      "title": "Get started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Sequences and the Genetic Code",
        "Codon usage indices",
        "Effective Number of Codons (ENC)",
        "Fraction of optimal codons (Fop)",
        "Codon Adaptation Index (CAI)",
        "tRNA Adaptation Index (tAI)",
        "Indices that require additional data",
        "Correlation between indices",
        "Utilities",
        "Test of differential usage",
        "Codon usage optimization",
        "Sliding-window analysis",
        "FAQ"
      ],
      "created": "2023-12-26 01:29:38",
      "modified": "2025-07-01 01:07:05",
      "commits": 11
    },
    {
      "source": "non_standard_genetic_code.Rmd",
      "filename": "non_standard_genetic_code.html",
      "title": "Non-standard genetic code",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Main analysis"
      ],
      "created": "2023-11-21 07:14:32",
      "modified": "2024-07-29 04:40:39",
      "commits": 2
    }
  ],
  "_score": 6.4920616045126,
  "_indexed": true,
  "_nocasepkg": "cubar",
  "_universes": [
    "mt1022"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0.9000",
      "date": "2026-05-27T10:23:00.000Z",
      "distro": "noble",
      "commit": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
      "fileid": "cfed5db527d7d8b9526ec2c68008b4678b668a6d9388fe9a7d64a1d52a8a6084",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mt1022/actions/runs/26505174264"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0.9000",
      "date": "2026-05-27T10:23:01.000Z",
      "distro": "noble",
      "commit": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
      "fileid": "69d9e709fa493bebe03e8fde710e3e5f6afd278116f77f91adf8c3958a62ffba",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mt1022/actions/runs/26505174264"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.0.9000",
      "date": "2026-05-27T10:22:49.000Z",
      "commit": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
      "fileid": "17eaa1bf8387aa0ad842f3ef8e53c4231a1d16c57734b4afdc2b4bfe6f385c60",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mt1022/actions/runs/26505174264"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.0.9000",
      "date": "2026-05-27T10:22:59.000Z",
      "commit": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
      "fileid": "528496a5f2ba7e81f358a64be662135760a36cb4eba58ffa3cfa28b500d49500",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mt1022/actions/runs/26505174264"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.0.9000",
      "date": "2026-05-27T10:23:23.000Z",
      "commit": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
      "fileid": "5e200751a070cdcaede114d7d56db9574c6caf585cb280b676239f37030607ba",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mt1022/actions/runs/26505174264"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.0.9000",
      "date": "2026-05-27T10:22:15.000Z",
      "commit": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
      "fileid": "bcc73bb9be9949b158a4d0fa03538c1e592ffbdbde35f7b8a759af02829c1e54",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mt1022/actions/runs/26505174264"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.0.9000",
      "date": "2026-05-27T10:21:56.000Z",
      "commit": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
      "fileid": "16854a96a1231d6c3ee7baa0ad238a30f805432cf9a08a2cc82ace4e6e4979a3",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mt1022/actions/runs/26505174264"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.0.9000",
      "date": "2026-05-27T10:22:18.000Z",
      "commit": "350b29549e13dbfd95f9599af544e7fdc1fe885e",
      "fileid": "57d0b6f8609d01041f0f7ac229251cbc9ec3c3290d5465890e88123d7f767e74",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/mt1022/actions/runs/26505174264"
    }
  ]
}