sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
354086df3e58d8278afd70ed187596ae56865e6b4ca781ba08575333fbbfcadb
Shell
4,520
117
#!/usr/bin/bash ################################################################ ################################################################ # Step 3: Training BGW-TWAS gene expression prediction model by EM-MCMC algorithm # Employ Makefile generated by a Perl script ##############################################...
9808e3deec83dbc06309d7b389c96138319128e96fbe7aed4c992aa11459d1d6
Shell
4,588
94
#!/bin/bash # Create dir if not existing mkdir -p data/ query_tool-popularity() { ## [months|24]: Most run tools by month handle_help "$@" <<-EOF See most popular tools by month $ ./gxadmin query tool-popularity 1 tool_id | month | count ---------------------------+--------...
1af0d52376d44d341da2e15818575eaacc4b9cdcb3db53fe9bbb6383c9da8b9d
Shell
4,598
137
#!/bin/bash # # Perform SyN warping from individual to template space using T1 cost function only # # USAGE : tmp2ind_T1.sh --T1ind=<Individual T1w> --T1tmp=<Template T1w image> --Atmp=<(Probabilistic) atlas> --nthreads=<nthreads>" # # AUTHOR : Mike Tyszka # PLACE : Caltech # DATES : 2016-09-30 JMT From scratch # ...
b7e4e9d8ffa5c1597eb239aebf97804e818c5cdc74640f55e686105faa2e4457
Shell
4,611
135
#!/bin/bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) STRIDE_DIR="${SCRIPT_DIR}/stride" # Function to check if a command exists command_exists() { command -v "$1" >/dev/null 2>&1 } # Function to install build tools install_build_tools() { if [[ "$OSTYPE" == "linux-gnu"* ...
194f35dee3c045c101d28841e853848d1c1e60a87d678f3d499c521b78d68e8d
Shell
4,625
201
# number of replicates of experiments n_exp=1 # TODO # config data path=./data/ V1e4=ns_V1e-4_N10000_T30.mat swe=2D_rdb_NA_NA.h5 cos=ns_V0.0001_N1200_T30_cos4.mat swearena=ShallowWater2D # data with T (number of steps into the future to predict) declare -A datas=( ["$V1e4"]=20 ["$swe"]=24 ["$cos"]=10 ["$swearena"]=9...
53d3f93ec8b258790fff32e6f3881a26b0201425b13ea34fe8bbb2a62c1c4f4c
Shell
4,636
118
#!/usr/bin/bash ################################################################ ################################################################ # Step 1: obtain summary statistics (aka Score Statistics) # Runs single-variant GWAS on the training sample genotypes and available expression data. # first extracts gene l...
7027f1628cc23c69fcc8e896b7472a6ffe5363056493b169e2a77f5ab6093cb9
Shell
4,660
129
#!/usr/bin/env bash set -euo pipefail python_bin=${PYTHON_BIN:-python3} sleep_seconds=${SLEEP_SECONDS:-60} dry_run=${DRY_RUN:-0} log_mlflow=${LOG_MLFLOW:-1} log_tb=${LOG_TB:-0} log_dvclive=${LOG_DVCLIVE:-0} device_mode=${DEVICE_MODE:-cuda} gpu_count=${GPU_COUNT:-1} cpu_threads=${CPU_THREADS:-1} # Add cross-validatio...
b6da122eb32278f845280db0578ca54bfb5dccbe7b38ec31f8c3cd217ee10110
Shell
4,677
117
#!/bin/bash # Slurm Parameters #SBATCH -p medium #SBATCH --time 8:00:00 #SBATCH --job-name=neoloop #SBATCH -o HIC_pipeline%A.log #SBATCH -e HIC_pipeline_%A.err #SBATCH -n 1 #SBATCH -c 10 #SBATCH --mem 50G #SBATCH -C scratch #SBATCH --array=0-32 ifs=(GSC457B-Arima-allReps-filtered.mcool \ GSC390B...
1eeb5d4f127d8b8b0e9b94894c0d4dced82f42a1247a4119f40bb1001fa5198e
Shell
4,691
164
#!/bin/sh GPU=3 autoencoder_path=<set this variable> # name of root folder containing the trained autoencoder model (folder's name starts with time stamp) suffix='trained_models/checkpoint_bst_rmsd.pt' # name of the trained autoencoder model, do not change this eval_epoch=<set this variable> # epoch of latent diffusi...
cbaa1b2a7238041e86c37eb036ed9d23b3fc224a602620fddd1bbf1fd3244066
Shell
4,829
123
#!/usr/bin/bash # Tool Tabix is required for running this script # R library data.table and dplyr are required ################################# VARS=`getopt -o "" -a -l \ BGW_dir:,wkdir:,gene_name:,BGW_weight:,test_geno_dir:,test_geno_filehead:,GTfield:,test_pheno:,num_cores:,clean_output: \ -- "$@"` if [ $? != 0 ]...
247f0feca56dbbebc1b2d0b6e8c93d02342db5458ce275ef4ce64c8dd1bbcfe8
Shell
4,851
109
#!/bin/bash if [ $# -lt 1 ];then echo "" echo "Runs GRE with FatNavs recon on the CUBRIC cluster." echo "" echo "Usage: cluster_submitGRErecon.sh <full_path_to_input_raw_twix_file> <full_path_to_output_root_folder>" echo "" echo "If you pass just one input file you will get the outputs in the current working fol...
57a3bc7353158ec5c1b872ef653ab6e79a18e7f904180f684e3089c9f77bdad9
Shell
4,976
161
#!/bin/sh # # Copyright (C) 2014-2015, 2020 Genome Research Ltd. # # Author: James Bonfield <jkb@sanger.ac.uk> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, inc...
ecedc75a87a214b01dbabacc3d570e27b52c60290094dc433763a2388dc9acdc
Shell
5,056
137
#!/bin/bash # Nicole Gay, updated for single-level croo output structure # 13 May 2020 / 2026 # ATAC-seq alignment stats # # Reads croo filetables to locate genome BAMs (handles cache hits automatically), # copies BAMs locally, runs samtools idxstats in parallel, then collapses to # merged_chr_info.csv. # # Requirement...
c11d796e451b281c45f2009df770f63e0fabcc6af73b24b95d659c4f5ec35d63
Shell
5,073
110
################################################################ ################################################################ # Step 0: Set up directories of the tool, input files, and working directory for implementing BGW-TWAS. ################################################################ ####################...
1d4fa6ba5dd762cfdf6f34394946964a554926901097fe5ebf0e97a96a4c95ed
Shell
5,172
138
#!/bin/bash set -e module load unstable git python-dev py-notebook python -m venv venv source ./venv/bin/activate pip install seaborn pip install pyarrow echo "********************************************************************" echo " Useful locations" echo "*****************************************************...
34ac89b0d79350434ad54e276c4d147725f5ec0cd41b7b91ed1b49bae8034176
Shell
5,318
138
set -e # Check for spaces in the current directory path for item in $PWD ; do if [ "$item" != "$PWD" ]; then echo "${0##*/}: error: repository path must not contain whitespace characters" >&2 exit 1 fi done if [ -f run.sh.conf ]; then . ./run.sh.conf fi # Look for a GitHub token if [ -n "...
861d962b77cb325591ae6232642cdb27e9ec5f8abbd4936af796d7e4ed20f9ed
Shell
5,327
142
#!/bin/bash # Script to make plots for figures # A. M. Chakrabarti # 13th April 2021 conda activate clipplotr # Specify local path to clipplotr CLIPPLOTR=~/github/clipplotr/clipplotr # ========== # Zarnack - Figure 1 # ========== $CLIPPLOTR \ -x 'hnRNPC_iCLIP_rep1_LUjh03_all_xlink_events.bedgraph.gz,hnRNPC_iCLIP_r...
77115627ccc9b4791928626cb4097b1cb3bc602dfd9c171a291016cc8ab57034
Shell
5,428
105
#!/bin/bash ## OURS ALL vs GTEx ENSEMBL 107 ALL singularity exec ../../../../singularity_containers/nanopore.sif gffcompare -r \ ../../../data/processed/1st_rebuttal/discovery_comparison_bambu/GTEx_ENSEMBL_107_NEW_ALL.gtf \ ../../../data/processed/other/novel_only_annotations/all_novel_bambu.gtf \ -o OURS_...
c86f9518d13dd947a60a597669278295ece4d1b3dc6324424fbb71ab2d0f933a
Shell
5,461
154
#!/bin/bash # Author: Nicole Gay, Anna Scherbina # Updated: 2026 # Purpose: Generate per-phase peak x sample read counts matrix from tagAlign and # peak files across all tissues within a single phase. Run this script # once per phase (e.g. pass1b-06, pass1ac-06). The master peak file is # bui...
9d4c68e6648d1ec5bb708070643ac9004e34b064f92f8fee0feab7400c4b86bf
Shell
5,540
143
#!/bin/bash # This script implements the evolution-based (phylogeny & taxonomy) baseline algorithms for cross-validation. # Phylogenetic Hidden State Prediction (R) R phylo_estimate = function(tree,tip_states,method,Ntips,Nstates){ if (method == "MK"){ hsp = castor::hsp_mk_model(tree,tip_states,Nstates) }else...
14932f037dabcec7646614872002994b55b32c7d47a91d00de0127236a0d3bf4
Shell
5,631
159
#!/bin/bash # ANTs B-spline SyN warp CIT168 head template(s) to an MNI space # - currently supports FSL MNI152 1 mm or MNI ICBM152 asym nonlin 2009c 1 mm spaces # - uses whole head templates for warping # - T2w templates used if available (eg with 2009c) # - Gray matter probabilistic tissue mask # # USAGES # AUTHOR : M...
8819dee9932daca9d3f049efe3e88c897aab54336aa97b68d3997b68aa79eb91
Shell
5,636
152
#!/bin/bash # Usage function usage() { echo "Usage: $0 [OPTIONS] [PDB_FILE] [MODEL_TYPE] [OUTPUT_DIR]" echo echo "Options:" echo " -i, --interactive Run in interactive mode (default if no PDB file provided)" echo " -c, --cpu Run using CPU only (no GPU acceleration)" echo " -h,...
f4a9e9fa6fde4e43f7a6a56c028b60dbf6f930b7941ea563598b5b5b673a2e82
Shell
5,713
182
#!/bin/bash # # Perform SyN multimodal warping from individual to template space using joint T1 and T2 cost function # # AUTHOR : Mike Tyszka # PLACE : Caltech # DATES : 2016-09-30 JMT From scratch # 2017-04-10 JMT Fixed dimensions bug in pAtlas resampling # 2017-04-11 JMT Duplicated Adam Mezher's f...
27e2105ee62f885555ba67311f3db68dc9f4e04fe1cd2a5319b6585539db70de
Shell
5,816
164
#!/usr/bin/env bash # This script will perform Level 1 statistics in FSL. # Rather than having multiple scripts, we are merging three analyses # into this one script: # 1) activation # 2) seed-based ppi # 3) network-based ppi # Note that activation analysis must be performed first. # Seed-based PPI and Network PPI ...
f2bf44ce438fe18f4e25f53a01d01c1154337cf049089239521e583bd945d8ea
Shell
5,873
139
#!/bin/bash # This script will perform Level 3 statistics in FSL. # Rather than having multiple scripts, we are merging three analyses # into this one script: # 1) two groups (older vs. younger) # 2) two groups (older vs. younger), with covariates # 3) single group average # # This script can also run randomise (pe...
b31394ef6a84adec64f7823627f70d357dfcbbed1bb98766b268c1a73e918b28
Shell
5,924
198
#!/bin/bash #------------------------------------------------------------------- # Statement: U-BDS is not responsible for the misuse of this script #------------------------------------------------------------------- ################### ### DEFINITIONS ### ################### set -ueo pipefail progname=`basename $0...
6cc90b6583396c593b546d5bdf7cbde62140b0b1e36f82950241127be2826214
Shell
5,962
160
#!/usr/bin/env bash # Shared ablation trainer. Wrappers set ABLATION_MODE + EXP_NAME. # Modes: full | phase1_only | phase2_only | joint_ep_k1 set -eo pipefail cd "${SLURM_SUBMIT_DIR:-.}" [[ -f .env ]] && set -a && source .env && set +a : "${DATAPATH:?set DATAPATH in .env}" export PYTHONPATH="${PWD}${PYTHONPATH:+:$PYTH...
16ef6d3a496e08c50f3faf6ced7975809b37ea388296e8daa1fb38d1649d88f3
Shell
6,068
164
#!/bin/sh # Wrapper script for docker. # # This is used primarily for wrapping the GNU Make workflow. # Instead of typing "make TARGET", type "./run.sh make TARGET". # This will run the make workflow within a docker container. # # The assumption is that you are working in the src/ontology folder; # we therefore map the...
bf23d731f0a44ab6af7ba6cba13cbe40b0984da729f340e82b610b95a691f8bf
Shell
6,147
193
#!/bin/bash set -eu base_ALLDATA="/media/neptun/LocalDisk16TB/Athena/Bracha_et_al_accepted_032024/FastSSD_Oded/baseline2_NOV21" base0="/media/neptun/LocalDisk16TB/Athena/Bracha_et_al_accepted_032024/paper_data/3D_mouse_brain_data" #base0="3D_mouse_brain_data" samples0=(4834 4836 4844 4849 4851 4858 4864 4868 4837 4840...
244932dfa792c9aa9182aed2947eca7157e6b7d7c18e024d79a4c040418858d3
Shell
6,179
208
############################################################################### # # Main execution script for the RES workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: Ap...
285d1ff92c38cbb19cb69132eec4baa3f7bb68253c5caeb3f9d57a2ef5002a96
Shell
6,179
208
############################################################################### # # Main execution script for the CSM workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: Ap...
5f72c81a30f3e1e7020c90c538d64f73d3128ece72bd40c4195c0e6b18b84427
Shell
6,179
208
############################################################################### # # Main execution script for the ASE workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: Ap...
71d03ff184ebdc605eb94ee05bb39e865d67c31456d10cbb1c87cae0fa9ab532
Shell
6,179
208
############################################################################### # # Main execution script for the PQA workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: Ap...
773d9cc9b6ec758f87ee0353487d953dbdae1e27d595bb9deb0c9d118678ba66
Shell
6,179
208
############################################################################### # # Main execution script for the KPC workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: Ap...
c562976fce712c7df0f5c7771650bc95cfcb22a57d999c9f42c4b5356e79d3f5
Shell
6,179
208
############################################################################### # # Main execution script for the QEI workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: Ap...
d7b653465b9a139030be5edf2ab980bda84276fabf01d7d54f9b15c5a976318c
Shell
6,179
208
############################################################################### # # Main execution script for the TPA workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: Ap...
e04480f85b661f5c6702ff156fa88f64ad7b040a9fe1a95b24d7a33fe2030553
Shell
6,179
208
############################################################################### # # Main execution script for the PAQ workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: Ap...
e8560ba8ab7377a0e1e586ec05adb6ee4f7fc34c86864b38e85fa702bdb47080
Shell
6,179
208
############################################################################### # # Main execution script for the MAE workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: Ap...
72e4feebc8061fd7d0cac2c91d9ab03948d36e33fbd090d218068b863398bf3e
Shell
6,245
105
#bin/bash set -e # It is almost copy of what is happened in FSL FEAT # SA, Ox, 2020 # We should already have example_func # The output of this function will be example_func2standard.mat, but what is important is the warp files # The warp files can be used later to take the whole 4D image into the standard space. # OR...
d3ec4fce72366f2efe3f0bdadd8265552654b27ad4577467d8bbaefc7f839b4b
Shell
6,272
248
#!/bin/bash #Copyright 2023. TU Graz. Institute of Biomedical Imaging. #Author: Moritz Blumenthal export BART_COMPAT_VERSION="v0.9.00" set -eu SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) helpstr=$(cat <<- EOF Creation of k-space and trajectory from dat file -h help EOF ) usage="Usa...
f29a01290adf7b298982229948c072049dd27cc807cce4f689dda1033302ca5f
Shell
6,291
160
#!/usr/bin/bash ################################################################ # Step 2: Prune blocks # Select a subset of genome blocks (up to ${max_blocks}) for joint model training by BGW-TWAS # Cis blocks are always selected # Rank trans blocks with minimum single-variant eQTL p-value < ${p_thresh} by the smalle...
d7f1e1b1eae5da30d6fc826c8d6ce3508d7b7842707f7f6e1f8b888dff0797b3
Shell
6,542
137
#!/bin/bash # This script finds the number of signficant results and extracts them for single clusters # for comparisons between wins and losses for social + doors, ISTART 2022 # Jimmy Wyngaarden, August 2022 # Ensure paths are correct irrespective from where user runs the script scriptdir="$( cd "$( dirname "${BASH...
38c17e8a53220de07c08568d87b98f6d55c690473c1dee06470810413ccf82ae
Shell
6,549
277
#!/bin/bash #Copyright 2023. TU Graz. Institute of Biomedical Imaging. #Author: Moritz Blumenthal set -eu SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) DATALIST=$SCRIPT_DIR/13_T1_hres.txt SCRIPT_DIR=$SCRIPT_DIR/../../01_scripts RAWDIR=${RAWDIR:-$SCRIPT_DIR/../00_data/10_raw_data} TRNDI...
fc5f9632421a4e4f1a09f07683df4d2c7b6f93dbd06cb3f1e916c7d22c495236
Shell
6,554
277
#!/bin/bash #Copyright 2023. TU Graz. Institute of Biomedical Imaging. #Author: Moritz Blumenthal set -eu SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) DATALIST=$SCRIPT_DIR/13_T1_hres.txt SCRIPT_DIR=$SCRIPT_DIR/../../01_scripts RAWDIR=${RAWDIR:-$SCRIPT_DIR/../00_data/10_raw_data} TRNDI...
b9e607b5622514ee3293b5dbb96565f1df001ee7c8f65a5f89a355bada1f8972
Shell
6,702
164
# Supervised learning classifiers predict the categorical metadata classes of unlabeled samples by learning # the composition of labeled training samples. For example, we may use a classifier to # diagnose or predict disease susceptibility based on stool microbiome composition, # or predict sample type as a funct...
390a95d6fa5b178eebc03477ee125ba60479390b0fdb456a2cb4979f94541002
Shell
6,935
165
#!/bin/bash set -e # nki_bids_mpp.sh <SubID> <SesID> <TR> <TASK> # INPUTS: # All paths assume BIDS structure # SubID : BIDS format SubjectID (including sub-, e.g. sub-A00001234) # SesID : BIDS format Session ID (including ses-, e.g. ses-BAS1) # TR : TR in ms # TASK : TaskID...
2e55994e67ea15bebac10d2901999984d08d2870b2c124b344e398755bf4e6af
Shell
7,130
166
#!/usr/bin/env bash # Written by Wu Jianxiao and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md # This script uses the mappings generate using Registration Fusion approach to project batch data in a volumetric space to fsaverage surface ########################################### #...
927a5669257fe1527b0195efc12f569020262cd3e042e31932553c2360ca3040
Shell
7,267
118
#!/usr/bin/env bash # definitions scriptDir=/vols/Scratch/comparative_scripts/m2_homologies workDir=$scriptDir/seeds mkdir -p $scriptDir/seeds refImg=$FSLDIR/data/standard/MNI152_T1_2mm_brain # M1 - Primary Motor Cortex coord=($(echo 40 -20 58 | std2imgcoord -img $refImg -std $refImg -vox -)) fslmaths $refImg -mul 0...
6a91b1d464f441895950b96dbb327da915845bbde42b7f72f94d13bda5f21cce
Shell
7,455
272
#!/bin/bash # Load Local Variables source ./SET_VARIABLES.sh #################################### # Put together the data from various files # Assemble all DIFF_SCANS from raw nifti folder echo "Loading Data" ${FSL_LOCAL}/fslmerge -t ${DIFF_DATA_DIR}/data.nii.gz \ ${NII_RAW_DIR}/*X${DIFF_SCANS[0]}P1.nii.gz \ ...
208338ba7ffc2f8b2e23d8a597a8aa3d683330a467793345767686235a344928
Shell
7,588
142
#!/usr/bin/env bash ############################################################################### # # Download PolyAsite atlas (and select canonical chromosomes +MT) # for a given organism (supported: hsa/mmu). # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioi...
e198801aaf90bf3b707090126c68a87e1117d4312c2599338b16f17f64ae6bf2
Shell
7,648
223
#!/bin/bash # farm.py needs to be on the path # # Changes by AH: #1. use blastx instead of blastall -p blastx #2. change directory paths #3. ###################################################################### # # Arguments # arg_input_seq=$1 arg_output_result=$2 arg_working_dir=$3 arg_output_evd_plot_feat_b...
d7df113f1163d64157a1156c9b183e1399a9f41b893a770a21b9b862217fe5a5
Shell
7,993
398
# FEAT version number set fmri(version) 6.00 # Are we in MELODIC? set fmri(inmelodic) 0 # Analysis level # 1 : First-level analysis # 2 : Higher-level analysis set fmri(level) 1 # Which stages to run # 0 : No first-level analysis (registration and/or group stats only) # 7 : Full first-level analysis # 1 : Pre-proce...
e2150fc95114250b6e96c24f54ec8eeb1e884f46b64fc548865ba32a61c08b1d
Shell
8,034
250
#!/bin/bash # Load Local Variables source ./SET_VARIABLES.sh cp ${FLASH_DIR_FA05}/data_degibbs.nii.gz ${FLASH_DIR_WARP}/data_flash.nii.gz echo 'Runing N4 on FLASH Data' for i in $(seq 1 $N4_ITER); do current_iter_flash=${FLASH_DIR_WARP}/data_flash_N4_${i}x.nii.gz current_iter_flash_field=${FLASH_D...
6b9271f220628858b3a5f219d56d7513ff3d450064e13e9013a7637bbc28717d
Shell
8,174
239
#!/bin/bash # Wrapper script for running the ENCODE ATAC-seq pipeline ### # working directory needs to be base directory (not src/) # USAGE: src/atac-seq-human-wrapper.sh ### set -eu if [ $# -lt 2 ]; then echo "Usage: ./server_setup.sh [GCP_REGION] [GCP_PROJECT] [CROMWELL_OUT_DIR] [CROMWELL_LOC_DIR] [REMOTE_KEY_FILE...
538eeb89e6ddd59c8ff06e84dc13b4d2bf4e15b588b8e1110305cf271bb56609
Shell
8,416
204
# # mexopts.sh Shell script for configuring MEX-file creation script, # mex. These options were tested with the specified compiler. # # usage: Do not call this file directly; it is sourced by the # mex shell script. Modify only if you don't like the # defaults after ru...
b87d7164894e52284517a92b222f989059848b8d9b3970c6ba68bca6adf4213e
Shell
8,426
278
############################################################################### # # Main execution script for the MAPP workflow # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 29-11-2021 # LICENSE: A...
4fda3a820100c257d018c2af0efe2aec71b1c4761acd6feb259b1d7378a5285e
Shell
8,618
281
#!/usr/bin/env bash git --version > /dev/null if [ $? -ne 0 ] then echo "Could not find git executable" exit 1 fi rg --version > /dev/null if [ $? -ne 0 ] then echo "Could not find rg (ripgrep) executable" exit 1 fi top_level=$(git rev-parse --show-toplevel) cd $top_level ret=0 opts="--perl-regexp --ignore...
201af3d2f40aaf3ca0b76297222f462fcc93611c7ef28723113bdb7ad375d3cd
Shell
8,751
69
#!/bin/bash ## Only keep the first column that contains read ids and skip the header tail -n +2 ../../../../data/bernardo/processed/01.exploratory_analysis/sample_1092_PAM41667_mapped_filtered_sorted_novel_read_ids.txt | awk -F'\t' '{print $1 > "sample_1092_new_read_ids.txt"}' tail -n +2 ../../../../data/bernardo/pro...
5ea037fe69c0658e0e26c56e9ced5e482c214a11d8ea2fb147f74091f2a55c99
Shell
8,826
202
#!/usr/bin/env bash # ============================================================================= # BrainCell container entrypoint # # Responsibilities (in order): # 1. Clone (or update) the BrainCell repo at $BRAINCELL_DIR # 2. Compile MOD files in EACH of the four BrainCell mechanism locations, # in place....
5d6c460bbae82ad6988405ea88fbed3185a7a4b4e4792efc327ad78403cbcae5
Shell
8,875
311
# overlap of edges between aicda and GhmC # srun --nodes=1 --ntasks=1 --cpus-per-task=8 --mem=50g --time=04:00:00 --pty bash -i name=activ72h_B g2a=/mnt/BioAdHoc/Groups/RaoLab/Edahi/Projects/09.TimeCourse5hmC/ForFerhatGit/ghmc_to_abc g2a_input=$g2a/ABC_input char_out=$g2a/post_analysis/characterization_abc_k27ac_5hmc ...
0dd87bee110cfaa20dee734ba79ced770090da0993d04e377835d9716575662a
Shell
9,074
258
#!/usr/bin/env bash ############################################################################### # DDSurfer DTI Processing # # This script estimates the diffusion tensor, derives scalar maps, registers # them to the atlas reference image, and writes the registered outputs into the # internal cache consumed by prepr...
8a263c78b36cbca65680bcf6314aaddd6a1e331a0cc01d512b8f6a1f217ef4b2
Shell
9,322
223
#!/bin/bash # This script records the codes for preprocessing of cross-validation data. # Data Cleaning (R) R reads = seqinr::read.fasta(file = 'data/raw_data/rrnDB-5.7_16S_rRNA.fasta', as.string = TRUE, forceDNAtolower = FALSE, whole.header = TRUE) reads = data.frame(unlist(reads)) reads= ...
ee7ddbd26991b3a8d42224434fa149891a3bbae4a833d18fb3833d49084aee27
Shell
9,609
254
#!/bin/bash # This script records the codes for preprocessing of test data. # Data Cleaning (R) R library(seqinr) library(readr) library(dplyr) library(Biostrings) library(DECIPHER) library(ggplot2) library(stringr) reads = seqinr::read.fasta(file = 'data/raw_data/rrnDB-5.8_16S_rRNA.fasta', as.string = TRUE, ...
2406c8da7c37224994cc244467ecfe9b3b3ce9b35c938129cc58da86b83941e1
Shell
9,611
228
#!/bin/bash # This script searches the hyperparameters for ANNA16 (Python) python import numpy as np import pandas as pd from sklearn.metrics import mean_squared_error from math import sqrt from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout import matplotlib.pyplot as plt...
3289f17c0f946f9a9ece5db42920ba7d0b70414c1cfc298e10859310ddc9001e
Shell
9,684
303
#!/bin/bash echo 'Running dMRI processing, make sure to have ANTS running (for N4), next to otherwise active environments' # Load Local Variables source ./SET_VARIABLES.sh #################################### # Noise Nias Correction echo 'Noise Bias Correction' # Noise Debiasing with Noisemap acquisition python3 $...
292775519c1f52abb17c81237acb8009b064594d1535175348afc5507a4fd9ae
Shell
9,754
298
#!/bin/bash set -x -e ATLAS_DIR=/project/hippogang_3/sravikumar/atlasPHG2019 source $ATLAS_DIR/scripts/common.sh TAU_DIR=/project/hippogang_2/pauly/tau_atlas WORK_DIR=$ATLAS_DIR/tau_atlas mkdir -p $WORK_DIR function vis_to_raw_space() { ID=${1?} ID_PY=$(cat $ATLAS_DIR/scripts/subj_tau_atlas_2022.txt | awk ...
0633dc0a7b716e92ff73219565d1b168a398046d9cff08472356eba45df1c335
Shell
9,822
187
#!/bin/bash set -e # Fail on error #### INFO: to run shellscript, use 'source shellscript.sh' model=$2 # dataset name (x-mouse/ human) input_dir=$4 # input directory gtf=$6 # annotation file out_dir=$8 # output directory #https://github.com/mrbaseman/parse_yaml/blob/master/README.md echo outdir: ${out_d...
00882180fe3b0ef57bad8e62d7c55341ad33d7f3d0c28c51034bae3a910d5ac5
Shell
10,383
229
#!/bin/bash # # make-vcproj.sh -- Make sln and vcproj files from CMakeLists.txt and qhull-all.pro # # CMake vcproj files includes absolute paths and does not handle 'd' annotatios for debug versions # Remove CMake targets # Change absolute paths to '../...' # Append '_d' to debug products # Write targ...
ccbd9e4cee64b3afa19ce09e26d54d57f0431cfe83b00d919183a3dd7c21849c
Shell
10,388
223
#!/usr/bin/env Rscript # load data and results library(plyr) resid_exp = readRDS(file="residual_expression.rds") keep.genes = readRDS('keep_genes.rds') meta = readRDS('cayo_bulkbrain_combined_metadata.rds') for(i in 1:length(resid_exp)){ resid_exp[[i]] = data.frame(resid_exp[[i]]) resid_exp[[i]]$ROWNAMES <- r...
6df844471506ca5c3d8caa33fcae1a1b9fa1fffcdebd1bc056ae8c3fed4178ad
Shell
10,921
262
#!/bin/bash # Load Local Variables source ./SET_VARIABLES.sh echo 'Copy Files to Segmentation Directory' # Copy FLASH Data to segmentation directory cp ${FLASH_DIR_FA05}/data_degibbs.nii.gz ${TISSUE_SEGMENTATION_DIR}/flash_contr1_degibbs.nii.gz cp ${FLASH_DIR_FA12p5}/data_degibbs.nii.gz ${TISSUE_SEGMENTATION_DIR...
919a3facc5d59701f3df940eaca430cb6c18d43d8a479b3e0c7b3486eed646bd
Shell
11,072
242
#!/bin/bash # Slurm Parameters #SBATCH -p medium #SBATCH --time 20:00:00 #SBATCH --job-name=cuttag_gz #SBATCH -o cuttag_gz_%A.log #SBATCH -e cuttag_gz_%A.err #SBATCH -c 10 #SBATCH --mem 100G #SBATCH -C scratch #SBATCH --array=0 #### original pipeline and tutorial available at https://yezhengstat.github.io/CUTTag_tuto...
e1c20692a25bd6588206037b41318099c2f9dddd6abb8dde2e847ca2f2baa453
Shell
12,523
369
#!/usr/bin/env bash ############################################################################### # DDSurfer Data Preprocessing Pipeline # # The preprocessing workflow has four stages: # 1. DTI estimation and atlas registration from raw diffusion inputs # 2. Skull stripping of registered scalar maps # 3. Resam...
62f68817fea81ccb9e3eced1749e59a7190a020771ab92acb47a69d03270f27c
Shell
12,665
312
#!/bin/bash #$ -S /bin/bash set -x -e ROOT=/project/hippogang_3/sravikumar/atlasPHG2019 source $ROOT/scripts/common.sh #RAWDIR_OLD=/data/tesla-data/pauly/studies/pmatlas/ndri/import/nii RAWDIR=/project/hippogang_3/sravikumar/atlasPHG2019/pmatlas_raw ATLAS_2016=/project/hippogang_2/pauly/dan2015/atlas2016 CMREP_DIR=$RO...
a8067792c4d0a9797c32af184ee155c496ce11a4ad1b03c745dfebc0c3e1dae4
Shell
12,766
158
set -eu SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) download() ( URL=$1 DST=$2 if [ ! -f "$DST" ]; then TMPFILE=$(mktemp) wget -O $TMPFILE $URL mv $TMPFILE $DST fi ) RAWDIR=${RAWDIR:-../10_raw_data} download https://zenodo.org/record/10492333/files/vol0001_vis1.cfl $RAW...
980f5b8624f2ea68156a7603c5a48d0e57b86564c37e70c6d36a59850deb249e
Shell
13,520
317
#!/bin/sh # # qhull-zip.sh version -- Make zip and tgz files for Qhull release # # wzzip from http://www.winzip.com/wzcline.htm # can not use path with $zip_file # odd error messages if can't locate directory # # $Id: //main/2015/qhull/eg/qhull-zip.sh#16 $$Change: 2071 $ # $DateTime: 2016/01/18 23:12:45 $$Author: ...
22202fec301d13ae80100c1d21496738378aca613ecf3e85917b935354f322de
Shell
14,225
237
name=activ72h_B name_alt=resting_B g2a=/mnt/BioAdHoc/Groups/RaoLab/Edahi/Projects/09.TimeCourse5hmC/ForFerhatGit/ghmc_to_abc g2a_input=$g2a/ABC_input src=/mnt/BioAdHoc/Groups/RaoLab/Edahi/Projects/09.TimeCourse5hmC/ForFerhatGit/GhmCN/src g2a_hic=$g2a/ABC_input/hic/${name} g2a_hic_alt=$g2a/ABC_input/hic/${name_alt} mkdi...
09466b44df6627fb1ab5def6cca334f2084901d816572e937eb82b3a2117b2c8
Shell
15,627
275
#!/bin/bash ####################################################################################### #RNA QuantSeq Analysis: https://www.lexogen.com/quantseq-data-analysis/ #9/23/2019 ####################################################################################### ###############################################...
191b31d282aa31cc6aa56dfa65033191b43852570548c6633b5006634ac8f41b
Shell
16,241
438
STEP_DIR="$ROOT_DIR/3-create-train-val-set" # Reset folder rm -rf "$STEP_DIR" mkdir -p "$STEP_DIR" # activate environment source "$ROOT_DIR/.venv/bin/activate" # Export symbols find "$ROOT_DIR/dataset-cut-normed" -mindepth 1 -maxdepth 1 -type d -printf '%P\n' | xargs --max-procs 12 -I % \ textgrid-tools-cli grids ...
c774b0c8d184b2f89091713916e2459031ec496c5512accbaf547c63cb16d289
Shell
19,048
709
#!/usr/bin/env bash # # Script to find Python and R deps in this repository # # It uses snakefood to find the python dependencies # # exit when a command fails #set -o errexit # exit if any pipe commands fail set -o pipefail # exit when your script tries to use undeclared variables #set -o nounset # trace what gets...
90dbbec02eb997764416c381e8340ed3edbef53898d68dda319df4858e7a2a6c
Shell
19,313
350
#!/bin/bash #Processing pipeline to evaluate Free Water fraction and DTI-metrics after free water elimination (using free water from mcDESPOT) # written by A.Caporale, Apr-May 2022 ######################################### ## intial folder should contain: raw DWIs (nii); bvals (txt, no commas); bvecs (txt, no commas)...
e5928c3ae6665b1830b816c641f7e9a890830534d950d9df0bfb3a535a3959dd
Shell
19,488
336
#!/bin/bash #Processing pipeline to evaluate Free Water fraction and DTI-metrics after free water elimination (using free water from mcDESPOT) # written by A.Caporale, Apr-May 2022 ######################################### ## intial folder should contain: raw DWIs (nii); bvals (txt, no commas); bvecs (txt, no commas)...
0afa7ff45cf3b41859af8ec6431869547645a902adf152132a4a35d01fedc9d7
Shell
20,130
812
#!/usr/bin/env bash # cgat-flow-conda: Integration test for pipelines running against the # latest conda packages of cgat-core and cgat-apps. The idea is that this # is the situation of a user just trying to run or extend our pipelines # without getting into cgat-core or cgat-apps internals. # References # http://kvz...
bac2fcebb2d50c240591d1425ea1f59f86baba4024e61458982790ab66157f1b
Shell
24,276
389
#'################################################################################# #'################################################################################# # Nextflow commands for applying NetActivity #'################################################################################# #'#####################...
6981c395a4e1924fe7629e8f10a9ccbe11eab94d5304cded23275051e05e98f7
Shell
33,095
1,223
#!/usr/bin/env bash # Travis: repo is provided by travis. # build conda environment # # Jenkins: repo is provided by jenkins # # Local: code can be downloaded (--clone-from-repo) # # References # http://kvz.io/blog/2013/11/21/bash-best-practices/ # http://jvns.ca/blog/2017/03/26/bash-quirks/ # exit when a c...
f6a7cf3a557c4db677af31b77f02e8691c9625401e8b277a8edd523daf577f22
Shell
37,351
1,037
#/bin/bash set -x -e # atlas directory ROOT=/project/hippogang_3/sravikumar/atlasPHG2019 source $ROOT/scripts/common.sh #Template directory TEMPLATE_ROOTDIR=$ROOT/atlasPHG_V3_2022 TDIR=$TEMPLATE_ROOTDIR/mst_multilabel TEMPLATE_PHG=$TDIR/template_ncc/iter5/template_phg_thresh0.5.nii.gz TEMPLATE_SRLM=$TDIR/template_nc...
55b3fada926e92ca4abdaafc0a6039dfcaee950e6b8420520f1ee132ef96d1bd
Shell
45,143
1,251
#/bin/bash set -x -e module load R/3.2.5 ROOT=/project/hippogang_3/sravikumar/atlasPHG2019 ADIR=$ROOT/atlasPHG_V3_2022 WORK=$ADIR/shape_animate THKDIR=$WORK/thickness # Read the common include file source $ROOT/scripts/common.sh SF_NAMES=("NULL" "CA1" "CA2" "DG" "CA3" "HATA" "SUB" "CYST" "MISC" "SRLM") #TEMPLATED...
d713b0ee876c0f34ad123c597439918b41fcbd51ead06dfab467e7941b5874f2
Shell
54,293
1,674
#!/bin/bash #$ -S /bin/bash set -x -e # The directory where we are doing this work ROOT=/project/hippogang_3/sravikumar/atlasPHG2019 # The work directory WDIR=$ROOT/atlasPHG_V3_2022/mst_multilabel # Read the common include file source $ROOT/scripts/common.sh # List of all the ids to run SUBJ_LIST=$ROOT/scripts/subj...
6728a4f97220956f8791b0651e59454cc7831ba810dd37e34773afb997baf5f9
Shell
90,921
842
set -eu SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ) download() ( URL=$1 DST=$2 if [ ! -f "$DST" ]; then TMPFILE=$(mktemp) wget -O $TMPFILE $URL mv $TMPFILE $DST fi ) RAWDIR=${RAWDIR:-../10_raw_data} download https://zenodo.org/record/10491940/files/vol0001_vis2_apex2.cf...
44eadd820911a26a9524466f14f8ede81dd8652b815f0c26fbbb77711fa4fc4c
Stan
810
32
data { int<lower=0> ntrials; int<lower=0> nsubj; int<lower=0> n; int<lower=0,upper=1> ACC[n]; int<lower=0,upper=nsubj> subj[n]; int<lower=1, upper=ntrials> trial[n]; int<lower=0,upper=1> conditionA[n]; int<lower=0,upper=1> conditionB[n]; int<lower=1,upper=3> pair[n]; } parameters { real a[nsubj]; /...
d404408b81c00348ee48d4f6da4d92c18345014549d80e0cab0a80d4b3b45114
Stan
839
34
data { int<lower=0> ntrials; int<lower=0> nsubj; int<lower=0> n; real<lower=0> RT[n]; int<lower=0,upper=nsubj> subj[n]; int<lower=1, upper=ntrials> trial[n]; int<lower=0,upper=1> conditionA[n]; int<lower=0,upper=1> conditionB[n]; int<lower=1,upper=3> pair[n]; } parameters { real a[nsubj]; // interc...
4a152f51b14257317feb552bcb881852d29896381c3ce411cff95ef78ffd0d3d
Stan
873
36
// random intercept model data { int<lower=0> n; int<lower=0> nsubj; int<lower=1,upper=nsubj> subj[n]; real<lower=1,upper=10> arousal[n]; // BL_before,BL_after,A_before,A_after,B_before,B_after real<lower=0,upper=1> conditionA[n]; // BL=0; B=0; A=1; real<lower=0,upper=1> conditionB[n]; // BL=0; B=1; A=0; ...
c0b4276ac6307c7be92344411eaf6b583d04f335c127acfba91c30dddf9110a3
Stan
1,154
47
// regression with Anticipated/Experienced as factor data { int<lower=0> nsubj; int<lower=1,upper=3> dat[nsubj*4]; // first Anticipated/Experienced, first A then B real<lower=0,upper=1> question[nsubj*4]; // Anticipated=0; Experienced=1 real<lower=0,upper=1> condition[nsubj*4]; // A=0; B=1 } parameters { /...
983b860c498a090f8b11451fc816308625bcf8f83c59722eb120a52e4a3381b1
Stan
1,822
81
// Hierarchical Signal Detection Theory data { int<lower=1> N; array[N] int<lower=0> h; array[N] int<lower=0> f; array[N] int<lower=0> signal; array[N] int<lower=0> noise; } parameters { // Hyper(group)-parameters vector[2] mu_pr; vector<lower=0>[2] sigma; // Subject-level raw parameters (for Matt ...
777f6f2cc805be6d3da48d12951a61a6ccde5968d152bbd29c01c916df111527
Stan
2,074
70
/* hBayesDM 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) any later version. hBayesDM is distributed in the hope that it will be useful, ...
0d4bb1f52bfd87153a43a6d022aa33dcccd08eba77b38f67430949aa8975c6d0
Stan
2,258
75
/* hBayesDM 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) any later version. hBayesDM is distributed in the hope that it will be useful, ...
185af2b9be59ba602b82245559229db0821d1000636e68565638e2d43c996c8f
Stan
2,998
68
/* hBayesDM 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) any later version. hBayesDM is distributed in the hope that it will be useful, ...
d7dfd41eb7038e0bbbea28141bc9ec4950be7dce2667887d5645c7a54f2a7808
Stan
3,156
106
/* hBayesDM 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) any later version. hBayesDM is distributed in the hope that it will be useful, ...
0ccf55f7cc3b69c5b044483e37ec67831a6846092a82cbdaeb948905da7e151f
Stan
3,191
106
/* hBayesDM 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) any later version. hBayesDM is distributed in the hope that it will be useful, ...
b9e7974b491df39b0a6bf2b1a53b8d7f4949be40ee1a5efc5e4b6d190aa6cff6
Stan
3,223
114
/* hBayesDM 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) any later version. hBayesDM is distributed in the hope that it will be useful, ...
2772a75a9a4d65b6b5aa223e71d7490b14bf38f8d0bc8b3559bf23c7640936c7
Stan
3,254
123
/* hBayesDM 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) any later version. hBayesDM is distributed in the hope that it will be useful, ...