This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# set -xe | |
set -e | |
declare -r samples_required=${1} | |
declare -r interval_length=${2} | |
# | |
# [hg38] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import subprocess | |
import json | |
a = sys.argv[1] | |
b = sys.argv[2] | |
class SetEncoder(json.JSONEncoder): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chr1 110 420 pr2-1 300 | |
chr1 450 750 pr2-2 200 | |
chr1 950 1050 pr2-3 300 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chr1 100 200 pr1-1 100 | |
chr1 300 400 pr1-2 200 | |
chr1 400 500 pr1-3 100 | |
chr1 700 800 pr1-4 250 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
Create an indexed tabix file from a Pandas dataframe | |
via temporary intermediate file and subprocess | |
''' | |
import os | |
import io | |
import pandas as pd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
Create an indexed tabix file from a Pandas dataframe | |
via "pure" Python (i.e., no subprocess) | |
''' | |
import os | |
import io | |
import pandas as pd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
File autogenerated by gengetopt version 2.22.1 | |
generated with the following command: | |
gengetopt --file-name=cmdoptions | |
The developers of gengetopt consider the fixed text that goes in all | |
gengetopt output files to be in the public domain: | |
we make no copyright claims on it. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BigWig to BedGraph | |
$ wget -qO- https://www.encodeproject.org/files/ENCFF978IHV/@@download/ENCFF978IHV.bigWig > ENCFF978IHV.bigWig | |
$ bigWigToBedGraph ENCFF978IHV.bigWig ENCFF978IHV.bigWig.bg | |
BedGraph to Starch | |
$ starch --omit-signature ENCFF978IHV.bigWig.bg > ENCFF978IHV.bigWig.bg.starch | |
Compression ratio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editable" : false, | |
"zoomFixed" : false, | |
"trackSourceServers" : [ | |
"/api/v1", | |
"http://higlass.io/api/v1" | |
], | |
"exportViewUrl" : "/api/v1/viewconfs/", | |
"views" : [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editable" : false, | |
"zoomFixed" : false, | |
"trackSourceServers" : [ | |
"/api/v1", | |
"http://higlass.io/api/v1" | |
], | |
"exportViewUrl" : "/api/v1/viewconfs/", | |
"views" : [ | |
{ |