<p>No, there's no simple way to do that without someone writing a program tailored toward it that handles the footer section and recreates the zoom levels that follow the compressed blocks of intervals. If you wanted to write such a program, modifying bigWigCat from <a href="http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64.v369/" rel="nofollow noreferrer">Kent's tools</a> would be a reasonable tack.</p>

CC BY-SA 4.0
2019-08-26T18:07:10.447Z
Seems reasonable, thanks.
Alex Reynolds
CC BY-SA 4.0
2019-08-26T07:18:14.067Z
2019-08-26T07:18:14.067Z
Devon Ryan
<p>Given a set of bigBed files, each of which are disjoint to each other and in lexicographical ("sort-bed") sort order, I would like to know if there is a way to concatenate these archives efficiently.</p>

<p>Presuming I know the order in which to specify files (to constrain the order of intervals), is there a way to concatenate them directly, <em>i.e.,</em> without first extracting them to bed, concatenating the extracted files, and remaking a bigBed file?</p>

<ucsc>
Efficiently concatenating disjoint, ordered bigBed files
# Efficiently concatenating disjoint, ordered bigBed files

(Asked by: username_0 on 2019-08-23)

Given a set of bigBed files, each of which are disjoint to each other and in lexicographical ("sort-bed") sort order, I would like to know if there is a way to concatenate these archives efficiently.

Presuming I know the order in which to specify files (to constrain the order of intervals), is there a way to concatenate them directly, *i.e.,* without first extracting them to bed, concatenating the extracted files, and remaking a bigBed file?

**Tags:** ucsc

---

## 1 answers

### Answer by username_1 on 2019-08-26. Score: 2 | Accepted answer

No, there's no simple way to do that without someone writing a program tailored toward it that handles the footer section and recreates the zoom levels that follow the compressed blocks of intervals. If you wanted to write such a program, modifying bigWigCat from [Kent's tools](http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64.v369/) would be a reasonable tack.

> **Comments:**
> **username_0**: Seems reasonable, thanks.  

---

