sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
2643640a112b04b7a3ca612a489de35dedde99be788f8970f361c051c4ef1c0d | R | 17,358 | 442 | # We recommend fitFeatureModel over fitZig. MRcoefs, MRtable and MRfulltable
# are useful summary tables of the model outputs. We currently recommend using
# the zero-inflated log-normal model as implemented in fitFeatureModel.
#
# from biocore/qiime/blob/master/qiime/support_files/R/fitZIG.r
# /xia-lab/MicrobiomeAnaly... |
c5c7740d25d23af8c1e8bf67374087ffab4fd94d4c28c894870f9b003feda19e | R | 17,502 | 355 | ######
# by Shen
# Purposes:
# 1. Create and tidy up depression categorical phenotypes: MDD and broad depression (other unspecified types of depression included)
# 2. Summarise depressive symptoms based on KSADS and CBCL
# 3. Extract individual items in KSADS and CBCL
library(dplyr)
setwd('/gpfs/igmmfs01/eddie/GenSc... |
2cd9bb612e8ec504ca0424f7cf90f5a3961bede7e461250f91780b426e93d508 | R | 17,544 | 537 | #' Perform differential analysis using ALDEx2
#'
#' @param ps a [`phyloseq::phyloseq-class`] object
#' @param group character, the variable to set the group
#' @param taxa_rank character to specify taxonomic rank to perform
#' differential analysis on. Should be one of
#' `phyloseq::rank_names(phyloseq)`, or "all" ... |
52b60f5607b7aa8b71d2c8500c06741887a159f8292b8e6ed49c3a3bd946a305 | R | 17,761 | 612 | #' check whether tax abundance table is summarized or not
#' @noRd
check_tax_summarize <- function(ps) {
taxa <- row.names(otu_table(ps))
# whether taxa is separated by `|`,
# may be required to add extra separate strings in the future
has_separate <- any(grepl("[|]", taxa))
has_separate
}
# whet... |
9d56f47c9ed1dba44d13b72ed471c8e31c186d977885ab47982311855408af9c | R | 17,967 | 524 | #' Normalize the microbial abundance data
#'
#' It is critical to normalize the feature table to eliminate any bias due to
#' differences in the sampling sequencing depth.This function implements six
#' widely-used normalization methods for microbial compositional data.
#'
#' @param object a matrix, data.frame, [phylos... |
5a75b55bfa49abd4cd9db377c013459bab78ad3861f9202ef3c4a2cf015ac3db | R | 18,067 | 369 | # by XShen
# 16/5/2019
# Aims: remove parents with other major psychiatric conditions,
# clean up depression-related phenotypes in parents,
# remove adolescents with severe substance use conditions,
# add some key covariates: SES, ADHD condition in children and recent social deprivation.
# Befor... |
ec431ca5cdb2ebdecdf42d922de060a483718cb21f33cb1bc393f9dfb067f762 | R | 18,549 | 541 | #' Perform differential analysis using ANCOM
#'
#' Perform significant test by comparing the pairwise log ratios between all
#' features.
#'
#' @param ps a \code{\link[phyloseq]{phyloseq-class}} object.
#' @param group character, the variable to set the group.
#' @param confounders character vector, the confounding var... |
786cb66e2cae75fad8c3ba5c2d9839e7fe26695cf7dcad568e62f444599bc9eb | R | 19,015 | 312 | #####
# Read the data
#
# read the Excel sheet containing data
library(readxl)
Hippocampus_values <- as.data.frame(read_excel("hippocampus_volume_relevance_ADNI2.xlsx", sheet="ADNI2_LRP_CMP"))
colnames(Hippocampus_values)[colnames(Hippocampus_values)=="Group at scan date (1=CN, 2=EMCI, 3=LMCI, 4=AD, 5=SMC)"] <- "Group"... |
d70b40375974c32014b24ac0d0d114698371053011c5c681979c77d064e5611e | R | 19,408 | 448 | setwd("~/work/ibs")
library(data.table)
# read in the phenotype data (for PCs etc)
phe2 <- fread('pheno/ukb21760.csv')
PCs = paste0("22009-0.",1:20)
#read in the sam file from the imputed data
samfile <- read.table('sample/ukb17670_imp_chr22_v3_s487327.sample')
#read in the filters/IBS definitions
disease <- fread('... |
52a42c62da82d09adf3101e641b9eb2ec2c9f16021da6287d81be0215dedb76e | R | 19,478 | 487 | # Some functions to perform plausibility checks on forecasts in quantiel format
# Johannes Bracher, April 2020
### THESE FUNCTIONS ARE NO LONGER MAINTAINED OR KEPT IN SYNC WITH THE AUTORITATIVE PYTHON CHECKS
### THEY ARE KEPT HERE MERELY AS A RESSOURCE FOR TEAMS SPECIALIZING IN R.
#' Checking if the filename correspo... |
4a326edd93637a26cb6686a0271e37676587b7d9e4e58fdb0bf77fe5f5d90cc6 | R | 19,954 | 535 | ---
title: "mOC scRNASeq GFP threshold 1"
author: "Huan"
date: "1/17/2021"
output:
html_document:
theme: united
df_print: kable
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(
tidy = TRUE,
tidy.opts = list(width.cutoff = 120),
message = FALSE,
warning = FALSE,
cache = TRUE
)
```
This note w... |
909c968e40bf4e146e66189bf4ec473be653ff9b5bb96882ca8acdccb6da9233 | R | 20,069 | 471 | # 22nd May 2019
# R Script for analysing SDS results, both high and low N0 results
# First decide which dataset to use
# Set up so one can run from command line
# Otherwise one can set 'ind' manually
# 1 = High N0 case; 2 = Low N0 case
args <- commandArgs(trailingOnly = TRUE)
ind <- as.integer(args[1])
if(ind == 1){
... |
548bd93dd876ade6eb5952640c381860f623dbdf04551244fe83c3e629264a85 | R | 20,122 | 408 | ---
title: "COVID-19 Forecast Hub weekly report"
author: "Nicholas G Reich, Estee Y Cramer, Martha W Zorn"
date: "report generated 2020-09-15, updated `r Sys.Date()`"
output:
html_document:
toc: true
toc_float:
collapsed: false
smooth_scroll: false
---
```{r setup, include=FALSE}
... |
fe59e429d7346de0113439a931497ca9e64351b118cacc1c242d0bbf25cc06f2 | R | 20,993 | 450 | #Created to satisfy NEJM reviewer comment
library(data.table)
library(ggplot2)
library(cowplot)
theme_set(theme_cowplot())
library(data.table)
library(mvtnorm)
library(numDeriv)
setwd("~/work/ibs")
#Liability model code
getProbs <- function(T1,T2,rho){
#function for getting the four probabilities as a function of ... |
57581de8e4b710e1e7250422528cf7c8292e9649a7f73620a871d7619a4e2f64 | R | 21,448 | 622 | ---
title: "Tools for microbiome marker identification"
author:
- name: Yang Cao
affiliation: Department of Environmental Medicine, Tianjin Institute of
Environmental and Operational Medicine
email: caoyang.name@gmail.com
output:
BiocStyle::html_document:
toc: true
bibliography: vignette.bib
vi... |
cd6faa62d791d178c0676e10cf37d9261be1f2a82c44f234ab7258923822a421 | R | 22,654 | 706 | #' Statistical test between two groups
#'
#' @param ps a [`phyloseq::phyloseq-class`] object
#' @param group character, the variable to set the group
#' @param taxa_rank character to specify taxonomic rank to perform
#' differential analysis on. Should be one of
#' `phyloseq::rank_names(phyloseq)`, or "all" means t... |
e5ef7516c938f8ce3ac51c24d26ef8b9dcd9f2cf04a0b8cd4a16b4c2306262b2 | R | 22,691 | 388 | source("analysis6_Study1_task_20180914.R", encoding="Shift_JIS")library(ggplot2) # «ê¢ÈOtðvbg·é½ßÌCuðÇÝÝ
library(signal) # nCJbgtB^̽ßÌCuðÇÝÝ
library(gridExtra) # Otðc¡ÉÀ×é½ßÌCuðÇÝÝ
library(ggfortify) # ÝÖÖðvbgµ... |
aa77cc5781ebcf8751763715f0af5d3755eec9e2b364f85f44dd018360a25f99 | R | 23,892 | 511 | # App Description & Comments ----------------------------------------------
# Microglia Enrichment Calculator
# this Shiny app takes in a set of Gene IDs, and runs a enrichment analysis
# (i.e. fisher's exact test) based on the database of microglia-relevant genes
# The database loads data previously generated from ano... |
b46948fd3a75f3583da1a81e1a4d307f3ac181048f7ec8f65a062d6f17a6b39b | R | 23,913 | 562 | ---
output:
html_document:
toc: true
toc_float:
collapsed: false
smooth_scroll: false
anchor_section: true
params:
state: "01"
conn: NA
quiet: false
---
<!-- code to run rmarkdown::render(input="./vignettes/covidHubUtils-overview.Rmd") -->
<!-- Code for adding logo at the... |
44d9149f3483b756aee12b3d2d44519cbf5b5c0e478394703f8583c52709a244 | R | 24,258 | 611 | # In the vignette of DESeq2:
# The values in the matrix should be un-normalized counts or estimated counts
# of sequencing reads (for single-end RNA-seq) or fragments (for paired-end
# RNA-seq). The RNA-seq workflow describes multiple techniques for preparing
# such count matrices. It is important to provide count matr... |
6dcdfe28ebc387aabb664a060318329a8c43dd9b9fab01d8d342b2b9c02c6709 | R | 24,268 | 428 | """
This file is part of BrainMolecularAtlas.
Copyright (c) 2021-2022 Blue Brain Project/EPFL
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) an... |
0acd88134abdd2efaa415df298ff86f798a28e8bff0d1a1caa52c9974cc953ac | R | 24,705 | 442 | ##plotting of heatmaps, summary violin and bar plots displayed in ED figures 5f-i based on supplementary Table 8
library(tidyverse)
library(ComplexHeatmap)
library(circlize)
`%notin%` <- Negate(`%in%`)
#set working directory to the directory code is in, to make sure that files are found
#for Rstudio:
setwd(dirname(rs... |
9b6461377c546b8658660e8d3992be9b85dd89629647f293c8779477c268fa3d | R | 25,215 | 449 | library(ggplot2) # «ê¢ÈOtðvbg·é½ßÌCuðÇÝÝ
library(signal) # nCJbgtB^̽ßÌCuðÇÝÝ
library(gridExtra) # Otðc¡ÉÀ×é½ßÌCuðÇÝÝ
library(ggfortify) # ÝÖÖðvbgµÄÀ×é½ßÌCuðÇÝÝ
library(gplots) # q[g}b... |
f2b20f7b5228193950066d09294666dafaf82294fa1993709925dcdfdb9cf5b7 | R | 25,559 | 542 | library(data.table)
setwd("~/work/ibs")
grep_start = function(col,code){
grepl(paste0("^",code),col)
}
save_zip = function(object,path){
fwrite(object,path)
zip(paste0(path,".zip"),path)
}
add_any = function(pattern,M,suffix="_any"){
cols = grep(pattern, colnames(M))
new_col = paste0(pattern,suffix)
M[,(... |
abc96bb53b312138bc36ddd57f9f67c7136169550dafbd3e4723a4446a77a0fd | R | 28,290 | 465 | # Single-cell RNA-seq analysis of single-cell and nuclei data of adult murine whole hearts
# The underlying analysis is part of the manuscript entitled
# "Automated annotation of rare-cell types from single-cell RNA-sequencing data through synthetic oversampling"
# Data anaylsis and visalizations were mainly generated... |
b11abcbe28cb8b0595e7d2e55c75ae60a4c7aba808d2e22ee1c4dbb786e98912 | R | 33,548 | 870 | # The module of comparing differential analysis is inspired from DAtest
# https://github.com/Russel88/DAtest
# If you use this function please cite the original paper:
# Russel, Jakob, et al. "DAtest: a framework for choosing differential abundance
# or expression method." BioRxiv (2018): 241802.
#' Comparing the resu... |
27cf1b5c03e1d221341afa7451951ecfa4f2db6fbd8bec68a3d00680b9f1c263 | R | 38,090 | 894 | setwd("~/work/ibs/")
library(data.table)
library(ggplot2)
library(cowplot)
theme_set(theme_cowplot())
grep_start = function(col,code){
grepl(paste0("^",code),col)
}
check_code = function(code,P,cols,col_prefix="has",starts_with=FALSE){
if((code=="") | is.na(code)){return(NULL)}
if(starts_with){
noted = P... |
d88d1bdd506185ff908171cb1a111acf0a66e606a51791972ce3ffecae0af7b4 | R | 43,624 | 1,317 | ---
title: "Adolescent MDD & Brain: Main Results"
author: "X Shen"
date: "`r format(Sys.time(), '%d %B, %Y')`"
output:
html_document:
toc: true
toc_depth: 4
code_folding: hide
---
* * *
## Contact
X Shen (xueyi.shen@ed.ac.uk)
* * *
## R settings
Required packages:
- dplyr
- readr
- ggplot2
Ex... |
5076b2b4a370c516592def9a7c88289e641ce8e689d98cead257a2c1286573db | R | 46,583 | 1,366 | # Origination Version of August 13, 2020.
# Stephen N. Housley
# housley.nick@gmail.com
#
# This work is licensed under the licenses
# Paper: Creative Commons Attribution 3.0 Unported License
# Code: GPL-3 License
# Depends: R (>= 3.5.0)
# Version: 0.3
# Description: code to run analytics and graphic functions as... |
c6c5879d5649f651964dae55c5605140f1a80b2a23df81d9b7c05414225adfe3 | R | 52,617 | 1,132 | ---
output:
html_document:
toc: true
toc_float:
collapsed: false
smooth_scroll: false
---
<!-- code to run rmarkdown::render(input="./vignettes/covidHubUtils-overview.Rmd") -->
<!-- Code for adding logo at the top -->
<style>
#TOC {
background: url("https://github.com/reich... |
ca3fedcd84c7ca6fe7c4cd273db95b90b5927bd7785145c05bd33cc02d562796 | R | 54,469 | 1,160 | ---
output:
html_document:
toc: true
toc_float:
collapsed: false
smooth_scroll: false
anchor_section: true
params:
state: "01"
---
<!-- code to run rmarkdown::render(input="./vignettes/covidHubUtils-overview.Rmd") -->
<!-- Code for adding logo at the top -->
<!-- <style> -... |
45295a6fc3488a5ca2f6278df10012d84c984b6f86f303a1e58e16afb097b0fd | R | 58,892 | 1,121 | # =============================================================================
# TCGA-Assembler version 2
#
# Copyright (C) <2017> <Yitan Zhu>
# This file is part of TCGA-Assembler.
#
# TCGA-Assembler is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public L... |
8dd79ce8e51b18be2edc5240cfc6084da605014cdf15481503d32bf29bbc9f25 | R | 159,461 | 3,324 | # =============================================================================
# TCGA-Assembler version 2
#
# Copyright (C) <2017> <Yitan Zhu>
# This file is part of TCGA-Assembler.
#
# TCGA-Assembler is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License ... |
1ef689b29495a4d1d8852e58b4893151cb1b2f02ff4b50f726c248ee321d03ac | R | 200,000 | 2,744 | library(batch)
start.time <- proc.time()[3]
options(echo = FALSE)
options(warn=-1)
cat(" ################################# \n # \n # \n # \n # \n # PRSice: Polygenic Risk Score software \n # \n # Jack Euesden, Cathryn M. Lewis, Paul F. O'Reilly 2014 \n # \n # \n # If you use PRSice in published work, please cite: \n #... |
ef89cd817b03e007a00d23d353ba5d465199de9fe318b068a440c1a6db790a99 | Shell | 46 | 2 | npm run build-viz-mac
bash ./travis/push-gh.sh |
334a8446d30c79ad283d4671132a82d394c95b53904a1844af7b5f7db50b71e1 | Shell | 68 | 1 | rm -f CERI-KRISP-K032274* NC_045512.2.fa* *.fastq *.gz parse_brc.py
|
1b99f58533c1131d09abe65fc83a3e77d05077851b19942807d879385bf08d6a | Shell | 72 | 6 | #!/bin/sh
for FILE in *.sbatch;
do echo `sbatch ${FILE}`
sleep 1
done
|
4a432d594df44ae324d500b65d318cd4d8c24b12c0498eb8c048abfe23e4dc58 | Shell | 74 | 5 | #!/bin/sh
for FILE in opt*.sbatch;
do echo `sbatch ${FILE}`
sleep 1
done
|
4ff832a0dd8019a69df7a70ae69f85fdef83ce70107acdf4b59d82bea7d931ad | Shell | 75 | 3 | #!/bin/sh
echo "Running unit tests"
python3 -m unittest discover code/test
|
445c74a7c44258c8e684054941ecd86a5a55a9f94ad9bed4e7e36333dc78c295 | Shell | 76 | 5 | #!/bin/sh
for FILE in train*.sbatch;
do echo `sbatch ${FILE}`
sleep 1
done
|
4ac5471396156808bbb013d9f3e3c6ce613bb4635d381485c81fa958caff8259 | Shell | 85 | 6 | #!/bin/sh
for FILE in listify_length*.sbatch;
do echo `sbatch ${FILE}`
sleep 1
done |
56d96b54cba73b612f0517dd9ce20a3f843e6a042ec665f712d8b32f3a01f325 | Shell | 88 | 6 | #!/bin/sh
for FILE in listify_circuits*.sbatch;
do echo `sbatch ${FILE}`
sleep 1
done
|
0387f06de62ecd5f548361eb15786b6a3eabf8b616b8015c288cb088eed48401 | Shell | 89 | 1 | ../build/bin/bam-readcount -l twolib_site_list.txt -f rand1k.fa twolib.sorted.cram > out
|
8ff72d26a8578ece6a7ec34676b6387fbee28ffb4666536a98c0e8ebff11ffbe | Shell | 89 | 1 | ./fragment.sh test_input.csv test_output.csv smiles 3 80.0 256 1000000000 true METFRAG_MZ |
47ec2ffb8dd562cfac9f776a2f15b0e8a5a736b23459af507f537805776de503 | Shell | 103 | 2 | # Automate upload all new forecast to Zoltar
python3 ./code/zoltar_scripts/create_validated_files_db.py |
30912d04a0bd615b7fef34118c6bf1771d1365335b8ea551a3d2776b8024019b | Shell | 110 | 7 | #!/bin/bash
SCRIPTS="$(pwd)/scripts/"
WHERE="local"
# Plots
python3 ${SCRIPTS}s4_plot_full_raster.py $WHERE
|
019b81241f43e221a5f07d5200f64706f88d40deaf90cb539b1901efde483398 | Shell | 135 | 10 | #!/bin/sh
# av_script.sh
#
#
# Created by Omer Ashmaig on 1/9/20.
#
python2 send_nlx_triggers.py &
python3 controller_log.py &
|
a9c8fa09948deadc62a975d891bad9928872fca8ee83ddf043466ea8c99bbe07 | Shell | 137 | 5 | #!/usr/bin/env bash
# test covid forecast submission formatting
echo "TESTING SUBMISSIONS..."
python3 code/validation/test_formatting.py |
48687c8a29782f76bd2d00e1c6ab2843520bfba9f7da21ffa8266e59a3dc4ed2 | Shell | 159 | 9 | #!/bin/bash
WHERE="local"
MODE="plastic"
STIM_IDX=2
SCRIPTS="$(pwd)/scripts/"
# Plots figure
python3 ${SCRIPTS}s6_plot_time_series.py $WHERE $MODE $STIM_IDX
|
90f75bc2f16e5d7a6725b7fe0a19029befe930966d6f8e62b274abdd1b3989be | Shell | 169 | 10 | # Python Dependencies
pip3 install --upgrade setuptools
pip3 install -r requirements.txt
# npm dependencies
cd ../
npm install
cd ./visualization
echo "SETUP COMPLETE" |
6099f583bf64dcaf77082746b2fd8437b5f685d6c112c6f53216f7c00a818476 | Shell | 171 | 10 | #!/bin/bash
SCRIPTS="$(pwd)/scripts/"
WHERE="local"
# Runs simulation
python3 ${SCRIPTS}4_shift_spike_trains.py $WHERE
# Plots
python3 ${SCRIPTS}4_plot_decay.py $WHERE
|
e7aa836ff85c2186952fe0c9e53379eb88973aa3580bf61eb704dbec11b68d67 | Shell | 172 | 11 | #!/usr/bin/env bash
set -e
# Build the site
cd ./vis-master
npm run build
# cp -r ./dist/* ../../ # Copy to repo root
cd .. # in ./visualization
rm -rf ./vis-master/data |
73408206a9c240a42ba9fe76bb8bcdf87a4e1adf807f1536dbdd5b44e48b4b0e | Shell | 209 | 9 | BASEDIR=$(dirname "$0")
mvn -f $BASEDIR/pom_jar.xml install
java \
-Xmx32000m \
-cp $BASEDIR/target/liv-metfrag-0.1.0-SNAPSHOT.jar:$BASEDIR/target/lib/* \
uk.ac.liverpool.metfrag.MetFragFragmenter \
"$@" |
7db2e423214fedc7121723320cd930da591e4d1a6442951038453295854fe6cf | Shell | 220 | 8 | #!/usr/bin/env bash
# Tell bash shell to report errors and exit
set -e
# Automate upload all new forecast to Zoltar
python3 ./code/zoltar_scripts/upload_covid19_forecasts_to_zoltar.py
echo "UPLOAD TO ZOLTAR SUCCESSFUL" |
55dc07d3570fef0bbc32241eef0e3c2832be6a168a5522c4070f6ff40d8dc887 | Shell | 221 | 9 | #!/bin/sh
# 21st Apr 2020
# Running analyses for low, high N0
rm -r Rout
mkdir Rout
Rscript SDS_DataAnalysis.R 1 &> Rout/HighN0.out &
Rscript SDS_DataAnalysis.R 2 &> Rout/LowN0.out &
wait
echo 'Both N0 analyses complete'
|
e235f01c0be85f7b78a541909bca35bda11226578c2962c15ed45db9f598ab3c | Shell | 231 | 14 | #!/bin/bash
path_to_piq=$1
file_motif=$2
dir_out=$3
mkdir -p $dir_out
num=$(grep ">" $file_motif | wc -l)
for idx in $(seq 1 $num)
do
Rscript $path_to_piq/pwmmatch.exact.r $path_to_piq/common.r $file_motif $idx $dir_out
done
|
c726c789c5428a1e7c01e73304f12227beb08142cc8bbf9116468db304c10667 | Shell | 244 | 11 | #!/bin/bash
WHERE="local"
SCRIPTS="$(pwd)/scripts/"
REF_CV="1.4"
# Generates data for static connections
python3 ${SCRIPTS}2_single_readout.py $WHERE 'static' $REF_CV
# Plots figure
python3 ${SCRIPTS}s5_plot_single_readout_weights.py $WHERE
|
8ff4dffa73fde17efa9ebfb4d6ba357686e8353b5d5215f1cd3cabd7366c2802 | Shell | 260 | 13 | #!/bin/bash
SCRIPTS="$(pwd)/scripts/"
WHERE="local"
MODE="static"
MASTER_SEED=15
STIM_IDX=4
# Runs simulation
python3 ${SCRIPTS}3_simulation_assembly.py $WHERE $MODE $MASTER_SEED $STIM_IDX
# Plots
python3 ${SCRIPTS}3_plot_assembly.py $WHERE $MODE $STIM_IDX
|
d12556d48d561a9ec4804196582c54717fff0430fe931cf20b25f7ae38154e75 | Shell | 261 | 13 | #!/bin/bash
SCRIPTS="$(pwd)/scripts/"
WHERE="local"
MODE="plastic"
MASTER_SEED=16
STIM_IDX=3
# Runs simulation
python3 ${SCRIPTS}3_simulation_assembly.py $WHERE $MODE $MASTER_SEED $STIM_IDX
# Plots
python3 ${SCRIPTS}3_plot_assembly.py $WHERE $MODE $STIM_IDX
|
f775d267070afcdf41b4a43a9d80e0e08b43cd74cc7d576fb9368f30c44e64f2 | Shell | 261 | 9 | #!/bin/bash
DATASET_DIR=$1
# Download PASCAL VOC12 (2GB)
wget -nc -P $DATASET_DIR http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar
# Extract images, annotations, etc.
tar -xvf $DATASET_DIR/VOCtrainval_11-May-2012.tar -C $DATASET_DIR |
d2c7516b8831bd69dbfcd19162f4dee04b3f8f8612abd5b6e4dbc788c697351b | Shell | 276 | 10 | #!/bin/bash
conda create -n 3DCoop
conda activate 3DCoop
# conda install perl-db-file bedtools
conda install bedtools samtools perl-list-moreutils perl-parallel-forkmanager r-tidyverse r-reshape r-huge r-igraph r-desctools r-ggnetwork r-intergraph
conda deactivate 3DCoop
|
e36ae90e3c5c9e0d09dabe64b222e3363dbb8843d6f5f66aa8e5063d2a219120 | Shell | 283 | 15 | #!/usr/bin/env bash
# update truth data
cd ./data-truth
# update zoltar truth
python3 ./zoltar-truth-data.py
# upload daily truth
python3 ./get-truth-data.py
# update nytimes and usa facts
cd ../
# Rscript ./data-truth/usafacts/usafacts.R
# Rscript ./data-truth/nytimes/nytimes.R |
6aa4d6ecd23110ab7a35a5d443e0c55d2ebce27fdcb66f1e8432b6747c32e472 | Shell | 294 | 8 | #!/bin/sh
echo -e " " \\t 2E=0.01 \\t 2E=0.005
echo -e x \\t Ymin--Ymax \\t Ymin--Ymax
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
do
echo -e $i \\t `./winflat -xvalue $i -sig 0.01 | awk '{print $2}'` \\t\\t `./winflat -xvalue $i -sig 0.05 | awk '{print $2}'`
done
exit 0
|
9f2071382699c98f0c0f98c940cc3c4e235971d87e05a42676e56fc88c292de9 | Shell | 294 | 17 | #!/bin/bash
cat > scripts/commands.sh <<HERE
#!/bin/bash
dockercmd () {
docker run --rm -w \$(pwd) -v \$(pwd):\$(pwd) "\$@"
}
HERE
grep 'dockercmd\|paste' README.md | \
grep -v 'alias\|substitute\|IMAGE' | \
sed 's/^[ ][ ]*//' \
>> scripts/commands.sh
chmod +x scripts/commands.sh
|
e34f0e26d74a7a1cb2ed05f2b8b0e7334fc323ece36844b47fa8f28bd47f877c | Shell | 305 | 7 | #!/usr/bin/env bash
# Automating pulling of data
python3 ./code/automate-download/auto-download-ihme-covid19.py ./data-raw/IHME/
python3 ./code/automate-download/auto-download-cu-covid19.py ./data-raw/CU/
python3 code/automate-download/auto-download-lanl-covid19.py ./data-raw/LANL/
bash ./travis/push.sh |
3c54c3f6c1b63e922f028eb93df6ef0d43759f9e791225734f7a8318da1037cf | Shell | 308 | 7 | # @Author: Weiyue Ji
# @Date: 2019-11-15 17:53:37
# @Last Modified by: Weiyue Ji
# @Last Modified time: 2020-09-08 14:59:04
# Note: Jobs -1; ND acquisition - 2
#!/bin/sh
/Fiji.app/ImageJ-linux64 --system --headless -macro image_preprocessing_windowless.ijm 'folder1_lamina, folder2|1, 2|log_20200908.txt' |
31b82b5b486c61de014cabd6bfa1fd1767b1df9a029003470839ad0a7e95383a | Shell | 309 | 11 | #!/bin/bash
# get id of interactivevis container
containerid=$( docker ps | grep interactivevis | cut -d" " -f1 )
if [ -z "$containerid" ]; then
echo "no running interactivevis docker instance found" > /dev/stderr
else
echo -n "stopping docker interactivevis instance: "
docker stop "$containerid"
fi
|
dbbddca8c732273858372d1547e7184cfab61fd424f4a628823ff737b880f039 | Shell | 319 | 19 | #!/bin/bash
SCRIPTS="$(pwd)/scripts/"
WHERE="local"
MODE="speedup"
for i in {0..2}
do
STIM_IDX=$i
MASTER_SEED=$(expr 17 + $i)
#source
# Runs simulation
python3 ${SCRIPTS}3_simulation_assembly.py $WHERE $MODE $MASTER_SEED $STIM_IDX
done
# Plots
python3 ${SCRIPTS}s3_plot_decay_speedup.py $MODE
|
9be43e51546494a4aec59bdb9e3e79efa6e06815a08f29d244b84c9903772b90 | Shell | 326 | 19 | rm -rf anat
rm -rf anat_mask
rm -rf bold_img
rm -rf bold_mask
rm -f fmap.json
rm -f fmri.json
rm -rf fmripinput
rm -rf out
rm -rf workdir
rm -f license.txt
rm -f multi_proc.yml
rm -f nohup.out
rm -rf output_report
rm -f product.json
rm -rf regress
rm -f t1w.json
rm -f t2w.json
rm -rf templateflow
rm -rf... |
500505bd4a34ff9e1dd783a2bf54da5aba0937f5bd17baf3f76e202421f3490c | Shell | 328 | 14 | #!/bin/bash
WHERE="local"
SCRIPTS="$(pwd)/scripts/"
REF_CV="0.4"
# Generates data for plastic connections
python3 ${SCRIPTS}2_single_readout.py $WHERE 'stp'
# Generates data for static connections
python3 ${SCRIPTS}2_single_readout.py $WHERE 'static' $REF_CV
# Plots figure
python3 ${SCRIPTS}2_plot_single_readout.py... |
df519e1844597e335e154ab1f173a704702367b2bb0264ec6cac3085e24e28e2 | Shell | 373 | 24 | #!/bin/bash
SCRIPTS="$(pwd)/scripts/"
WHERE="local"
MODE="plastic"
for i in {0..2}
do
STIM_IDX=$i
for j in {0..4}
do
MASTER_SEED=$(expr 5 \* $i + $j)
#source
# Runs simulation
python3 ${SCRIPTS}3_simulation_assembly.py $WHERE $MODE $MASTER_SEED $STIM_IDX
done
done
# Plots
python3... |
edcded14c898f97de9f7711142782e4c550525a44825f3464e22231fdc617c9b | Shell | 373 | 19 | #!/bin/bash
path_to_piq=$1
file_motif=$2
path_to_pwm=$3
file_bam_rdata=$4
dir_out=$5
dir_out_tmp="$dir_out/tmp"
mkdir -p $dir_out_tmp
dir_out_call="$dir_out/call"
mkdir -p $dir_out_call
num=$(grep ">" $file_motif | wc -l)
for idx in $(seq 1 $num)
do
Rscript $path_to_piq/pertf.r $path_to_piq/common.r $path_to_pwm ... |
b0a3c2ed716163558e65584c018ae155db82b92d1184e61c00f8f72b0822b647 | Shell | 398 | 15 | #!/bin/bash
cd ..
outdir=testout
mkdir $outdir
wget http://piq.csail.mit.edu/data/bams/k562.bam -O $outdir/k562.bam
mkdir $outdir/pwms
Rscript pwmmatch.exact.r common.r pwms/jasparfix.txt 139 $outdir/pwms
Rscript bam2rdata.r common.r $outdir/k562.RData $outdir/k562.bam
mkdir $outdir/tmp
mkdir $outdir/out
Rscript pe... |
78f55b484571f53e5734afff7430e685fe31f80f9371e360915ee6322f017732 | Shell | 402 | 19 | #!/bin/bash
if [ $# -lt 1 ]; then
echo 'usage: <path to config.yaml>'
exit 1
fi
config=$1
echo "Starting grobid service with config $config"
ARCH=$(uname -m)
if [ "$ARCH" = "aarch64" ]; then
LIB_DIR="../grobid-home/lib/lin_arm-64"
else
LIB_DIR="../grobid-home/lib/lin-64"
fi
java -Djava.library.path... |
0bd8766a013ceff179daebddda776a51064d6d00d33c536f4015aa5fdda77395 | Shell | 408 | 15 | #!/bin/bash
# 5th Nov 2018
# Script to (1) Simulate HOL tip-lengths using MSPRIME
# (2) Plot results in R
# Using msprime in conda
# Update 27th Feb
# Simulating and plotting both high and low N0 simulations
source activate msprime-env
rm MSP_Results.dat MSP_Results_Low.dat
python MSP_Holstein.py 1000 > MSP_Results.... |
41ebadbb6368a9a4e3bb1f97b560c409257838841d543152727541cf90074ac2 | Shell | 421 | 14 | # 4th Mar 2019
# Compiling gamma shapes into single file
# (to copy and paste in)
DAFS=($(seq 0.05 0.01 0.95))
NDAF=${#DAFS[@]}
rm gamma_shapes_HOL_highN0 gamma_shapes_HOL_lowN0
touch gamma_shapes_HOL_highN0 gamma_shapes_HOL_lowN0
for ((i=0; i<NDAF; i++));
do
cat HighNO/GSF${DAFS[${i}]}/sds_input.gamma_shapes >> gamm... |
03ee68d8bc66aa7a21cd6005b168b2689bebc78ea72d276e0407e7ec00a49441 | Shell | 440 | 14 | #!/bin/bash
surf=$1
echo "converting surfaces to .gii in $surf"
mris_convert $surf/lh.pial surface-vertices/left/pial.gii
mris_convert $surf/rh.pial surface-vertices/right/pial.gii
mris_convert $surf/lh.white surface-vertices/left/white.gii
mris_convert $surf/rh.white surface-vertices/right/white.gii
mris_convert $... |
bd2e4eee4e63b239a2c8cff0a1fc62cb5e1f880356167a9a5026c333011cb7c1 | Shell | 444 | 14 | #!/bin/bash
# weekly cron wrapper for measureHubSpace.sh, which writes its own dated report
# under /home/qateam/hubSpace/YYYY/MM/. The hgwdev wrapper copies the reports
# to /hive/users/qateam/hubSpace/hubspace/ and draws the charts page there.
#
# crontab entry, Mondays at 06:00:
# 0 6 * * 1 /home/qateam/hubSpace/m... |
09055efa73d7a4d4902237be79edca33593006270f821830bd48f95b23fd4560 | Shell | 451 | 23 | #SSes=(*ldhub*)
#SSes=(*ROME.IBS.META.fix-effect.for_share*)
#SSes=(*final_cc.Q_ldhub*)
#SSes=(*_ONE*)
#SSes=(*_TWO*)
#SSes=(*anx*)
#SSes=(*func*)
#SSes=(*anxbroad*)
#SSes=(*casesfrom*)
#SSes=(*20002_1287*)
SSes=(*mddformatted*)
for SS in "${SSes[@]}"
do
echo ${SS}
~/devel/ldsc/munge_sumstats.py \
... |
09ed64fab5a2aa633f52b8377884a5099c1e267a9c3ace655da79798081c4cd5 | Shell | 505 | 20 | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
docker network create --subnet=192.168.0.0/16 static_test_net
docker build ${DIR} -t mydockerursim
docker volume create dockerursim
docker run --name="mydockerursim" -d \
-e ROBOT_MODEL=UR5 \
--net static_test_net \
--ip 192.16... |
e3c9f53dc22605d275cdba0005080a314ea9441abec6333fe4230692677d42cb | Shell | 510 | 12 | #!/bin/bash
python cewas.py --sum_stats="data/test_data/SCZ2019_chr22.txt" \
--output="test_results.txt"\
--mapping="data/test_data/ensemblHG19_chr22.tsv"\
--cov_file_snp_fmt="data/test_data/ROSMAP_CEWAS_snp_methy_cov"\
--cov_file_methy="data/test_data/ROSMAP_CEWAS_methy_expr_cov.txt.gz"\
--predict... |
7e15462821f39ef5b6e3861511c16fa154eb646bc58c0408e025403fac7a0cc1 | Shell | 515 | 16 | # Tell bash shell to report errors and exit
set -e
# Re-validate data before uploading
bash ./travis/validate-data.sh
# Upload to zoltar at every merged pull request
echo "Upload forecasts to Zoltar "
bash ./travis/upload-to-zoltar.sh
# Replace the validated_files.csv with locally_validated_files.csv at every build ... |
5d3087dd9e281bdf0d9b640aca13c5a5c9196d66fc5acdacc4369fe8a34f54e5 | Shell | 517 | 16 | #!/bin/bash
git checkout master
git pull
Rscript data-truth/usafacts/usafacts.R
git add data-truth/usafacts/raw/covid_confirmed_usafacts.csv
git add data-truth/usafacts/raw/covid_deaths_usafacts.csv
git add 'data-truth/usafacts/truth_usafacts-Cumulative Cases.csv'
git add 'data-truth/usafacts/truth_usafacts-Cumulati... |
985e64dc7e2d3568204b57fc9c9bac9515aca17472b9d39fd5bd9a5db65d58e2 | Shell | 517 | 17 | #!/bin/bash
git checkout master
git pull
Rscript data-truth/nytimes/nytimes.R
git add data-truth/nytimes/raw/us-counties.csv
git add data-truth/nytimes/raw/us-states.csv
git add data-truth/nytimes/raw/us.csv
git add 'data-truth/nytimes/truth_nytimes-Cumulative Cases.csv'
git add 'data-truth/nytimes/truth_nytimes-Cum... |
f240d7500cc1c64e143b0dd81047e552f0cc8332098617aa94f0681bc20ea16d | Shell | 532 | 17 | #!/bin/bash
WHERE="local"
SCRIPTS="$(pwd)/scripts/"
# Generates rate and cv matrix from theory
python3 ${SCRIPTS}1_rate_cv_theo.py $WHERE
# Generates firing rate data from simulation
python3 ${SCRIPTS}1_single_neuron_rate.py $WHERE
# Generates subthreshold membrane potential data from simulation
# has to be execute... |
10f66bccd7cc4e9209f366bd185660d1f9901f137d8d2ca6d51c1102e5347d2a | Shell | 540 | 20 | #!/bin/bash
set -e
echo "Building image..."
docker build \
-t $REGISTRY/ts-bench:latest \
-f Dockerfile .
echo "Fetching credentials from AWS..."
AWS_ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
AWS_REGION=$(aws configure get region)
ECR_PASSWORD=$(aws ecr get-login-password)
REGISTRY=... |
71fdc5fcd2ee829597fc8710e3bbacbb42cda1f4d0246701e0a6e544b07e53b0 | Shell | 543 | 26 | data=/home/rjp/1_OVGU/3_Data_publication/Clean_data
list='CON_1 CON_2 CON_3 CON_4 CON_5 CON_6 CON_7 CON_8 ALB_1 ALB_2 ALB_3 ALB_4 ALB_5 ALB_6 ALB_7 ALB_8 ALB_9 ACH_1 ACH_2 '
cur_path=$(pwd)
for i in $list; do
subj=${i}
cd $data/sub-${subj}/dt-neuro-dwi*/
path=$(pwd)
dwi=$path/dwi.nii.gz
bvecs=$path/dwi.bvecs... |
cc0611688c25f5e3d296b65b8d2ff86cb026a522b2b22841bbbdf22f3ccb5a0a | Shell | 554 | 13 | #!/bin/bash
DATASET_DIR=$1
# Download COCO-Stuff 10k (2GB)
wget -nc -P $DATASET_DIR http://calvin.inf.ed.ac.uk/wp-content/uploads/data/cocostuffdataset/cocostuff-10k-v1.1.zip
unzip -n $DATASET_DIR/cocostuff-10k-v1.1.zip -d $DATASET_DIR
echo ===========================================================================... |
e874f48204c271c7b3cbb54283c1ab812225715958ff6f192bcacfdee17cbf58 | Shell | 554 | 23 | #!/bin/sh
setup_git() {
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"
}
commit_website_files() {
echo "Commiting files..."
git add .
git commit --message "[skip ci] Travis build: $TRAVIS_BUILD_NUMBER"
}
upload_files() {
echo "Uploading files..."
git rem... |
d165dd1f3aef35e94f4c3fac131a2fe6377f08bdd38d1ca167670d20aae486aa | Shell | 562 | 9 | ## each sample (C1-C4, S1-S4) was aligned individually, shown here is the code for one sample
## the same command was used for all other samples
## some samples (such as C2) were sequenced twice because the first run was done at
## sufficient depth
# C2
/athena/abc/scratch/paz2005/bin/src/cellranger-3.0.2/cellranger c... |
e9b7f4949cca751b42cd2e74f66c3f46d8985d66cb14256fe6505599357bdf3b | Shell | 571 | 9 | cd /exports/igmm/eddie/GenScotDepression/shen/PGRS/MDD_PRS_ABCD/
awk '{print $1,$2,$3,$8,$9,$10}' /exports/igmm/eddie/GenScotDepression/shen/MDD_meta/mdd_meta_Shen/23andmePGCUKBnoMRI_20181028_shen_3cohorts.meta > pre.prsice.meta
sed -i -e '1s/MarkerName/SNP/' -e '1s/Allele1/A1/' -e '1s/Allele2/A2/' -e '1s/Effect/BETA... |
09866eb51e21a98f9952aae26133a91aa38ab3d63415cd039d1ef8805d0fa29c | Shell | 577 | 24 | #!/bin/sh
setup_git() {
git config --global user.email "git@github.com"
git config --global user.name "Github Actions CI"
}
commit_website_files() {
echo "Commiting files..."
git add .
git commit --message "[skip ci] Github Actions build: $GITHUB_RUN_NUMBER"
}
upload_files() {
echo "Uploading files..."
... |
f06556fc51d948cecd227dc7ac4ba895b564421714923402e0b60e8b20e09e9d | Shell | 580 | 9 | #!/bin/bash
# toggle command line options if required:
# -t to display output in current terminal, without input
# -it to run interactively with option to enter input (but then also remove the ampersand at the end)
# -d to run detached, without showing output or log messages
# use --restart unless-stopped to run... |
9ce39fa8e81f7bf14c2e477ce7139bf8fe18972035f8be63a4651331d8dadfca | Shell | 586 | 18 | # @Author: Weiyue Ji
# @Date: 2020-09-09 01:08:46
# @Last Modified by: Weiyue Ji
# @Last Modified time: 2021-06-06 18:00:04
# @==========explanation========
# @inputs:
# @annotName = input_list[0]
# @slicetype = input_list[1]: 0-v1, 1-v2
# @num_angleSection = input_list[2]: 40, must be an even number.
# @num_out... |
077dd511d8b628dbeeae96b5eeaadb1e9919dd11883f81ddd14e44c36c9c0b44 | Shell | 589 | 21 | #!/bin/sh
# This is a WIP! I have not gotten deployment to work on Travis yet. - Katie
# setup_git() {
# git config --global user.email "travis@travis-ci.org"
# git config --global user.name "Travis CI"
# }
# push_to_gh_pages() {
# git fetch origin master
# git checkout origin/master -- ./visualization/vis-ma... |
4407e6eef99a0952637e8b1e48c397118683ac0897749f0190229333eb36c82d | Shell | 609 | 26 | #!/usr/bin/env bash
# Script to download and setup directory structure
set -e
# Parse data model data files to flusight format
npm run test
npm run parse-data
# Parse through forecasts and update format
python3 ./scripts/convert_forecasts.py
# Get truth data
# (no longer needed because JSON are generated by weekly ... |
bf288f8d1914e9c145221bba8e66afc263ac0ec1916af2e90959ee25369624ef | Shell | 646 | 29 | #!/usr/bin/env bash
# Tell bash shell to report errors and exit
set -e
echo "updating truth data..."
# update truth data
cd ./data-truth
# update zoltar truth
python3 ./zoltar-truth-data.py
# upload daily truth
python3 ./get-truth-data.py
# update nytimes and usa facts
cd ../
echo "updating nytimes truth data..."
p... |
cbd82b39628b48c2af532edad0a26014131b2ade9a543b304c2c7370cb2c4928 | Shell | 659 | 30 | #!/usr/bin/env bash
set -e
setup_git() {
git config --global user.email "git@github.com"
git config --global user.name "Github Actions CI"
}
commit_website_files() {
echo "Commiting files..."
git add .
git commit --message "Build local visualization: $GITHUB_RUN_NUMBER"
}
upload_files() {
echo "Uploadin... |
369721c7034fb72717779f8d9d67b800e5db06325b0c65d3e34768985350c510 | Shell | 671 | 23 | #!/bin/bash
set -beEu -o pipefail
TRASH_CLEANER="/home/qateam/hubSpace/tusdTrashCleanerHubspace.bash"
VICTIM_LIST="chmalee@ucsc.edu"
# the cleaner uses this exit code when there was nothing to delete
NOTHING_TO_DO=100
# run the trash cleaner and hang on to its output, the || keeps set -e from
# killing us before we ... |
249d17392a1faf83450b7110aca7cda206c8a8cd822075e9eaa2c54d3a2911d3 | Shell | 679 | 21 | #!/bin/bash
if [ ! -e Trinity.fasta ]; then
gunzip -c Trinity.fasta.gz > Trinity.fasta
gunzip -c genome_alignments.gmap.gff3.gz > genome_alignments.gmap.gff3
fi
../../TransDecoder.LongOrfs -t Trinity.fasta
../../TransDecoder.Predict -t Trinity.fasta $ARGS
# gmap was used to align the Trinity.fasta transcr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.