Summary
I had a difficult time installing the units R package on the Partners ERIS servers.
I hope this post helps you to figure out how to work around the errors.
#!/usr/bin/env python | |
""" | |
montage.py | |
2020-12-23 | |
Kamil Slowikowski | |
Usage | |
----- | |
Write montage.png from a list of PDF files, each panel 500px wide: |
#!/usr/bin/env Rscript | |
# rsa-example.R | |
# | |
# Inspired by Alex Van de Sande | |
# https://twitter.com/avsa/status/1318672796415819776 | |
last_digit <- function(x) { | |
x_char <- as.character(x) | |
as.numeric(substr(x_char, nchar(x_char), nchar(x_char))) | |
} |
#' @param x A sparse matrix from the Matrix package. | |
#' @param file A filename that ends in ".gz". | |
writeMMgz <- function(x, file) { | |
mtype <- "real" | |
if (is(x, "ngCMatrix")) { | |
mtype <- "integer" | |
} | |
writeLines( | |
c( | |
sprintf("%%%%MatrixMarket matrix coordinate %s general", mtype), |
#!/usr/bin/env python | |
""" | |
The Needleman-Wunsch Algorithm | |
============================== | |
This is a dynamic programming algorithm for finding the optimal alignment of | |
two strings. | |
Example | |
------- |
# install.packages(c("Matrix", "rhdf5", "tidyverse")) | |
library(Matrix) | |
library(rhdf5) | |
library(tidyverse) | |
library(glue) | |
my_h5_files <- Sys.glob( | |
"path/to/cellranger-per-channel/output/*/filtered_feature_bc_matrix.h5" | |
) |
<!DOCTYPE html> | |
<body> | |
<!-- Copied directly from http://www.ephys.org/ by Damian J Williams --> | |
<input placeholder="Kamil Slowikowski" name="name"/> | |
<p id="demo"></p> | |
<script> |
We need to install a lot of R packages each time we upgrade to a new version of R.
Rscript make_description.R
to write a list of all installed packages.