Skip to content

Instantly share code, notes, and snippets.

@fo40225
fo40225 / 900p.log
Created March 18, 2019 12:29
Intel Optane 900P 480GB test
900p 480GB
SeqQ32T1read: (groupid=0, jobs=1): err= 0: pid=29758: Tue Jan 8 06:12:55 2019
read: IOPS=15.1k, BW=1884MiB/s (1976MB/s)(5120MiB/2717msec)
clat (usec): min=62, max=348, avg=65.73, stdev= 5.52
lat (usec): min=62, max=348, avg=65.81, stdev= 5.52
clat percentiles (usec):
| 1.00th=[ 63], 5.00th=[ 63], 10.00th=[ 63], 20.00th=[ 64],
| 30.00th=[ 64], 40.00th=[ 64], 50.00th=[ 65], 60.00th=[ 65],
| 70.00th=[ 65], 80.00th=[ 65], 90.00th=[ 75], 95.00th=[ 76],
| 99.00th=[ 93], 99.50th=[ 95], 99.90th=[ 105], 99.95th=[ 109],
@fo40225
fo40225 / fio.sh
Last active June 24, 2022 16:12
run fio as CrystalDiskMark
# CrystalDiskMark 8 NVMe
fio --loops=5 --size=1g --runtime=5 --time_based=1 --stonewall --direct=1 --group_reporting \
--name=SeqQ8T1read --bs=1048576 --iodepth=8 --rw=read \
--name=SeqQ8T1write --bs=1048576 --iodepth=8 --rw=write \
--name=Seq128kQ32T1read --bs=131072 --iodepth=32 --rw=read \
--name=Seq128kQ32T1write --bs=131072 --iodepth=32 --rw=write \
--name=4kQ32T16read --bs=4096 --iodepth=32 --numjobs=16 --rw=randread \
--name=4kQ32T16write --bs=4096 --iodepth=32 --numjobs=16 --rw=randwrite \
--name=4kQ1T1read --bs=4096 --iodepth=1 --rw=randread \
--name=4kQ1T1write --bs=4096 --iodepth=1 --rw=randwrite
@fo40225
fo40225 / VEP.sh
Last active January 12, 2024 07:16
run Variant Effect Predictor
# ubuntu
sudo apt install -y build-essential unzip parallel curl git zlib1g-dev libbz2-dev liblzma-dev libncurses5-dev libperl-dev libgsl-dev
sudo cpan DBI Try::Tiny LWP::Simple Set::IntervalTree PerlIO::gzip
# windows ActivePerl 5.24 https://downloads.activestate.com/ActivePerl/releases/5.24.3.2404/ActivePerl-5.24.3.2404-MSWin32-x64-404865.exe
# ppm install Set-IntervalTree
# https://www.activestate.com/blog/goodbye-ppm-hello-state-tool
# http://strawberryperl.com/download/5.32.0.1/strawberry-perl-5.32.0.1-64bit.msi
cpan Set::IntervalTree
@fo40225
fo40225 / Aldy.sh
Created March 18, 2019 09:59
run Aldy
conda install -c gurobi gurobi
# http://www.gurobi.com/registration/general-reg
grbgetkey ????????-????-????-????-????????????
export GRB_LICENSE_FILE=~/gurobi.lic
pip install git+https://github.com/inumanag/[email protected]
aldy -p illumina -g CYP2D6 -o sample.txt sample.bam
@fo40225
fo40225 / delly.sh
Created March 18, 2019 09:53
run DELLY2
sudo apt install -y libboost-all-dev
git clone https://github.com/dellytools/delly -b v0.7.9 --recursive
make -j $(nproc)
delly call -g human_g1k_v37_decoy.fasta -o sample.bcf -x human.hg19.excl.tsv -q 20 -s 15 sample.bam
@fo40225
fo40225 / Nirvana.sh
Created March 18, 2019 09:50
run Nirvana
# ubuntu 18.04
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get install -y dotnet-sdk-2.2
mkdir Nirvana
cd Nirvana
@fo40225
fo40225 / CNVnator.sh
Last active May 25, 2022 12:14
run CNVnator
# https://root.cern/install/dependencies/
sudo apt install -y libxpm-dev libxft-dev libxext-dev python-dev
git clone https://github.com/root-project/root.git -b v6-18-04
mkdir root_build root_install && cd root_build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../root_install ../root
cmake --build . --config Release -v -- install -j$(nproc)
source ../root_install/bin/thisroot.sh
wget https://bitbucket.org/MDukhan/yeppp/downloads/yeppp-1.0.0.tar.bz2
@fo40225
fo40225 / Control-FREEC.sh
Created March 18, 2019 09:35
run Control-FREEC
sudo apt update
sudo apt install -y r-base-dev
# ubuntu 18.04 works, 16.04 needs download from https://dlang.org/download.html
sudo apt install -y ldc
git clone --recursive https://github.com/biod/sambamba.git -b v0.6.8
cd sambamba
make -j $(nproc)
@fo40225
fo40225 / enable_sa_login.sql
Created March 18, 2019 09:15
enable sa login on SQL Server
ALTER LOGIN sa ENABLE ;
GO
--change the password
ALTER LOGIN sa WITH PASSWORD = --'P@ssw0rd' ;
GO
USE [master]
GO
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', REG_DWORD, 2
GO
@fo40225
fo40225 / turbo-boost.sh
Last active September 27, 2020 03:39
check cpu turbo
# sudo apt install -y linux-tools-$(uname -r)
sudo apt install -y linux-tools-generic
# sudo turbostat --interval 1 --debug
sudo turbostat -s Core,CPU,Avg_MHz,Busy%,Bzy_MHz,TSC_MHz,CoreTmp,PkgTmp,PkgWatt -c core -i 1
while :; do :; done