This file contains hidden or 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
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| # class from here: http://nbviewer.ipython.org/gist/tillahoffmann/f844bce2ec264c1c8cb5 | |
| class gaussian_kde(object): | |
| """Representation of a kernel-density estimate using Gaussian kernels. | |
| Kernel density estimation is a way to estimate the probability density | |
| function (PDF) of a random variable in a non-parametric way. |
This file contains hidden or 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/sh | |
| # Flacon-style convert to mp3 and split tracks from flac+cue files | |
| # Made by André Rendeiro (afrendeiro@gmail.com) | |
| # Rename | |
| { | |
| find . -name '* *' | while read file; do target=`echo "$file" | sed 's/ /_/g'`; mv "$file" "$target"; done | |
| find . -name '* *' | while read file; do target=`echo "$file" | sed 's/ /_/g'`; mv "$file" "$target"; done | |
| find . -name '* *' | while read file; do target=`echo "$file" | sed 's/ /_/g'`; mv "$file" "$target"; done |
This file contains hidden or 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
| #!/usr/bin/env uv --script | |
| # /// script | |
| # dependencies = [ | |
| # "numpy", | |
| # "squidpy>=1.6.5", | |
| # "scikit-network", | |
| # ] | |
| # python_version = ">=3.12" | |
| # /// |
This file contains hidden or 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 | |
| set -e | |
| INPUT="$1" | |
| EXT="${INPUT##*.}" | |
| BASENAME=$(basename "$INPUT" ."$EXT") | |
| INPUT_DIR=$(dirname "$(realpath "$INPUT")") | |
| TMPDIR=$(mktemp -d) |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ | |
| Get a GEO series matrix file describing an experiment and | |
| parse it into project level and sample level data. | |
| """ | |
| import os | |
| from typing import Tuple, Union | |
| import tempfile |
This file contains hidden or 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
| # /// script | |
| # dependencies = [ | |
| # "numpy", | |
| # "pandas", | |
| # "statsmodels", | |
| # "scikit-learn", | |
| # "scikit-bio", | |
| # "matplotlib", | |
| # ] | |
| # /// |
This file contains hidden or 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
| # New users | |
| sudo adduser username | |
| # Grant the new user sudo privileges | |
| sudo visudo | |
| # username ALL=(ALL:ALL) ALL | |
| # add this line ^^ | |
| # change to that user | |
| su - username |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| #! python3.7 | |
| import argparse | |
| import os | |
| import numpy as np | |
| import speech_recognition as sr | |
| import whisper | |
| import torch | |
| from datetime import datetime, timedelta |
NewerOlder