Skip to content

Instantly share code, notes, and snippets.

View kkapuria3's full-sized avatar
📝
editing Readme.md

Karan Kapuria kkapuria3

📝
editing Readme.md
View GitHub Profile
@kdaily
kdaily / add_to_vcf_header.py
Last active January 6, 2023 16:50
Add lines to a VCF header.
"""Add lines to VCF header.
Does not verify the format of header lines or modify the following data in any way.
This is a solution for adding the PEDIGREE information for the cancer-mode of snpEff.
Example: python add_to_vcf_header.py original.vcf '##PEDIGREE=<Derived=TUMOR,Original=NORMAL>'
"""
@dasgoll
dasgoll / go-install.md
Created January 20, 2018 03:27 — forked from diegopacheco/go-install.md
How to Install GO Lang on CentOS / Amazon Linux?

How to Install GO Lang on CentOS / Amazon Linux?

sudo wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
tar -xzf go1.4.2.linux-amd64.tar.gz 
export GOROOT=PATH_WHERE_YOU_EXTRACT_GO
export PATH=$PATH:$GOROOT/bin 
export GOBIN=$GOROOT/bin 
mkdir ~/golang/ 
export GOPATH=~/golang/ 
@elowy01
elowy01 / BCFtools cheat sheet
Last active June 29, 2024 05:24
BCFtools cheat sheet
*bcftools filter
*Filter variants per region (in this example, print out only variants mapped to chr1 and chr2)
qbcftools filter -r1,2 ALL.chip.omni_broad_sanger_combined.20140818.snps.genotypes.hg38.vcf.gz
*printing out info for only 2 samples:
bcftools view -s NA20818,NA20819 filename.vcf.gz
*printing stats only for variants passing the filter:
bcftools view -f PASS filename.vcf.gz
@tdamsma
tdamsma / migrating-away-from-docker-desktop.md
Last active April 30, 2024 10:17
Running VSCode remote containers on windows without docker desktop

Running VSCode remote containers on windows without docker desktop

Due to the license issues with docker desktop and the fact that you don't really need this buggy bit of software, this guide will walk you through the steps to use VSCode+remote-containers in combination with WSL2 without using docker desktop.

Get rid of docker desktop

Only if you have docker desktop currently installed of course

Uninstall docker desktop application