bx.intervals.operations.concat module

Concatenate sets of intervals.

Preserves format of the first input – it is possible to concat two files that have different column orders. Of course, the meta-data of the second will be lost (and filled with a “.”). If all of the files (GenomicInteralReaders) are the same format, sameformat=True will preserve all columns of the first input, cuts extra columns on subsequent input, and pads missing columns. If sameformat=False then extra columns are filled with “.”.

bx.intervals.operations.concat.concat(readers, comments=True, header=True, sameformat=True)