Skip to content

Instantly share code, notes, and snippets.

View foriin's full-sized avatar

Artem Ilin foriin

  • Department of Molecular Biosciences, The Wenner-Gren Institute, Stockholm University
  • Stockholm, Sweden
View GitHub Profile
@foriin
foriin / shortcuts.md
Created April 5, 2024 17:15 — forked from memphys/shortcuts.md
Bash Shortcuts For Maximum Productivity

source: http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/

Command Editing Shortcuts

  • Ctrl + a – go to the start of the command line
  • Ctrl + e – go to the end of the command line
  • Ctrl + k – delete from cursor to the end of the command line
  • Ctrl + u – delete from cursor to the start of the command line
  • Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
  • Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
@foriin
foriin / PlottyMcPlottyface.R
Last active December 27, 2023 14:04
Plotting mirrored coverage for stranded GRanges with a score mcol
library(ggbio)
library(tidiverse)
set.seed(777)
# Number of intervals for each strand
N <- 50
# Make a fake
gr <- GRanges(seqnames = rep("chr1", N*2),
@foriin
foriin / RNA-seq example
Created December 16, 2019 12:33
Example of running dif expr analysis with outputs from salmon
library(GenomicRanges)
library(DESeq2)
library(data.table)
library(dplyr)
library(stringr)
library(gplots)
library(tximport)
library(openxlsx)
# Genes were taken from flybase I think, selecting only GENEs from full annotation
@foriin
foriin / upd.ipynb
Created June 25, 2019 07:45
Update dictionary stepic
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@foriin
foriin / gviz_plot.R
Created March 20, 2019 22:31
Gviz tomfoolery
library(BiocManager)
BiocManager::install("Gviz")
library(Gviz)
library(GenomicRanges)
data(cpgIslands)
class(cpgIslands)
## [1] "GRanges"
## attr(,"package")
## [1] "GenomicRanges"