Skip to content

Instantly share code, notes, and snippets.

View khughitt's full-sized avatar

Keith Hughitt khughitt

  • National Institutes of Health
  • Bethesda, MD
View GitHub Profile
@khughitt
khughitt / compute_feat_resp_cor.R
Created June 14, 2019 22:40
R function definition for measuring similarity between two datasets with shared column indices
#
# Computes similarity between feature and response sample correlation matrices
#
compute_feat_resp_cor <- function(feature_name, feature_dat, response_name, response_dat,
intra_cor_method, inter_cor_method,
num_null_permutations, pca_project_features,
pca_num_dims, handle_missing = 'pairwise.complete') {
# by default, use all observations when computing correlations
cor_data_to_use <- 'all'
@khughitt
khughitt / sway.log
Created November 13, 2018 14:31
swaywm debug log (comparing window_properties for termite vs. st)
2018-11-13 08:55:51 - [sway/sway/server.c:34] Preparing Wayland server initialization
2018-11-13 08:55:51 - [backend/session/logind.c:537] Successfully loaded logind session
2018-11-13 08:55:51 - [backend/backend.c:142] Found 1 GPUs
2018-11-13 08:55:51 - [backend/drm/backend.c:151] Initializing DRM backend for /dev/dri/card0 (i915)
2018-11-13 08:55:51 - [backend/drm/drm.c:63] Using atomic DRM interface
2018-11-13 08:55:51 - [backend/drm/drm.c:156] Found 3 DRM CRTCs
2018-11-13 08:55:51 - [backend/drm/drm.c:87] Found 9 DRM planes
2018-11-13 08:55:51 - [backend/drm/drm.c:129] (3 overlay, 3 primary, 3 cursor)
2018-11-13 08:55:51 - [render/egl.c:148] Using EGL 1.4
2018-11-13 08:55:51 - [render/egl.c:149] Supported EGL extensions: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fenc
@khughitt
khughitt / bootswatch_html_demo.Rmd
Created June 29, 2016 14:14
Example of using custom Bootswatch HTML classes in R Markdown
---
title: Example of using bootswatch HTML classes in an R Markdown document
output:
html_document:
theme: cosmo
---
## Overview
R Markdown uses the Bootswatch HTML framework for recent theme support. This means that you can take
CACACACACACACACACACA 2202 0 938.580508545 2201.0
ACACACACACACACACACAC 2161 1 921.096728059 2160.0
GCACACACACACACACACAC 222 0 94.2418411579 221.0
CACACACACACACACACACG 196 1 83.1545657275 195.0
ATATATATATATATATATAT 195 0 82.7281320571 194.0
TATATATATATATATATATA 170 0 72.0672902972 169.0
ACACACACACACACACACAT 163 0 69.0822546044 162.0
ACACACACACACACACACGC 134 0 56.7156781629 133.0
ACACACACACACACACACAG 131 0 55.4363771517 130.0
CACACACACACACACACGCA 117 1 49.4663057661 116.0