Skip to content

Instantly share code, notes, and snippets.

View chienchi's full-sized avatar

Chien-Chi Lo chienchi

  • Los Alamos National Laboratory
  • 87544
  • 09:48 (UTC -06:00)
View GitHub Profile
@chienchi
chienchi / gist:c9e3fe058d759d3747b08e3b1b442dd9
Last active May 8, 2018 17:29
update docker image on NUC
/home/edge/bin/update_edge_docker.sh
$ cat update_edge_docker.sh
#!/usr/bin/env bash
docker ps | grep "bioedge/edge_dev" |awk '{print $1}'| xargs --no-run-if-empty docker stop
docker ps -a | grep "bioedge/edge_dev" |awk '{print $1}'| xargs --no-run-if-empty docker rm -v
docker pull bioedge/edge_dev
docker run -d --restart always --privileged=true --security-opt "seccomp:unconfined" --cap-add=SYS_ADMIN --cap-add=SYS_PTRACE --volumes-from mysql_data -v /home/edge/EDGE_input:/home/edge/EDGE_input -v /home/edge/EDGE_output:/home/edge/EDGE_output -v /home/edge/database:/home/edge/database -p 80:80 -p 8080:8080 --name edge bioedge/edge_dev
@chienchi
chienchi / LANL_CLA
Created February 5, 2019 21:03
LANL Software Grant and Individual Contributor License Agreement
Los Alamos National Laboratory
Software Grant and Individual Contributor License Agreement (“Agreement”)
Thank you for your interest in (insert software name). In order to clarify the intellectual property license granted with Contributions from any person or entity, Triad National Security, LLC (“Triad”), as operator of Los Alamos National Laboratory (“LANL”) must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of LANL and the ( insert software name) users; it does not change your rights to use your own Contributions for any other purpose.
If you have not already done so, please complete and sign, then scan and email a pdf file of this Agreement to software@lanl.gov. Alternatively, you may send it by facsimile to LANL at 505-665-3125. If necessary, send an original, signed Agreement to LANL, P.O. Box 1663, MS C333, Attn. Contracts Ma
{
"MetagenomeAssembly": {
"activity_id": "",
"sample_id": "1393_65597",
"date": "2020-03-19",
"product_type": "metagenome_assembly",
"workflow_version": "1.0.0",
"execution_resource": "NERSC - Cori",
"git_url": "https://github.com/microbiomedata/metaAssembly/releases/tag/1.0.0",
"inputs": [
import pandas as pd
import numpy as np
import plotly.express as px
from plotly.subplots import make_subplots
# Reload KO abundance file
ko_df = pd.read_csv("ko_abundance.csv")
# Define KO to gene mapping
target_kos = {
"KO:K02567": "napA",