This function merges two FASTA files (paternal and maternal) into a single output file, adding suffix identifiers to differentiate the sequences' origins.
merge_fasta_files(paternal_fa, maternal_fa, output_fa, tmp_dir = tempdir())No return value, called for side effect of creating the merged FASTA file.
The function adds "_paternal" suffix to sequence headers in the paternal file and "_maternal" suffix to sequence headers in the maternal file before concatenating them into a single output file.
if (FALSE) { # \dontrun{
merge_fasta_files(
paternal_fa = "path/to/paternal.fa",
maternal_fa = "path/to/maternal.fa",
output_fa = "path/to/merged.fa"
)
} # }