Skip to content

Instantly share code, notes, and snippets.

Avatar
💤
Waiting for Godot

Marlin Marlin-Na

💤
Waiting for Godot
View GitHub Profile
@Marlin-Na
Marlin-Na / Project.toml
Last active Jun 15, 2021
BAM file with two reads
View Project.toml
[deps]
GenomicFeatures = "899a7d2d-5c61-547b-bef9-6698a8d05446"
XAM = "d759349c-bcba-11e9-07c2-5b90f8f05f7c"
@Marlin-Na
Marlin-Na / recipe.jl
Created Jun 12, 2021
Makie.jl recipe example
View recipe.jl
### Makie: define recipes
using Makie
@recipe(CircleShape, x, y, r) do scene
Attributes(
color = :red
)
end
View genome_d3_plot_tracks.json
This file has been truncated, but you can view the full file.
[
{
"trackName": "track1",
"trackType": "stranded",
"visible": true,
"inner_radius": 130,
"outer_radius": 185,
"trackFeatures": "complex",
"featureThreshold": 7000000,
@Marlin-Na
Marlin-Na / shit.md
Created Feb 17, 2018 — forked from jeroen/shit.md
Getting shit to work
View shit.md

Getting shit to work

Disclaimers

  • No authority
  • Official reference is writing r extentions (joke extentions)
  • If you thought writing regular r packages was tricky, hold on
@Marlin-Na
Marlin-Na / features.js
Last active Nov 28, 2017
tnt_example_composite_linetracks
View features.js
var features_theme = function () {
var theme = function (board, div) {
// Axis track
var axis_track = tnt.board.track()
.height(0)
.color("white")
.display(tnt.board.track.feature.axis()
.orientation("top")
@Marlin-Na
Marlin-Na / mRunif.c
Created Nov 2, 2017 — forked from Sharpie/mRunif.c
An example of calling R functions from C
View mRunif.c
//myRunif.c
#include <R.h>
#include <Rinternals.h>
SEXP myRunif( SEXP n, SEXP min, SEXP max ){
SEXP statsPackage;
PROTECT(
statsPackage = eval( lang2( install("getNamespace"),
ScalarString(mkChar("stats")) ),
@Marlin-Na
Marlin-Na / 0_reuse_code.js
Created Sep 26, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Marlin-Na
Marlin-Na / test.md
Last active Apr 5, 2017
test org mode display
View test.md

h1 Heading 8-)

h2 Heading

h3 Heading

h4 Heading

h5 Heading
h6 Heading

Horizontal Rules

View dummy.gtf
chrX unknown exon 2670337 2670376 . + . gene_id "XGY2"; gene_name "XGY2"; transcript_id "NR_003254"; tss_id "TSS24556";
chrX unknown exon 2688591 2688632 . + . gene_id "XGY2"; gene_name "XGY2"; transcript_id "NR_003254"; tss_id "TSS24556";
chrX unknown exon 2692757 2693037 . + . gene_id "XGY2"; gene_name "XGY2"; transcript_id "NR_003254"; tss_id "TSS24556";
chrY unknown exon 2620337 2620376 . + . gene_id "XGY2"; gene_name "XGY2"; transcript_id "NR_003254_1"; tss_id "TSS3943";
chrY unknown exon 2638591 2638632 . + . gene_id "XGY2"; gene_name "XGY2"; transcript_id "NR_003254_1"; tss_id "TSS3943";
chrY unknown exon 2642757 2643037 . + . gene_id "XGY2"; gene_name "XGY2"; transcript_id "NR_003254_1"; tss_id "TSS3943";
chrY unknown exon 24997731 24997790 . + . gene_id "TTTY17A"; gene_name "TTTY17A"; transcript_id "NR_001526_1"; tss_id "TSS21583";
chrY unknown exon 24998757 24998862 . + . gene_id "TTTY17A"; gene_name "TTTY17A"; transcript_id "NR_001526_1"; tss_id "TSS21583";
chrY unknown exon 26631479 26631538 . + .