View poetry-editable.fish
This file contains 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
# Defined in - @ line 0 | |
function poetry-editable --description "Do 'pip install -e' for poetry project" | |
echo "= RUN poetry build" | |
poetry build | |
set ver (poetry version -s) | |
cd dist/ | |
tar zxvf *-$ver.tar.gz | |
cd .. | |
mv setup.py setup.py.bak |
View whichpy.fish
This file contains 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
# Defined in - @ line 0 | |
function whichpy --description "Print python package information" | |
python -c "try: | |
im = __import__('importlib.metadata', fromlist=['metadata']) | |
except ImportError: | |
im = __import__('importlib_metadata') | |
pkg = '$argv[1]' | |
import sys, requests, json | |
from datetime import datetime |
View sift4g_annotator
This file contains 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 | |
# | |
# Wrapper script for SIFT4G_annotator | |
# | |
# | |
# Program Parameters | |
# | |
import os | |
import subprocess |
View Makefile
This file contains 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
# get all targets from subdirectory | |
SUBDIR := subdir | |
TARGETS := $(shell make -C $(SUBDIR) -rpn | sed -n -e "/^$$/ { n ; /^[^ .\#%][^ ]\*:/ { s/:.\*$$// ; p ; } ; }" ) | |
# default target | |
all: | |
# pass all targets to subdirectory | |
%: |
View vcf2maf.pl
This file contains 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 perl | |
# vcf2maf - Convert a VCF into a MAF by mapping each variant to only one of all possible gene isoforms | |
use strict; | |
use warnings; | |
use IO::File; | |
use Getopt::Long qw( GetOptions ); | |
use Pod::Usage qw( pod2usage ); | |
use File::Path qw( mkpath ); |
View jlab.py
This file contains 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 | |
from __future__ import print_function | |
import yaml, sys | |
from os import path, makedirs, listdir, remove | |
from time import sleep | |
from shutil import copy2 | |
from pyppl import commands, utils | |
from subprocess import list2cmdline | |
commands._desc = 'A set of utilities for JupyterLab.' |
View cloudSettings
This file contains 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
{"lastUpload":"2020-04-09T18:01:08.444Z","extensionVersion":"v3.4.3"} |
View __fish_move_last.fish
This file contains 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
# for prevd and nextd, cd - | |
function __fish_move_last -d "Move the last element of a directory history from src to dest" | |
set -l src $argv[1] | |
set -l dest $argv[2] | |
set -l size_src (count $$src) | |
if test $size_src = 0 | |
# Cannot make this step |
View Add_Open_Command_Window_Here_as_Administrator.reg
This file contains 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
Windows Registry Editor Version 5.00 | |
; Created by: Shawn Brink | |
; http://www.sevenforums.com | |
; Tutorial: http://www.sevenforums.com/tutorials/47415-open-command-window-here-administrator.html | |
[-HKEY_CLASSES_ROOT\Directory\shell\runas] |
View qst
This file contains 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 | |
from subprocess import check_output | |
from re import search | |
cmd = ['qstat', '-xml'] | |
# get the xml output | |
output = check_output (cmd) | |
keys = [] # the feature names | |
vals = [] # the jobs including all features | |
job = [] # the features |
NewerOlder