combined_header: Create a combined .bam header

View source: R/align_target.R

combined_headerR Documentation

Create a combined .bam header

Description

This function generates a combined header from multiple .bam files from different reference libraries (e.g. a split bacterial library). It is not intended for use by users.

Usage

combined_header(bam_files, header_file = "header_tmp.sam")

Arguments

bam_files

A character vector of the locations/file names of .bam files from which to combine the headers.

header_file

A file name and location for the output file for the combined header. This will be a .sam format file without any reads. Defaults to 'header_tmp.sam'.

Value

This function will return a combined header from all the supplied .bam files.


compbiomed/MetaScope documentation built on Nov. 5, 2024, 9:25 p.m.