This goes through the Lancet regions, parses them out into coordinate components, and makes each into a pre-extracted chunk, putting the resulting BED line in a BED file. I put the tumor data in red, and the normal data in blue. I have to cd into the directory where the chunk directories and the BED file are when doing this, to make sure that the relative paths in the BED file to the chunk directories are from where the BED file actually is.
Once I have the full BED file, I sort it first by the region start coordinate as a number, and then stably by the part of the contig name after the first 3 "chr" characters, to get the BED in coordinate order.
A remaining problem with this approach is that the chunk JSON files refer to the files in my Downloads directory, so if you open the track settings when looking at a region, it asks the server about those files and then pops up an error saying they aren't allowed to be accessed.
This attaches the left-right button stuff to the region description stuff so that the description updates when you go left and right.
It also includes chunk generation script changes to let you set palettes from the command line.
To do the demo today with the Lancet data I used this bit of Bash:
This goes through the Lancet regions, parses them out into coordinate components, and makes each into a pre-extracted chunk, putting the resulting BED line in a BED file. I put the tumor data in red, and the normal data in blue. I have to
cd
into the directory where the chunk directories and the BED file are when doing this, to make sure that the relative paths in the BED file to the chunk directories are from where the BED file actually is.Once I have the full BED file, I sort it first by the region start coordinate as a number, and then stably by the part of the contig name after the first 3 "chr" characters, to get the BED in coordinate order.
A remaining problem with this approach is that the chunk JSON files refer to the files in my
Downloads
directory, so if you open the track settings when looking at a region, it asks the server about those files and then pops up an error saying they aren't allowed to be accessed.