This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Why use KEGG?" | |
author: "Mark Ziemann" | |
date: "`r Sys.Date()`" | |
output: | |
html_document: | |
toc: true | |
toc_float: true | |
fig_width: 7 | |
fig_height: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download | |
URL="ftp://ftp.ensemblgenomes.org/pub/bacteria/release-42/fasta/bacteria_0_collection/escherichia_coli_str_k_12_substr_mg1655/cds/Escherichia_coli_str_k_12_substr_mg1655.ASM584v2.cds.all.fa.gz" | |
# unzip | |
if [[ ! -r $FA ]] ; then | |
wget -N $URL | |
gunzip -kf $FA.gz | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "rslurm example workflow" | |
author: "Mark Ziemann" | |
date: "`r Sys.Date()`" | |
output: | |
html_document: | |
toc: true | |
toc_float: true | |
fig_width: 7 | |
fig_height: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
x(){ | |
echo "========================================================" | |
} | |
export -f x | |
node_dash(){ | |
clear | |
echo -n "BITCOIN NODE INFO " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(rvest) | |
library(dplyr) | |
url="https://www.broadinstitute.org/files/shared/metabolism/mitocarta/human.mitocarta3.0.path_.html" | |
webpage <- read_html(url) | |
tbls <- html_nodes(webpage, "table") | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Compare DEG tools" | |
author: "Mark Ziemann" | |
date: "`r Sys.Date()`" | |
output: | |
html_document: | |
toc: true | |
theme: cosmo | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Macsue proteomic/methylation mitch analysis" | |
author: "Mark Ziemann" | |
date: "`r Sys.Date()`" | |
output: | |
html_document: | |
toc: true | |
theme: cosmo | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# unwrap_fasta.pl | |
# https://chk.ipmb.sinica.edu.tw/wiki/doku.php/tutorials/perl/unwrap_fasta.pl | |
# Read a fasta file, unwrap the sequences | |
# (i.e., remove all extra line breaks), | |
# and save the result to an output file. | |
my $in_file = shift; | |
my $out_file = shift; | |
my %seq_hash; # key = seq_name, value = seq; | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# author: abu | |
# date: July 3 2019 (ver. 1.1) | |
# description: bash script to install pdftk on Ubuntu 18.04 for amd64 machines | |
############################################################################## | |
# | |
# change to /tmp directory | |
cd /tmp | |
# download packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create the control data | |
IID <- paste("CTRL",1:20000,sep="") | |
ctrl <- as.data.frame(IID) | |
ctrl$GENO <- "AA" | |
ctrl[19209:19992,2] <- "AC" | |
ctrl[19993:20000,2] <- "CC" | |
ctrl$GENO <- as.factor(ctrl$GENO) | |
ctrl$PHENO <- "CONTROL" | |
# create the RA data |
NewerOlder