save_alignment_images: Save alignment visualizations to image files

View source: R/io.R

save_alignment_imagesR Documentation

Save alignment visualizations to image files

Description

Take a list of alignments, one per locus, and save a plot of each to a separate image file in a specified directory. If any of the per-locus alignment objects is NA it will be skipped. These are produced by summarize_dataset via align_alleles.

Usage

save_alignment_images(
  alignments,
  dp,
  image.func = "png",
  width = 1600,
  height = 1200,
  res = 150
)

Arguments

alignments

list of MSA alignment objects, such as created by summarize_dataset via align_alleles. The name of each alignment will be used for its filename.

dp

output directory path.

image.func

name of function to call for saving each image.

width

integer width of image.

height

integer height of image.

res

integer resolution of image in PPI.


ShawHahnLab/chiimp documentation built on Aug. 20, 2023, 1:41 a.m.