Skip to content

Instantly share code, notes, and snippets.

View kescobo's full-sized avatar

Kevin Bonham kescobo

View GitHub Profile
$ sudo LIBMOUNT_DEBUG=all mount /dev/sda2 /lovelace
148339: libmount: INIT: library debug mask: 0xffff
148339: libmount: INIT: library version: 2.34.0
148339: libmount: INIT: feature: selinux
148339: libmount: INIT: feature: smack
148339: libmount: INIT: feature: btrfs
148339: libmount: INIT: feature: namespaces
148339: libmount: INIT: feature: assert
148339: libmount: INIT: feature: debug
Available "LIBMOUNT_DEBUG=<name>[,...]|<mask>" debug masks:
@kescobo
kescobo / mwe.jl
Last active October 23, 2020 18:12
Illegal argument: line must be non-negative
using DataFrames
using Turing
using Distributions
using StatsPlots
using Distances
using LinearAlgebra
using StatsModels
using AbstractGPs, KernelFunctions
Fri Oct 9 12:20:08 2020: BEGIN INSTALLATION OF './Downloads/YNAB+4_4.3.857_Setup.exe'
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0012:err:ole:get_local_server_stream Failed: 80004002
000b:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
000b:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0014:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0014:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
@kescobo
kescobo / benchmarks.jl
Created October 2, 2020 16:33
DataFrames #2447 benchmarks
using Random, DataFrames, BenchmarkTools
build_any_df(n) = DataFrame(a = [randstring(6) for _ in 1:n], b = rand(n), c = rand(Int, n), d = repeat(["x", "y"], inner=n÷2))
build_num_df(n) = DataFrame(a = [randstring(6) for _ in 1:n], b = rand(n), c = rand(Int, n), d = rand(Bool, n))
build_mixedrow_df(n) = DataFrame(a = [randstring(6) for _ in 1:n], b = rand(n), c = rand(Int, n), d=rand([1., 1, "str"], n))
a10 = build_any_df(10)
a100 = build_any_df(100)
a1k = build_any_df(1_000)
n10 = build_num_df(10)
@kescobo
kescobo / vs-juno.json
Created August 13, 2020 13:29
Juno keyboard shortcuts in VS-code
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+l",
"command": "workbench.action.editor.changeLanguageMode"
},
{
"key": "ctrl+k m",
"command": "-workbench.action.editor.changeLanguageMode"
},
@kescobo
kescobo / typeform_question.jl
Created June 5, 2020 19:38
Code for question 8 of pre/post test.
open("GCH3000.fasta", "w") do io
for line in eachline("GCH3000.fastq")
if startswith(line, "@")
line = ">" * line[2:end]
elseif any(c-> !in(c, ['A','T','G','C'], line)
continue
end
write(io, line*'\n')
end
end
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/vklepacc/.local/lib/python3.6/site-packages (from requests->MetaPhlAn==3.0) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in /home/vklepacc/.local/lib/python3.6/site-packages (from requests->MetaPhlAn==3.0) (2.7)
Requirement already satisfied: setuptools in /home/vklepacc/miniconda3/envs/metaphlan3/lib/python3.6/site-packages (from dendropy->MetaPhlAn==3.0) (46.1.3.post20200330)
Collecting bcbio-gff
Downloading bcbio-gff-0.6.6.tar.gz (19 kB)
Collecting matplotlib
Downloading matplotlib-3.2.1-cp36-cp36m-manylinux1_x86_64.whl (12.4 MB)
|████████████████████████████████| 12.4 MB 51.5 MB/s
Collecting seaborn
Downloading seaborn-0.10.0-py3-none-any.whl (215 kB)
julia> using Pkg; Pkg.activate(tempdir())
Activating new environment at `/var/folders/nl/h0htjvx13dz9l4p42xzw7_8h0000gq/T/Project.toml`
(T) pkg> add BioServices
Updating registry at `~/.julia/registries/BioJuliaRegistry`
Updating git-repo `https://github.com/BioJulia/BioJuliaRegistry`
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
Updating `/private/var/folders/nl/h0htjvx13dz9l4p42xzw7_8h0000gq/T/Project.toml`
(v1.3) pkg> activate debug
Activating new environment at `~/repos/scratch/debug/Project.toml`
(debug) pkg> dev https://github.com/Klepac-Ceraj-Lab/echo_analysis
Updating registry at `~/.julia/registries/BioJuliaRegistry`
Updating git-repo `https://github.com/BioJulia/BioJuliaRegistry`
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Updating git-repo `https://github.com/Klepac-Ceraj-Lab/echo_analysis`
Resolving package versions...
(v1.2) pkg> up
Updating registry at `~/.julia/registries/BioJuliaRegistry`
Updating git-repo `https://github.com/BioJulia/BioJuliaRegistry`
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Updating git-repo `https://github.com/JuliaStats/MultivariateStats.jl.git`
Updating git-repo `https://github.com/JuliaStats/Clustering.jl.git`
Resolving package versions...
Updating `~/.julia/environments/v1.2/Project.toml`
[no changes]