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
# Requires uvx https://docs.astral.sh/uv/guides/tools/#running-tools | |
# Run command below to fix the commits in your local, then force push | |
# to remote. | |
uvx git-filter-repo --commit-callback ' | |
if commit.author_name != b"budsonjelmont" or commit.author_email != b"[email protected]": | |
commit.author_name = b"budsonjelmont" | |
commit.author_email = b"[email protected]" | |
commit.committer_name = b"budsonjelmont" | |
commit.committer_email = b"[email protected]" | |
' |
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
set -x | |
# Create resources | |
docker network create --driver bridge alpine-net | |
docker run -dit --name alpine1 --network alpine-net alpine ash | |
docker run -dit --name alpine2 --network alpine-net alpine ash | |
docker network inspect alpine-net | |
# Test connectivity | |
docker exec -t alpine1 ping -c 3 alpine2 |
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
import boto3 | |
import json | |
region = "us-east-1" | |
account_id = 666666666666 | |
policy = { | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ |
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
import boto3 | |
dataset = 'genomes' | |
semver = '2.1.1' | |
import_arn = 'arn:aws:iam::[account_id]:role/service-role/[role_name]' | |
annot_store_name='gnomad_grch37' | |
annot_store_version_name= dataset + '_v' + str(semver).replace('.','_') | |
base_s3_uri = 's3://gnomad-public-us-east-1/release/' + str(semver) + '/vcf/' + dataset |
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 python3 | |
''' | |
gtf2bed.py converts GTF file to BED file. | |
Usage: gtf2bed.py {OPTIONS} [.GTF file] | |
History | |
Nov.5th 2012: | |
1. Allow conversion from general GTF files (instead of only Cufflinks supports). | |
2. If multiple identical transcript_id exist, transcript_id will be appended a string like "_DUP#" to separate. | |
''' |