This project pads nucleotide sequences.
The core function of this project is implemented as follows:
def seqpad(seq: Any) -> Any:
while len(seq) % 3 != 0:
seq += "N"
return seq
The project also provides a CLI that can also be accessed from within Python. For more information, read the help message that can be accessed through one of the two following ways.
# bash
python3 -m seqpad -h
# python
import seqpad
seqpad.main(['-h'])