Skip to content

Instantly share code, notes, and snippets.

@kelly-sovacool
kelly-sovacool / titanic.ipynb
Last active February 27, 2019 17:06
Plotting the titanic data: task for the Schloss lab code review led by Begüm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kelly-sovacool
kelly-sovacool / binary-numbers.py
Last active February 27, 2019 17:06
Implementation of binary numbers & arithmetic for education
#!/usr/local/bin/python3
"""
CS315 Homework 4 through 6: Binary numbers and arithmetic
Author: Kelly Sovacool
Email: kellysovacool@uky.edu
Date: 21 Sept. 2017
Updated: 16 Nov. 2017
Usage:
./binaryNumber.py
./binaryNumber.py human-readable
@kelly-sovacool
kelly-sovacool / README.md
Last active February 24, 2023 11:19
Google Drive file I/O with Colab Jupyter notebooks

Google Drive file I/O with Colab Jupyter notebooks

A minimal working example.

Instructions

  1. Place the Jupyter notebook in your Google Drive.
  2. In Google Drive in your web browser, open the Jupyter notebook with Colaboratory.
  3. Run the cells in this notebook to mount the drive and practice reading & writing files.

Notes

@kelly-sovacool
kelly-sovacool / README.md
Last active February 16, 2022 09:51
Test conda environments on HPC batch scheduler

test-conda-env-hpc

Question

Does the conda environment that you have activated on the login node also get used in the compute nodes when submitting a job?

Methods

  • Used conda version 4.6.14
  1. Activate a conda env with snakemake installed.
@kelly-sovacool
kelly-sovacool / keybase.md
Last active September 8, 2019 21:35
Keybase proof

Keybase proof

I hereby claim:

  • I am kelly-sovacool on github.
  • I am kellysovacool (https://keybase.io/kellysovacool) on keybase.
  • I have a public key ASBMlXzLKCSXdzRoABp2hzLAnUTCeiJezimIZ4iS22kGrgo

To claim this, I am signing this object:

@kelly-sovacool
kelly-sovacool / gwc-bio.md
Last active September 5, 2019 18:19
My bio for the GWC-DCMB website

Kelly studied biology with a minor in computer science at the University of Kentucky. While working as an undergraduate lab assistant, she discovered a passion for applying computer science to answer biological questions. In 2018, Kelly joined the Bioinformatics PhD program at the University of Michigan. She develops computational tools and data analysis pipelines for microbiome research under the mentorship of Pat Schloss. See her personal website for more information: https://sovacool.dev.

@kelly-sovacool
kelly-sovacool / GeneticCodeConverter.cpp
Created September 26, 2019 18:14
The first program I ever wrote! In 10th grade I was inspired by my biomedical science class. Saved here for posterity.
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main ()
{
while (true) { //This repeats the program. You close console window manually by clicking "x".
@kelly-sovacool
kelly-sovacool / code_review_2019-09-30.Rmd
Last active September 30, 2019 19:24
Lab Meeting Code Review 2019-09-30: Visualizing weights of model features
---
title: "Lab Meeting Code Review 2019-09-30: Visualizing weights of model features"
output: html_notebook
---
```{r}
library(tidyverse)
feature_data = readr::read_csv('combined_all_imp_features_non_cor_results_L2_Logistic_Regression.csv')
head(feature_data)
```
@kelly-sovacool
kelly-sovacool / software-performance.md
Last active November 11, 2019 15:31
Notes on software performance analysis

software-performance

Measuring & improving performance of scientific software.

Compiled vs. Interpreted Languages

Static vs. Duck typing

  • Static: variable types are declared at initialization and cannot change. [C++]
@kelly-sovacool
kelly-sovacool / monte-carlo-pi.md
Last active November 7, 2019 22:14
Monte Carlo simulation to estimate the value of Pi

monte-carlo-pi

Monte Carlo simulation to estimate the value of Pi

Runtime

Original Python 2 version

time python monte-carlo-pi.py
3.142226