Skip to content

Instantly share code, notes, and snippets.

View rpetit3's full-sized avatar
🐫
I may be slow to respond.

Robert A. Petit III rpetit3

🐫
I may be slow to respond.
View GitHub Profile
@rpetit3
rpetit3 / create-user
Created November 15, 2023 18:26
create-user - simple script to create a basic user in Debian
#! /bin/bash
if [[ $# == 0 ]]; then
echo ""
echo "create-user NEW_USERNAME"
echo ""
echo "Example Command"
echo "create-user robert_petit"
echo ""
exit
@rpetit3
rpetit3 / reset-password
Last active November 15, 2023 18:25
reset-password - simple script to reset password of user in Debian
#! /bin/bash
if [[ $# == 0 ]]; then
echo ""
echo "reset-password NEW_USERNAME"
echo ""
echo "Example Command"
echo "reset-password robert_petit"
echo ""
exit
@rpetit3
rpetit3 / create-admin
Last active November 15, 2023 18:23
create-admin - simple script to create admin users on Debian
#! /bin/bash
if [[ $# == 0 ]]; then
echo ""
echo "create-admin NEW_USERNAME"
echo ""
echo "Example Command"
echo "create-admin robert_petit"
echo ""
exit
@rpetit3
rpetit3 / private-biocontainers.txt
Created January 28, 2023 18:58
A list of assumed Biocontainers that are set to private
3d-dna
3seq
actc
aeon
agc
agouti
alcor
alignoth
ampligone
anansescanpy
@rpetit3
rpetit3 / quay-namespace-info.py
Created January 25, 2023 19:39
A simple script to query API to get public/private status of all repos under a namespace.
#!/usr/bin/env python
"""
A simple script to query API to get public/private status of all repos under a namespace.
Caveat being, without an API key, you will only ever see the public repos.
"""
PROGRAM = 'quay-namespace-info'
VERSION = '1.0.0'
QUAY_API_URL= 'https://quay.io/api/v1/repository'
@rpetit3
rpetit3 / teton.config
Created June 16, 2022 17:24
nextflow config for teton
/*
This file includes default values for Teton.
*/
process {
executor = 'slurm'
queue = 'teton,moran'
scratch = params.slurm_use_scratch
time = 60.m
clusterOptions = '--account healthdatasci'
@rpetit3
rpetit3 / .bashrc
Created June 7, 2022 18:01
bash-full-of-colors with conda support
#!/usr/bin/env bash
# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@rpetit3
rpetit3 / submit-cgc.py
Last active February 17, 2022 22:01
Example script for submitting and downloading results through CGC pipeline
#! /usr/bin/env python3
if __name__ == '__main__':
import os
import sys
import time
import argparse as ap
import sevenbridges as sbg
from sevenbridges.errors import SbgError
@rpetit3
rpetit3 / bam-to-cov.sh
Created January 7, 2022 16:28
per-base coverage from bam file
#! /bin/bash
GS_PATH=$1
# Copy Local
gsutil -q cp ${GS_PATH} ./
LOCAL_FILE=$(basename ${GS_PATH})
OUTDIR="./"
if echo "${LOCAL_FILE}" | grep ".rg.sorted.bam"; then
OUTDIR="./nanopore"
else
@rpetit3
rpetit3 / test-scrubber.sh
Created November 10, 2021 16:28
Quick script to compare two versions of sra-human-scrubber
#! /bin/bash
SCRUBBER_DB=${SCRUBBER_SHARE}/data/human_filter.db
# Current scrubber
echo "Run test on current Scrubber"
which scrub.sh
scrub.sh test
echo "Run test on PR Scrubber"