Skip to content

Instantly share code, notes, and snippets.

View alienzj's full-sized avatar
🦀
MAGs lives matter

Jie Zhu alienzj

🦀
MAGs lives matter
View GitHub Profile
@alienzj
alienzj / plot_bar_12c.R
Created June 10, 2017 09:15
geom_bar plot
library(ggplot2)
library(tibble)
library(ggthemr)
setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
# rm(list = ls())
ggthemr('pale',
layout = 'scientific',
spacing = 2,
type = 'inner')
@alienzj
alienzj / oa.hpp
Created August 7, 2017 08:31
Overall Accurate
#pragma once
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string_regex.hpp>
#include <boost/iostreams/filtering_streambuf.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/iostreams/copy.hpp>
#include <boost/program_options.hpp>
#include <boost/regex.hpp>
#include <iostream>
@alienzj
alienzj / saxpy.cpp
Created August 29, 2017 14:42 — forked from scchan/saxpy.cpp
hcc saxpy example
#include <random>
#include <algorithm>
#include <iostream>
#include <cmath>
// header file for the hc API
#include <hcc/hc.hpp>
#define N (1024 * 500)
@alienzj
alienzj / README.md
Created September 7, 2017 12:10 — forked from ctb/README.md

banded kraken - example usage

Prepare the database:

mkdir ecoli_many_sigs
cd ecoli_many_sigs
curl -O -L https://github.com/dib-lab/sourmash/raw/master/data/eschericia-sigs.tar.gz
tar xzf eschericia-sigs.tar.gz
cd ../
@alienzj
alienzj / matlab-silent-install.sh
Created November 2, 2017 00:24 — forked from kahlos/matlab-silent-install.sh
MATLAB silent install script
# Script to silently install MATLAB components, run as root if installing to /opt
# Requires: `license.lic`, `packages` list and `file-install-key` files
# Download license.lic and create file-install-key file from [MATLAB license centre](https://uk.mathworks.com/licensecenter/licenses)
# Download and extract latest [MATLAB installer](https://uk.mathworks.com/downloads/)
# Download packages `archive` files by running installer graphically first
# Make a package list, uncommenting lines from installer_input, `tail -87 installer_input.txt > packages`
# Check destination directories are correct below
# Destination, MATLAB installer and config files directory
@alienzj
alienzj / konsole-with-palette-colours.css
Created November 22, 2017 12:32 — forked from codemedic/konsole-with-palette-colours.css
CSS for KDE Konsole minimal, lighter, dark tabs
QTabBar,
QTabBar::tab
{
font-family: "Noto Sans";
font-size: 11px;
height: 16px;
padding: 2px;
border: 0px;
border-bottom: 3px solid palette(dark);
background-color: palette(dark);
@alienzj
alienzj / reads_length_dist.sh
Created November 28, 2017 06:16 — forked from l-modolo/reads_length_dist.sh
compute reads length distribution from a fastq file
#!/bin/sh
# compute reads length distribution from a fastq file
awk 'NR%4 == 2 {lengths[length($0)]++} END {for (l in lengths) {print l, lengths[l]}}' file.fastq
setwd("C:\\Users\\xuwenhao\\Desktop\\bwa output\\nwe_bwa\\polu_length_count\\3p_and_5p")
library(ggplot2)
library(gridExtra)
files=list.files(getwd())
files <- files[grepl("w*\\.txt$", files)]
ways=unlist(strsplit(getwd(),"/"))
pdf(paste(ways[length(ways)],".pdf",seq=""),family="GB1")#改后缀
plot_c <- list()
for (f in files)
adobe-source-code-pro-fonts
akonadi-calendar-tools
akonadiconsole
akonadi-import-wizard
akregator
alsi
amarok
archlinuxcn-keyring
ark
artikulate
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory