Skip to content

Instantly share code, notes, and snippets.

View Creeki's full-sized avatar
:octocat:

Yuqi Creeki

:octocat:
View GitHub Profile
@z3tt
z3tt / penguins_rainclouds.R
Last active January 23, 2025 12:46
Polished raincloud plot using the Palmer penguins data
library(dplyr)
library(forcats)
library(ggplot2)
library(palmerpenguins)
library(ggtext)
library(colorspace)
library(ragg)
url <- "https://raw.githubusercontent.com/allisonhorst/palmerpenguins/master/man/figures/lter_penguins.png"
img <- magick::image_read((url))
@dceoy
dceoy / read_vcf.py
Last active February 17, 2025 16:19
[Python] Read VCF (variant call format) as pandas.DataFrame
#!/usr/bin/env python
import io
import os
import pandas as pd
def read_vcf(path):
with open(path, 'r') as f:
lines = [l for l in f if not l.startswith('##')]