This is an R script to calculate the 4 nucleotide frequencies across all samples of a FASTA file.
To obtain a copy of the required seqinr
library, execute the following:
R -e 'install.packages(c("seqinr"))'
To execute the script, run the following in the terminal:
$ Rscript script.R