Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import argparse
import collections
import csv
import itertools
import logging
import json
import os
import uuid
@jurgjn
jurgjn / bdg2bw
Last active August 1, 2019 16:20 — forked from taoliu/bdg2bw
bedGraph to bigWig
#!/bin/bash
# check commands: slopBed, bedGraphToBigWig and bedClip
which bedtools &>/dev/null || { echo "bedtools not found! Download bedTools: <http://code.google.com/p/bedtools/>"; exit 1; }
which bedGraphToBigWig &>/dev/null || { echo "bedGraphToBigWig not found! Download: <http://hgdownload.cse.ucsc.edu/admin/exe/>"; exit 1; }
which bedClip &>/dev/null || { echo "bedClip not found! Download: <http://hgdownload.cse.ucsc.edu/admin/exe/>"; exit 1; }
# end of checking
@jurgjn
jurgjn / BaseSpaceRunDownloader_v2a.py
Last active July 26, 2023 19:53
BaseSpaceRunDownloader
#!/usr/bin/python
# Force to use (system) python2
#!/usr/bin/env python
description = """\
Usage: BaseSpaceRunDownloader_v2.py -r <ProjectName> -a <AccessToken>
This is a modified version of the BaseSpace Python Run Downloader from Illumina. It takes
the project name (instead of the run id) and downloads base calls as fastq files (instead of
the image/intensity data).