Skip to content

Instantly share code, notes, and snippets.

View rpetit3's full-sized avatar
🐫
Yo!

Robert A. Petit III rpetit3

🐫
Yo!
View GitHub Profile
@rpetit3
rpetit3 / mbow-bactopia-tool-atb
Created June 18, 2025 17:34
A script to submit a SLURM job to run Bactopia Tools on ATB data
#! /bin/bash
# A script to submit a SLURM job to run Bactopia Tools on ATB data
# Expected Options:
# 1: Bactopia directory
# 2: Bactopia Tool
# 3: config file
# 4: A specific profile to use
# 5: A specific account to use
# 6: Where to cache singularity/apptainer images
BACTOPIADIR=${1}
@rpetit3
rpetit3 / mbow-bactopia-atb-setup
Last active June 11, 2025 18:17
An sbatch script download and format ATB assemblies for Bactopia on Medicine Bow
#! /bin/bash
# A script to submit a SLURM job to run bactopia-atb-downloader and bactopia-atb-formatter
# Expected Options:
# 1: Organism to download
# 2: ARCC Account
# 3: Output Directory
ORGANISM="${1}"
LOWERCASE_ORGANISM="${ORGANISM,,}"
UNDERSCORE_ORGANISM="${LOWERCASE_ORGANISM// /_}"
ACCOUNT=${2}
@rpetit3
rpetit3 / saureus-report.tsv
Created January 24, 2025 18:51
A Bactopia report for playing with the command-line
sample rank reason genome_size species runtype original_runtype mlst_scheme mlst_st assembler_total_contig assembler_total_contig_length assembler_max_contig_length assembler_mean_contig_length assembler_median_contig_length assembler_min_contig_length assembler_n50_contig_length assembler_l50_contig_count assembler_num_contig_non_acgtn assembler_contig_percent_a assembler_contig_percent_c assembler_contig_percent_g assembler_contig_percent_t assembler_contig_percent_n assembler_contig_non_acgtn assembler_contigs_greater_1m assembler_contigs_greater_100k assembler_contigs_greater_10k assembler_contigs_greater_1k assembler_percent_contigs_greater_1m assembler_percent_contigs_greater_100k assembler_percent_contigs_greater_10k assembler_percent_contigs_greater_1k is_paired is_compressed annotator_total_CDS annotator_total_rRNA annotator_total_tRNA qc_original_total_bp qc_original_coverage qc_original_read_total qc_original_read_min qc_original_read_mean qc_original_read_std qc_original_read_median qc_original_re
@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