Skip to content

Instantly share code, notes, and snippets.

View kojix2's full-sized avatar
🔬
🧬 🖥️ ♋

kojix2

🔬
🧬 🖥️ ♋
View GitHub Profile
require 'pycall'
require 'pycall/import'
include PyCall::Import
require 'matplotlib/iruby'
Matplotlib::IRuby.activate
pyimport :pandas, as: :pd
pyimport :seaborn, as: :sns
@kojix2
kojix2 / Daru.ipynb
Last active April 14, 2019 11:10
Daru.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kojix2
kojix2 / daru.ipynb
Last active April 14, 2019 15:20
daru2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
FROM tensorflow/tensorflow:1.15.2-py3
LABEL maintainer="kojix2 <2xijok@gmail.com>"
RUN set -x && \
apt update -y && \
apt install -y wget unzip libsm6 libxrender1 libxext-dev && \
pip3 install --upgrade pip && \
pip3 install scikit-learn && \
pip3 install matplotlib && \
pip3 install opencv-python
RUN wget https://github.com/lindawangg/COVID-Net/archive/master.zip
@kojix2
kojix2 / bedtools_cheatsheet.md
Created August 6, 2020 02:35 — forked from ilevantis/bedtools_cheatsheet.md
Bedtools cheatsheet

Bedtools Cheatsheet

General:

Tools Description
flank Create new intervals from the flanks of existing intervals.
slop Adjust the size of intervals.
shift Adjust the position of intervals.
subtract Remove intervals based on overlaps b/w two files.
@kojix2
kojix2 / mol.rb
Last active September 5, 2020 08:39
XYZ file viewer - GR.rb
require 'gr'
require 'gr3'
require 'numo/narray'
require 'optparse'
# コマンドラインオプション
options = { radius: 1.0, size: 500 }
OptionParser.new do |opt|
opt.on('-o', '--output PATH', String) { |v| options[:save_path] = v }
opt.on('-r', '--radius VALUE', Float) { |v| options[:radius] = v }
@kojix2
kojix2 / ruby-htslib_Interim_report.md
Last active January 25, 2021 08:12
ruby-htslib Interim report
@kojix2
kojix2 / monkey_struct.rb
Last active February 15, 2021 07:26
Ruby FFI bitfields
# frozen_string_literal: true
require "ffi"
module FFI
class BitStruct < Struct
class << self
# def union_layout(*args)
# Class.new(FFI::Union) { layout(*args) }
# end