#file #sequence #arguments #codonrs

bin+lib codonrs

Calculate relative synonymous codon usage for coding DNA sequences in a fasta file

6 releases

new 0.2.6 May 9, 2025
0.2.5 May 8, 2025
0.2.4 Apr 3, 2025
0.2.3 Mar 30, 2025
0.1.0 Mar 24, 2025

#212 in Biology

Download history 232/week @ 2025-03-22 281/week @ 2025-03-29 55/week @ 2025-04-05 6/week @ 2025-04-12 1/week @ 2025-04-19 63/week @ 2025-05-03

71 downloads per month

GPL-3.0 license

33KB
413 lines

codonrs

codonrs is a small crate for rapidly calculating relative synonymous codon usage (RSCU) values for coding DNA sequences, for analyses of codon usage bias. The crate can be used as a command-line utility with the codonrs command, or used in other crates via the analysis mod.

Command-line usage

Required arguments

Input: -i/--input: A multi-fasta file with the sequences to be analysed as individual fasta entries. Sequences whose length is not a multiple of three will be ignored

Output: -o/--output: Prefix for the output files. Three files are output by default:

  • prefix_codon.csv: raw codon counts for each CDS.
  • prefix_amino_acids.csv: amino acid counts for each CDS, determined from the chosen translation table.
  • prefix_rscu.csv: calculated RSCU values for each CDS.

Optional arguments

Translation table: -t/--table: Integer representing NCBI translation table to be used for codon counts and RSCU calculation. See tables here. Defaults to 1: the standard code.

License: GPL-3.0

Dependencies

~20–30MB
~447K SLoC