Skip to content

Instantly share code, notes, and snippets.

View janxkoci's full-sized avatar

Jeňa Kočí janxkoci

View GitHub Profile
@janxkoci
janxkoci / boxplot_magrittr.ipynb
Last active October 23, 2019 09:50
This short tutorial shows an example of how to make boxplots with help of the magrittr package, with additional features (e.g. means)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@janxkoci
janxkoci / plink_pruning_prep.sh
Last active June 29, 2022 08:27
This simple script prepares your VCF dataset for pruning with Plink. It takes name of the input VCF as argument and produces new, annotated VCF.
@janxkoci
janxkoci / unfold_fasta.sh
Last active January 8, 2024 13:21
reformats fasta from multiline format with columns (aka folded fasta) into one-line-per-sequence format (aka unfolded fasta)
#!/bin/bash
FASTA="$1"
awk 'ORS = $1~/>/ ? RS:FS' $FASTA | sed 's/ >/\n>/g' | sed '2~2s/ //g'