split_by_chrom: Split a file per chromosome

View source: R/util.R

split_by_chromR Documentation

Split a file per chromosome

Description

Convenience function to split an input file per chromosome. All it requires is that the infile has as first column chromosome specification. The output files will be named outdir/prefixCHROMNUMBERpostfix

Usage

split_by_chrom(infile, prefix, postfix, outdir, chrom_file)

Arguments

infile

The file to be split

prefix

Prefix of the output file

postfix

Postfix of the output file

outdir

Directory where the output files are to be written

chrom_file

A simple list of chromosomes to be considered

Author(s)

sd11


shaghayeghsoudi/DPclust3p_Customised documentation built on March 18, 2022, 5:28 a.m.