coalispr.resources.share.clean_fasta

Script to minimize chromosome names in fasta files.

Functions

clean_fasta(infile, tag, outname)

Simplify chromosome naming to initial number/symbol

main()

Module Contents

coalispr.resources.share.clean_fasta.clean_fasta(infile, tag, outname)

Simplify chromosome naming to initial number/symbol

Parameters:
  • infile (str) – path to fasta file with redundant/long/confusing sequence titles.

  • tag (str) – Filename-addition (default: ‘_chr’) marking the output fasta file (when outname is not given).

  • outname – Name of resulting fasta file to save.

Return type:

Fasta file with <outname> or name of <infile> plus <_tag>.

coalispr.resources.share.clean_fasta.main()