Skip to content

Instantly share code, notes, and snippets.

View npho's full-sized avatar

Nam Pho npho

View GitHub Profile
@npho
npho / cuda-pytorch.def
Created September 28, 2021 06:36
Building a Singularity container to support CUDA and Pytorch.
Bootstrap: docker
From: nvcr.io/nvidia/cuda:11.4.2-base-ubuntu20.04
%files
cuda-pytorch.yml environment.yml
%environment
export PATH=/opt/conda/bin:${PATH}
@npho
npho / compute.def
Created September 28, 2021 05:17
How to build a Python conda environment in a Singularity container.
Bootstrap: docker
From: continuumio/miniconda3
%environment
export PATH=/opt/conda/bin:${PATH}
%files
compute.yml environment.yml
@npho
npho / rstudio-server.job
Last active September 27, 2021 22:10
rstudio-server.job
#!/bin/sh
#SBATCH --account=uwit
#SBATCH --partition=compute
#SBATCH --time=08:00:00
#SBATCH --signal=USR2
#SBATCH --ntasks=4
#SBATCH --mem=10G
@npho
npho / scRNA-seq.Dockerfile
Last active December 14, 2020 01:05
monocle3 and seurat for scRNA-seq analysis.
## npho/monocle3 a Docker container for scRNA-seq lab work
FROM rocker/geospatial:4.0.0
MAINTAINER "Nam Pho" npho@uw.edu
RUN install2.r --error --deps TRUE devtools
# monocle3
RUN R -e \
envs_dirs:
- /gscratch/scrubbed/npho/conda/envs
pkgs_dirs:
- /gscratch/scrubbed/npho/conda/pkgs
name: jlab
channels:
- defaults
- bioconda
- conda-forge
dependencies:
- python=3.7
- scrublet=0.2.1
- pip:
- pandas==1.0.5

Keybase proof

I hereby claim:

  • I am npho on github.
  • I am npho (https://keybase.io/npho) on keybase.
  • I have a public key ASAnv6Q46ED3MgjMg2XShjwwdNbnF1aSq-arEFyP9BqFEwo

To claim this, I am signing this object:

@npho
npho / screen-vertical-split.rb
Created June 24, 2015 22:30
Brew formula for GNU screen with the vertical split
require 'formula'
class ScreenVerticalSplit < Formula
homepage 'http://www.gnu.org/software/screen/'
url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz'
mirror 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz'
sha256 '78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77'
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master'