Skip to content

Instantly share code, notes, and snippets.

View george-githinji's full-sized avatar

George george-githinji

  • KEMRI-Wellcome Trust Research Programme
  • Kenya
View GitHub Profile

method 1

sudo /usr/local/McAfee/AntiMalware/VSControl stopoas

alternatively

sudo defaults write /Library/Preferences/com.mcafee.ssm.antimalware.plist OAS_Enable -bool False
sudo /usr/local/McAfee/AntiMalware/VSControl stop
sudo /usr/local/McAfee/AntiMalware/VSControl reload
@george-githinji
george-githinji / Useful_BASH_commands.txt
Created October 20, 2022 20:07 — forked from EpiDemos82/Useful_BASH_commands.txt
Useful BASH commands for working with NGS data
##GENERAL TEXT OR FILE MANIPULATION
#Find lines in a list (e.g. file names) that are not present in another list
#This is good for checking whether downstream files are present (i.e. pipeline ran susscessfully)
comm -23 <(sort All.txt) <(sort Finished.txt)
#Looping over anything
for f in $(cat names.txt); do whatever to ${f}; done
#renaming file extensions using bash code
@george-githinji
george-githinji / README.md
Created November 23, 2021 03:18 — forked from huddlej/LICENSE.txt
Command line tool to convert annotated phylogenetic trees nextstrain.org's JSON format to a tidy data frame of tree attributes

Convert Auspice tree JSON to a data frame

An example script to convert an Auspice tree JSON to a data frame for processing by downstream analyses.

Setup

Install Nextstrain.

Usage

@george-githinji
george-githinji / README.md
Created November 16, 2021 06:25 — forked from huddlej/README.md
Script to convert Augur's node data JSON files to data frame format (TSV, CSV, etc.)

Convert Augur node data JSON to data frame format (TSV, CSV, etc.)

This script addresses a use case of how to parse values from Augur's node data JSON files into a data frame format that can be easily consumed by other tools.

The following example shows how to convert a discrete trait analysis output from augur traits in the Nextstrain ncov workflow to a TSV file.

python3 node_data_to_table.py \
  --tree results/europe/tree.nwk \
 --jsons results/europe/traits.json \
@george-githinji
george-githinji / tmux-cheatsheet.markdown
Created November 27, 2018 09:03 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
stat_smooth_func <- function(mapping = NULL, data = NULL,
geom = "smooth", position = "identity",
...,
method = "auto",
formula = y ~ x,
se = TRUE,
n = 80,
span = 0.75,
fullrange = FALSE,
level = 0.95,