Skip to content

Instantly share code, notes, and snippets.

@cmdcolin
cmdcolin / cactus241_pruned.nh
Last active June 27, 2026 00:46
F12 CDS alignment + NJ tree (cactus241 extract, cetacean pseudogenization)
(((hg38:0.14961451,Mus_musculus:0.44906740000000006):0.0309181,(((Vicugna_pacos:0.0161542,Camelus_dromedarius:0.01271789):0.0985471,((Hippopotamus_amphibius:0.065968,(Balaenoptera_bonaerensis:0.01679449,((Neophocaena_asiaeorientalis:0.00884101,Delphinapterus_leucas:0.00659375):0.00365908,Tursiops_truncatus:0.01144293):0.013062240000000001):0.0297733):0.00895057,Bos_taurus:0.127401772):0.02603271):0.042973,((Canis_lupus:0.08975158,Leptonychotes_weddellii:0.06130375):0.0858961,Equus_caballus:0.11125822):0.00536403):0.04351754):0.0186332,Trichechus_manatus:0.17252018);
@cmdcolin
cmdcolin / config-withnh.json
Last active June 26, 2026 23:36
react-msaview JBrowse combined-view demo config (temp for testing)
{
"plugins": [
{
"name": "MsaView",
"url": "https://jbrowse.org/plugins/jbrowse-plugin-msaview/dist/jbrowse-plugin-msaview.umd.production.min.js"
}
],
"assemblies": [
{
"name": "hg38",
[
{
"role": "user",
"parts": [
{
"text": "<session_context>\nThis is the Gemini CLI. We are setting up the context for our chat.\nToday's date is Wednesday, April 15, 2026 (formatted according to the user's locale).\nMy operating system is: linux\nThe project's temporary directory is: /home/cdiesh/.gemini/tmp/jbrowse-components\n- **Workspace Directories:**\n - /home/cdiesh/src/jbrowse-components\n- **Directory Structure:**\n\nShowing up to 200 items (files + folders). Folders or files indicated with ... contain more items not shown, were ignored, or the display limit (200 items) was reached.\n\n/home/cdiesh/src/jbrowse-components/\n├───_typos.toml\n├───.editorconfig\n├───.gitignore\n├───.ignore\n├───.prettierignore\n├───.prettierrc.json\n├───babel.config.cjs\n├───CHANGELOG.md\n├───CLAUDE.md\n├───CODE_OF_CONDUCT.md\n├───codecov.yml\n├───CONTRIBUTING.md\n├───eslint.config.mjs\n├───global.d.ts\n├───integration.test.js\n├───jest.config.js\n├───LICENSE\n├───package.json\n├───pnpm-lock.yam
@cmdcolin
cmdcolin / crashing_out.txt
Last active March 20, 2026 17:11
what it looks like when google gemini cli is 'crashing out'
▝▜▄ Gemini CLI v0.34.0
▝▜▄
▗▟▀ Signed in with Google: colin.diesh@gmail.com /auth
▝▀ Plan: Gemini Code Assist for individuals /upgrade
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ We're making changes to Gemini CLI that may impact your workflow. │
│ What's Changing: We are adding more robust detection of policy-violating use cases and restricting models for free tier users. │
│ How it affects you: If you need use of Gemini pro models you will need to upgrade to a supported paid plan. │
@cmdcolin
cmdcolin / prepare.sh
Last active September 16, 2025 13:39
prepare_cancer_giab
#!/bin/bash
export OUT=/var/www/html/jbrowse2
sudo apt-get update
sudo apt-get install nodejs wget apache2 tabix samtools minimap2
sudo service apache2 start
## confirm node.js greater than or equal to v18 is installed
node --version
sudo npm install -g @jbrowse/cli
## confirm that the jbrowse CLI is installed
jbrowse --version
@cmdcolin
cmdcolin / prepare_sv.sh
Last active October 15, 2025 19:38
prepare_sv.sh
#!/bin/bash
export OUT=/var/www/html/jbrowse2
sudo apt-get update
sudo apt-get install nodejs wget apache2 tabix samtools minimap2
sudo service apache2 start
## confirm node.js greater than or equal to v18 is installed
node --version
sudo npm install -g @jbrowse/cli
@cmdcolin
cmdcolin / prepare.sh
Last active May 29, 2026 03:40
current protocols synteny
#!/bin/bash
# Build a 3-genome Helicobacter pylori synteny demo for JBrowse 2.
# Requires: datasets (NCBI), samtools, minimap2, bgzip, tabix, and @jbrowse/cli.
set -euo pipefail
## this should be an absolute path. this one is a web accessible directory for apache2
export OUT=/var/www/html/jbrowse2
## download and unzip NCBI genomes (filenames match the strain each accession is renamed to below)
@cmdcolin
cmdcolin / split_stockholm_msa.py
Created July 3, 2025 17:11
Split large multi-stockholm file into different entries
import os
import re
import sys
# Check if command line argument is provided
if len(sys.argv) < 2:
print("Usage: python script.py <input_file> [output_directory]")
sys.exit(1)
input_file = sys.argv[1]
@cmdcolin
cmdcolin / gist:ac2d61cf17ea0077e9bd73d83e26da9e
Created June 2, 2025 00:31
avante.nvim+claude chat log from chakra->vanilla rewrite

can you remove all chakra styles and just use unstyled divs for example

I'll help you remove all Chakra UI styles from the small-card.tsx file and replace them with unstyled divs. Let me analyze what needs to be changed.

I need to check the util.ts file first to understand the arePropsEqual function that's being used in the component.

╭─  view  succeeded
│ running tool
@cmdcolin
cmdcolin / rifts.md
Last active May 26, 2025 14:06
Examples of rifts in software ecosystems

GTF to GFF conversion in bioinformatics

These are two very similar formats. But some people are still just very stuck on GTF, despite being less well defined than GFF.

CJS (commonjs) to ESM (ecmascript modules) in javascript

Just replace your require with import right? Sometimes it works, sometimes it doesn't. There is a lot of insanity that goes on, and it is really hard to do a proper technical analysis because ESM is pretty strict while CJS and the