sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
bc472b5b3c9ec2aaeb456c5bff946c305cfdb7830ec8a20b5160d3bd9cced9b5 | Shell | 680 | 20 | #####
# Below is an example of how to do DNase-seq calls using a sge based cluster
#####
#Location of the common.r file that does package load and defines parameters.
commonfile="/cluster/thashim/basepiq/common.r"
#Jaspar file directory path
jaspardir="/cluster/thashim/basepiq/pwms/jasparfix.txt"
#Directory in which... |
b26679c54ee00957f871fe660adf52025207327639bbbea718e567d26772dc2f | Shell | 682 | 23 | #!/bin/bash
set -beEu -o pipefail
TRASH_CLEANER="/hive/users/qateam/hubSpace/tusdTrashCleanerHgwdev.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... |
3fdc71319155ff6cda49c9972fc76e6d1c4fb219faed889eeb37fec15a96fa23 | Shell | 688 | 21 | #!/bin/bash
#SBATCH --job-name=bgen2bfile_infomaf
#SBATCH --output=/gfs/work/ceijsbouts/ibs/jobs/stream/job_%A_%a.stdout
#SBATCH --partition=compute
#SBATCH --ntasks=1
#SBATCH --time=1-0
#SBATCH --mem=0
#SBATCH --cpus-per-task=20
#SBATCH --array=4-22
##SBATCH --exclude=kgen[0001-00022]
##SBATCH --nodelist=kgen0501,kgen... |
31e111208325e3b92ab89b1629a97b3b10f432344f9813f9d70b69b59495e068 | Shell | 727 | 26 | #!/bin/bash
dir_bin="bin"
fi_cfg="NHEK.conf"
# Step1: ~10 minutes
perl $dir_bin/01_02_prepare4jaccard.pl $fi_cfg
# Step3: ~1.5 hours using 50 threads
perl $din_bin/03_jaccard.pl $fi_cfg
# extract Jaccard between TFs
#perl $din_bin/extract_jaccard_glasso.pl outputs/03_jaccard/jaccard_HMEC.txt CTCF SMC3 RAD21 yy1
# S... |
ac8f15bcbae711a5c6bdfd0f16740325ad89b47f913f7824a01b06b4e924035f | Shell | 728 | 26 | #!/bin/bash
dir_bin="bin"
fi_cfg="K562.conf"
# Step1: ~10 minutes
perl $dir_bin/01_02_prepare4jaccard.pl $fi_cfg
# Step3: ~5 minutes using 50 threads
perl $din_bin/03_jaccard.pl $fi_cfg
# extract Jaccard between TFs
#perl $din_bin/extract_jaccard_glasso.pl outputs/03_jaccard/jaccard_HMEC.txt CTCF SMC3 RAD21 yy1
# S... |
e3ff38b35c918125ea87b6b652adbdda5caf8fc6ebf7defc341af289353cb8ee | Shell | 778 | 31 | BL_data= # path to folder with BL data e.g. /path/to/folder/proj-5ddfa986936ca339b1c5f455
coeff_file= # path to file with the Legendre coefficients in spherical harmonics for respective gradient coil e.g /path/to/coeff/file/coeff.grad
cur=$(pwd)
cd $BL_data
for i in sub-*; do
echo $i
subj=${i:4:5}
# Dive into t... |
38538079ddcbb192ec2c9afd36d6991294c7d2fd717147fb19f0c5297d97d45c | Shell | 800 | 23 | #!/usr/bin/env bash
mkdir bw
echo "Make sure you start virtualEnv for deeptools and go to the right folder before starting this shell, or you will have trouble!"
counter=0
for sample in *.bam
do
echo $sample
describer=$(echo ${sample} | sed 's/_m_d.bam//') # define the describer with sed function
echo $descr... |
16a32eeb947ade450909fbabb923791dd1f87b14abd8c77874df67585e875709 | Shell | 827 | 21 | # Initialize input folders, create and set output folders
main_folder=$(pwd) # Path to folder where the output SFR files are written
data_folder=/home/rjp/1_OVGU/0_MRI_Data/1_Old_protocol/proj-5ddfa986936ca339b1c5f455 # Path to folder with BL data
for i in $data_folder/sub-ALB1; do
subj=${i: -4}
echo $subj
mkdir ... |
4d76211efbdd1668f6eda41ee5a14ae274fb8c15a9caa76f0933f7948e006c30 | Shell | 830 | 27 | #!/bin/bash
fi_cfg=$1
dio=$(grep "dir_out" $fi_cfg | cut -f2)
dio="$dio/05_clusterone"
din_cluster="$dio/03_clusters"
din_clique="$dio/05_max_cliques"
din_pair="$dio/06_pairs"
din_score="$dio/07_score"
dout_result="$dio/08_results"
mkdir -p $dout_result
cells=($(grep "cells" $fi_cfg | cut -f2 | tr ',' "\n" | sort | u... |
130283c573dffe99e2e356c937cd8b0d4482582bf3d2880c04b5f66edf24b5d0 | Shell | 838 | 18 | #!/bin/bash
# Download released caffemodels
wget -nc -P ./data http://liangchiehchen.com/projects/released/deeplab_aspp_resnet101/prototxt_and_model.zip
unzip -n ./data/prototxt_and_model.zip -d ./data
# Move caffemodels to data directories
## MSCOCO
mv ./data/init.caffemodel ./data/models/coco/deeplabv1_resnet101/c... |
c94a9725cb1403f56cdbb5162dfdd766d939b99e01be35aab4282b6c3009e4fb | Shell | 843 | 33 | # MIT License
# Copyright (c) 2020 Vijay Prakash Dwivedi, Chaitanya K. Joshi, Thomas Laurent, Yoshua Bengio, Xavier Bresson
# Command to download dataset:
# bash script_download_all_datasets.sh
# ZINC
FILE=ZINC.pkl
if test -f "$FILE"; then
echo -e "$FILE already downloaded."
else
echo -e "\ndownloading $FILE...... |
aa4331b74c52a2f1ee4d51d12edab73a9c23d51f9cccfe5201a2359a4d84efaa | Shell | 860 | 25 | #!/bin/bash
for a in /b/home/uha/hfawaz-datas/temp-dl-tsc/receptive-field/exp/*/; do
for d in $a*/; do
for e in $d*/; do
for f in $e*/; do
for g in $f*/; do
for h in $g*/; do
for i in $h*/; do
for j in $i*/; do
... |
86091844450ab5571f67f3f40f74ed5a1ddc422a0b80adfdf54896616e6357bc | Shell | 862 | 25 | #!/usr/bin/env bash
# Build flusight
set -e
# Change branding and metadata of website
cp ./config.yaml ./vis-master/config.yaml
# Updating comment to trigger new travis build
cd ./vis-master
# Clean navbar
# sed -i "" '/a($/,/logo")$/d' ./src/components/Navbar.vue
# sed -i "" '/padding-left/,/border-left-width/d' .... |
867f92c90e74ed68518af28ab27a38070e5206604041d34a1aae95d9de8a2eaa | Shell | 868 | 24 | #####
# Below is an example of how to do DNase-seq calls using a sge based cluster
#####
#Location of the common.r file that does package load and defines parameters.
commonfile="/cluster/thashim/basepiq/common.r"
#Directory in which the PWM files were outputted using pwmmatch
pwmdir="/cluster/thashim/PIQ/140320.hg19... |
625ce72b0e5ec48f5fa22232550c5e7289401bec9c2ae610c074c6ef8e58a75b | Shell | 896 | 32 | base_dir=`pwd`
# The optimal learning rate is specified in the supplementary material
lr=1e-3
# SCSG, SCott, Adam, Adagrad, SAdam, SAdagrad
optim=Adam
# mlp, lstm, nbeats
model=mlp
data=traffic
# gamma used for SCott version optimizers, will have no effect on other optimizers like plain Adam
# the optimal gamma is spe... |
3be0c21f8095a7e019e099ec66beda74373b7047efad3437e01b2fb247ebf177 | Shell | 901 | 32 | base_dir=`pwd`
# The optimal learning rate is specified in the supplementary material
lr=1e-3
# SCSG, SCott, Adam, Adagrad, SAdam, SAdagrad
optim=Adam
# mlp, lstm, nbeats
model=linear
data=synthetic
# gamma used for SCott version optimizers, will have no effect on other optimizers like plain Adam
# the optimal gamma i... |
a962c287fbc6067a45c77858e20084dfe8ad55aab6cba2bf9a8417bade1d5215 | Shell | 901 | 32 | base_dir=`pwd`
# The optimal learning rate is specified in the supplementary material
lr=1e-3
# SCSG, SCott, Adam, Adagrad, SAdam, SAdagrad
optim=Adam
# mlp, lstm, nbeats
model=mlp
data=exchange_rate
# gamma used for SCott version optimizers, will have no effect on other optimizers like plain Adam
# the optimal gamma ... |
770bc6708fa3f06cf0eeb0496b8d3f10186067c6bd05dd268c806c46d3596b8b | Shell | 904 | 32 | base_dir=`pwd`
# The optimal learning rate is specified in the supplementary material
lr=1e-3
# SCSG, SCott, Adam, Adagrad, SAdam, SAdagrad
optim=Adam
# mlp, lstm, nbeats
model=nbeats
data=electricity
# gamma used for SCott version optimizers, will have no effect on other optimizers like plain Adam
# the optimal gamma... |
3da5d3bbf47afa51322cb6cdbac088a02dfa171817b4f1d84b10a8a94e8d80be | Shell | 916 | 19 | #!/bin/bash
DATASET_DIR=$1
# Download COCO-Stuff 164k (20GB+)
wget -nc -P $DATASET_DIR http://images.cocodataset.org/zips/train2017.zip
wget -nc -P $DATASET_DIR http://images.cocodataset.org/zips/val2017.zip
wget -nc -P $DATASET_DIR http://calvin.inf.ed.ac.uk/wp-content/uploads/data/cocostuffdataset/stuffthingmaps_tr... |
c289383af141727749b73a28314ff7839d717a4737a34c48a1f766463a851071 | Shell | 1,018 | 40 | #!/bin/bash
#SBATCH -c 1
#SBATCH --mem-per-cpu 128
#SBATCH --partition short
#SBATCH --time=0:20:00
# 26th Feb 2019
# Script for parallelising the creation of 'Gamma-shapes' file
# for SDS analysis
DAFS=($(seq 0.05 0.01 0.95))
NDAF=${#DAFS[@]}
rm -r GSF* *.out
for ((i=0; i<NDAF; i++));
do
mkdir GSF${DAFS[${i}]}
cp... |
a6109bba705e6f5044febf9f7a0999f361a6552de4ff7b870e233085a056b3c8 | Shell | 1,019 | 31 | #!/bin/bash
set -ex
# convert to gff3 alignment format
../../util/gtf_to_alignment_gff3.pl supertranscripts.gtf > supertranscripts.gff3
# extract the transcript sequences
../../util/gtf_genome_to_cdna_fasta.pl supertranscripts.gtf supertranscripts.fasta > transcripts.fasta
# run TransDecoder
../../TransDecoder.Long... |
5386f57ba8342ad9c1596ac5abb2b6d681b134d48e30955c2d7946d0662547f2 | Shell | 1,026 | 27 | #!/bin/sh
#$ -N ABCD
#$ -cwd
#$ -m beas
#$ -M xueyi.shen@ed.ac.uk
#$ -l h_vmem=32G
#$ -l h_rt=2:00:00
. /etc/profile.d/modules.sh
source ~/.bash_profile
module unload R
module add igmm/apps/R/3.6.1
cd /exports/igmm/eddie/GenScotDepression/shen/ActiveProject/ImagingProject/ABCD_MDD_brain/
#R CMD BATCH script/ANALY/A... |
819ae1b23a3be85aa8f308257c73ac1f1c4445afa046bdc07ae4c39c08af0126 | Shell | 1,056 | 40 | #!/bin/bash
set -x
# 0. Choose from {voc12, cocostuff10k, cocostuff164k}
DATASET=voc12
# 1. Train DeepLab v2 on ${DATASET}
python main.py train \
-c configs/${DATASET}.yaml
# Trained models are saved into
# data/models/${DATASET}/deeplabv2_resnet101_msc/*/checkpoint_5000.pth
# data/models/${DATASET}/deeplabv2... |
21084d2eeb075fe13db50cd8966ce6c57b0fb44e7add2a95cce7a6b70998b34a | Shell | 1,087 | 38 | #!/bin/bash -ve
if [ ! -e genome.fasta ]; then
gunzip -c genome.fasta.gz > genome.fasta
fi
if [ ! -e pasa_assemblies.fasta ]; then
gunzip -c pasa_assemblies.fasta.gz > pasa_assemblies.fasta
fi
if [ ! -e pasa_assemblies.gff3 ]; then
gunzip -c pasa_assemblies.gff3.gz > pasa_assemblies.gff3
fi
if [ ! -e pa... |
d115a22f3fedfc34ca7d89a04adba3102ac0a520a01eda2a31c9c3869f591b50 | Shell | 1,117 | 23 | #!/bin/bash
# makeFixtures.sh - make the files bigWigLoadPreDrawTester reads. Run it here; the outputs are
# checked in, so it only needs running again to change them. refs #38236
#
# gap.chain is one chain over chrRef:1000-9000 with two aligned blocks, 1000-2000 and
# 8000-9000, so a window inside 2000-8000 is insid... |
9073e0e4b1f6fbd33a6655e47fa8b720d101636a697b8947727243f97986dcb1 | Shell | 1,151 | 28 | #!/bin/bash
# weekly cron wrapper for measureHubSpace.dev.sh, which writes its own dated
# report under /hive/users/qateam/hubSpace/hgwdev/YYYY/MM/. Then the hubspace
# machine's reports are copied to /hive/users/qateam/hubSpace/hubspace/, and
# hubSpaceReport.py draws one charts page for each machine into
# /hive/us... |
8d75e791eca65c45a999bbadad308c5c775a19a1938f6b90437b594ae8d81422 | Shell | 1,175 | 13 | #!/bin/bash
# 29th March 2019
# Script to look for genes close to significant SDS scores
for fname in high low
do
rm OutTables/SigSDSGenesProteinCoding_${fname}N0.csv
bedtools intersect -a sigsds_${fname}N0.bed -b Bos_taurus.ARS-UCD1.2.104.gtf -wb > SigSDSAnnotate_${fname}N0.dat
awk '$6=="gene"' SigSDSAnnotate_${fna... |
73391998ee5d63888c9eefc6605378fbece68944e8ca3f05d6d8993ba778ec77 | Shell | 1,230 | 43 | #!/bin/bash
#SBATCH --job-name=cojo_meta
#SBATCH --output=/gfs/work/ceijsbouts/ibs/jobs/stream/job_%A_%a.stdout
#SBATCH --partition=compute
#SBATCH --ntasks=1
#SBATCH --time=1-0
#SBATCH --mem-per-cpu=0
#SBATCH --cpus-per-task=4
#SBATCH --array=1-5
TRAIT="metal_ICD_ROME_EURUSA_Qonly_Qnon"
extract_dir="/gfs/work/ceijsbo... |
cf1c78bfcef8ed8a7bd2c4c44c3e9da376e97e77f13fbf8423a53acdd0c8401c | Shell | 1,231 | 34 | #!/bin/bash
# This modest script will build the JEP library according to your JDK, python version and
# the shared gcc libraries available on your system and will install it for usage by
# GROBID. The JEP library is required to use the Deep Learning models of GROBID.
# Curently JEP library and the GROBID Deep Learn... |
0b3682f6993e9bce9db8b7d5dfe92edf2ea7d4e62530b17b7dc0b51381b15d29 | Shell | 1,242 | 63 | mkdir logs
mv ./*.log -t logs
#SSAs=(*ldhub*.gz)
#SSBs=(*bgz*)
#SSAs=(*anx*.gz)
#SSBs=(*anx*.gz)
#SSAs=metal_ICD_ROME_EURUSA_Qonly_Qnon_ldhub.sumstats.sumstats.gz
#SSAs=metal_MAURO_ldhub.sumstats.sumstats.gz
#SSBs=(*ldhub*.gz)
#SSAs=(*_ONE_*)
#SSBs=(*_TWO_*)
#SSAs=(*ROME.IBS.META.fix-effect.for_share*)
#SSBs=(*fin... |
7ef2baaff5ad03041397029e0058885059b974964730a9549679a896fdeafb04 | Shell | 1,251 | 44 | #!/bin/bash
#SBATCH --job-name=LDclump_meta
#SBATCH --output=/gfs/work/ceijsbouts/ibs/jobs/stream/job_%A_%a.stdout
#SBATCH --partition=compute
#SBATCH --ntasks=1
#SBATCH --time=1-0
#SBATCH --mem-per-cpu=0
#SBATCH --cpus-per-task=4
#SBATCH --array=1-22
##export OMP_NUM_THREADS=4
CHR=${SLURM_ARRAY_TASK_ID}
# 1 ... |
1002988569bf60518337970bc3139443b79d9318f0df9a206c9453a3dc66a56f | Shell | 1,298 | 38 | #!/bin/bash
if [ ! -d auditory_lfp/data ]; then
mkdir -p auditory_lfp/data
fi
if [ ! -d neuropixels/data ]; then
mkdir -p neuropixels/data
fi
# Auditory data
if [ ! -f auditory_lfp/data/time.txt ]; then
wget https://zenodo.org/record/5137888/files/time.txt -P auditory_lfp/data/
fi
if [ ! -f auditor... |
cc8b170854df2a5a1866646b552a9729feb42c84c3e0bf979157a38ce5c7902d | Shell | 1,386 | 42 | #!/bin/bash -ve
export PERL_HASH_SEED=0
## generate alignment gff3 formatted output
../../util/gtf_to_alignment_gff3.pl stringtie_merged.gtf > stringtie_merged.gff3
## generate transcripts fasta file
# not including the genome here... too big, but here's how you'd do it.
#../../util/gtf_genome_to_cdna_fasta.pl st... |
3973dd65191448f97974863f9618060203121dbbedfdf593e6e4afc5e61c7204 | Shell | 1,396 | 58 | #!/usr/bin/env bash
echo "Now convert bam to bed"
for zyy in *_m_d.bam
do
echo $zyy
describer=$(echo ${zyy} | sed 's/.bam//')
echo $describer conversion begins
bedtools bamtobed -i $describer.bam >$describer.bed
echo ${describer} converstion finished
done
echo "bam to bed conversion! --Huan"
mkdir shi... |
2748588b5c75da169773a2e3d2ee169381d55b5e18bca1639371f795810d4fed | Shell | 1,399 | 35 | #!/bin/bash
conda create -y --name elution python=3.5
conda activate elution
conda install -y -q -c omnia pdbfixer=1.4
conda install -y -q -c conda-forge joblib=0.11
conda install -y -q -c conda-forge six=1.10.0
conda install -y -q -c deepchem mdtraj=1.9.1
conda install -y -q -c conda-forge scikit-learn=0.19.1
conda i... |
84ce4b678a1aae387fb15c4e7eb879b6181cd584d4565a0f91cc15a74452cb5d | Shell | 1,415 | 56 | #!/usr/bin/env bash
ACT_GIT_VERSION=$(git --version | cut -d' ' -f3)
REQ_GIT_VERSION="2.9"
ACT_PYTHON_VERSION=$(python --version | cut -d' ' -f2)
REQ_PYTHON_VERSION="3.6"
#!/bin/bash
vercomp () {
if [[ $1 == $2 ]]
then
return 1
fi
local IFS=.
local i ver1=($1) ver2=($2)
# fill empty f... |
a747db2a309f55ed4f995b99da3c77f4664f389264942f943f9616a9012f72fd | Shell | 1,416 | 56 | #!/usr/bin/env bash
ACT_GIT_VERSION=$(git --version | cut -d' ' -f3)
REQ_GIT_VERSION="2.9"
ACT_PYTHON_VERSION=$(python --version | cut -d' ' -f2)
REQ_PYTHON_VERSION="3.10"
#!/bin/bash
vercomp () {
if [[ $1 == $2 ]]
then
return 1
fi
local IFS=.
local i ver1=($1) ver2=($2)
# fill empty ... |
d5562b47985f4b845fc9645536d17c469fe5344f4a9a6935e2aef089684c8b1c | Shell | 1,417 | 39 | #!/usr/bin/env bash
# install_delft.sh
# Install DeLFT in a Python virtual environment, at the versions pinned in Dockerfile.delft
# so that the evaluation runs the same stack as the published image (on CPU).
#
# Usage:
# install_delft.sh VENV_DIR # TensorFlow and DeLFT only (enough to preload embeddings... |
fe23173a9c202b3e19cd108d4ca7b372f9a388d374d86b468d3654b32a1c8eb9 | Shell | 1,679 | 62 | #!/bin/bash
bl login
project_id=5ddfa986936ca339b1c5f455
subjects='CHP1 ACH1 CON1 CON2 CON3 CON4 CON5 CON6 CON7 CON8 ALB1 ALB2 ALB3 ALB4 ALB5 ALB6 ALB7 ALB8 ALB9'
core_data= # path to folder with BL data e.g. /path/to/folder/proj-5ddfa986936ca339b1c5f455
for i in $subjects; do
echo $i
# Find the matching group
... |
f2afbb4494f2f87702176fc190ec0727a85a321a40988f500a90ceabb973c559 | Shell | 1,804 | 75 | #!/bin/bash
####
# Run specific stuff
jobname="hg19k562"
bampath="http://piq.csail.mit.edu/data/bams/k562.bam"
#####
# Below is an example of how to do DNase-seq calls using a sge based cluster
#####
tmpdir="/scratch/tmp/"
basedir="$(readlink -f $(pwd -P)/../)"
baseoutdir="/cluster/thashim/PIQ/"
pushd $basedir
job... |
34dae7d96c348d27d3723c8d80d25173eca0758f2cfc006f5e81a55652bb304a | Shell | 1,805 | 75 | #!/bin/bash
####
# Run specific stuff
jobname="mm10mes"
bampath="http://piq.csail.mit.edu/data/bams/mES.bam"
#####
# Below is an example of how to do DNase-seq calls using a sge based cluster
#####
tmpdir="/scratch/tmp/"
basedir="$(readlink -f $(pwd -P)/../)"
baseoutdir="/cluster/thashim/PIQ/"
pushd $basedir
jobid... |
e1269726db87d9ec9e1c890210aa4e6c2c92e49b54c82ec3c9e75f68f5953885 | Shell | 1,844 | 57 | # Data loading
TRAIN_DIR=./training/data/train/
TEST_DIR=./training/data/test/
# Saving and logging
SAVE_DIR=./training/ckpt/
LOG_FREQ=20
SAVE_FREQ=50
CKPT_DIR=None
MAX_TO_KEEP=2
# Loss
LOSS_MODE=L1
BATCH_WEIGHTS=1.0,1.0,1.0
NORM_LOSS_WEIGHT=1.0
P_LOSS_WEIGHT=0.1
VGG_LAYERS=block2_conv2,block3_conv2
SPATIAL_LOSS_WEIG... |
c75e6bc3441bac5b71b21d014ed2c9ffbb9fe2a25a180a4f2f808d9f1715925a | Shell | 1,887 | 56 | #!/bin/bash
set -beEu -o pipefail
# the tusd data directory, different on each machine
TUSD_DATA_DIR="/data/tusd"
TODAY=$(date +%F)
ARCHIVE_DIR="/data/tmp/tusdTrash"
DELETE_FILE_NAME="toDelete.txt"
# a one line per run history, quiet runs send no email so this is the
# only proof the cron actually fired
LOG_DIR="/hiv... |
08c82d7f066664790eb6ac648cae4ff74fe82ac5158c2b12c95eb90aa5048e74 | Shell | 1,888 | 32 | python main.py --model=NN_MC --mode=evaluate --task=regression
python main.py --model=NN_MC --mode=evaluate --task=classification
python main.py --model=NN_MC --mode=evaluate --task=regression --adversarial_training
python main.py --model=NN_MC --mode=evaluate --task=classification --adversarial_training
python main.p... |
047f6370e99f06d085b2ab47b3061d4a68d01c6a6046ad05e46dd46c8b272613 | Shell | 1,959 | 92 | #!/bin/bash
# Script to launch many PPA jobs at a PBS managed cluster.
function createMatlabFile
{
# create matlab file
cat > $1 <<EOF
importTool('optimi', 0.12)
importTool('kern')
importTool('noise', 0.12)
importTool('ndlutil')
importTool('ivm')
importTool('prior', 0.12)
%cd ~/mlprojects/ppa/matlab
EOF
echo... |
4db41c485fc7a79e7018eac398ce256989f7f719106a1b3d40b7d78d35d225ed | Shell | 2,009 | 61 | #!/bin/bash
set -beEu -o pipefail
# the tusd data directory, different on each machine
TUSD_DATA_DIR="/data/tusd/data"
TODAY=$(date +%F)
ARCHIVE_DIR="/tmp/tusdTrash"
DELETE_FILE_NAME="toDelete.txt"
# a one line per run history, quiet runs send no email so this is the
# only proof the cron actually fired
LOG_DIR="/hom... |
af43fdcacb0fc1fa6abcdfef93db1ee881a68bd6ca7dea808260b587624254a3 | Shell | 2,019 | 21 | #!/bin/bash
dockercmd () {
docker run --rm -w $(pwd) -v $(pwd):$(pwd) "$@"
}
dockercmd curlimages/curl -o NC_045512.2.fa "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=NC_045512.2&rettype=fasta"
dockercmd ncbi/sra-tools fastq-dump --split-files --origfmt SRR17054502
dockercmd seqfu/alpine-b... |
e8652c2e86e861b1a4adbcfe36d4aa8332f7eef5fa508ba73e69a68220d98795 | Shell | 2,082 | 45 | #!/usr/bin/env bash
# Script for patching metadata files in flusight.
# Mostly we are adding information about the FluSightNetwork ensemble to show
# up in the website.
# NOTE: This script is only run once on the cloned flusight repo.
set -e
# Change branding and metadata of website
rm -rf ./vis-master/config.yaml
cp... |
2e91b32370fa40a62ea40af37ea6abd73f3200a064834fe55a9ef106a45d850c | Shell | 2,120 | 32 | python main.py --model=NN_MC --mode=train --task=regression
python main.py --model=NN_MC --mode=train --task=classification --n_epochs=1000
python main.py --model=NN_MC --mode=train --task=regression --adversarial_training
python main.py --model=NN_MC --mode=train --task=classification --n_epochs=1000 --adversarial_tra... |
498bedfa22958845ac4e19f2cd1050b08cfec8000043511e71487dedec4256e9 | Shell | 2,191 | 46 | #!/bin/bash
set -e
# M5
echo "Downloading M5..."
poetry run kaggle competitions download -c m5-forecasting-accuracy -p ~/.mxnet/gluon-ts/datasets/
unzip ~/.mxnet/gluon-ts/datasets/m5-forecasting-accuracy.zip -d ~/.mxnet/gluon-ts/datasets/m5
rm -f ~/.mxnet/gluon-ts/datasets/m5-forecasting-accuracy.zip
# Rossmann
echo ... |
92d076a0cc3df373a4cee63017fd65837cadc887dad9ddca6a5f33836a1d5ef3 | Shell | 2,546 | 52 | #!/usr/bin/env bash
#
# Description:
#
# This script is used to generate a Singularity container that can be used
# to run all the analyses reported in our manuscript.
#
# This script was initially written to be used on a Linux box running
# Ubuntu 18.04. YMMV if you try it on any other system! At the v... |
92d3a3123dc954e53175dd6330b198f6f18fd90466bacf2ed28ca99806988d50 | Shell | 2,736 | 86 | #!/bin/bash
set -ev
export PERL_HASH_SEED=0
if [ ! -e test.genome.fasta ]; then
gunzip -c test.genome.fasta.gz > test.genome.fasta
fi
if [ ! -e transcripts.gtf ]; then
gunzip -c transcripts.gtf.gz > transcripts.gtf
fi
if [ ! -e mini_Pfam-A.hmm ]; then
gunzip -c mini_Pfam-A.hmm.gz > mini_Pfam-A.hmm
fi
... |
a304d5734843ed8526dc6d0e5a918c497d15584fada21773735faafd579dda40 | Shell | 2,786 | 58 | #!/bin/bash
set -e
#--------------------------------------------------------------------------------------------------
echo "Installing packages..."
sudo apt-get update
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev \
libsqlite3-dev wget curl llvm libncurses5-dev xz-u... |
8338fbb482a1dac279c1e61cb5c45045e785d4521001220174860bb11075936e | Shell | 2,911 | 75 | #
# g95opts.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... |
f6a1d61431d8d2c46c76835006ca7458945bbdb6dca510a384041dc63bf875ea | Shell | 2,954 | 85 | BL_data= # path to folder with BL data e.g. /path/to/folder/proj-5ddfa986936ca339b1c5f455
cur=$(pwd)
cd $BL_data
for i in sub-*; do
echo $i
subj=${i:4:4}
cd ${i}
# Define paths to images
dw=dt-neuro-dwi*/dwi_unwarped.nii.gz
bvecs=dt-neuro-dwi*/dwi.bvecs
bvals=dt-neuro-dwi*/dwi.bvals
b0=dt-neuro-dwi*/b0_unw... |
136bb8ec8a4de4539379d5584673f4074a33731ed7ba8a4c06c44b593ff37a7b | Shell | 3,171 | 102 | #!/usr/bin/env bash
set -e
if [[ "$TRAVIS_COMMIT_MESSAGE" == *"Travis build:"* ]]; then
echo "This is an auto commit from travis. Not doing anything."
exit 0
fi
# Save some useful information
REPO=`git config remote.origin.url`
SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
SHA=`git rev-parse --ver... |
80ea2971e6b0da35dac52d543fe1448c5e68275a678894942296324b98fc0934 | Shell | 3,182 | 116 | #!/usr/bin/env bash
mkdir ./trimmed
for i in $(ls *.fq.gz | rev |cut -c 10- |rev |uniq)
do
java -jar trimmomatic-0.39.jar PE -phred33 ${i}_R1.fq.gz ${i}_R2.fq.gz ${i}_R1_paired.fq.gz ${i}_R1_unpaired.fq.gz ${i}_R2_paired.fq.gz ${i}_R2_unpaired.fq.gz ILLUMINACLIP:NexteraPE-PE.fa:2:30:10:8:TRUE LEADING:3 TRAILING:3 ... |
80709f2cdcc72b1b64ae64732560ccfe058638970bf6e91b175e20c8a6717e6f | Shell | 3,568 | 125 | #!/bin/bash
if [[ "$1" != "local" ]] && [[ "$1" != "" ]] && [[ "$1" != "remove" ]]; then
echo -e "Usage: \nGlobal installation:\tsudo install.sh\nLocal installation:\tinstall.sh local" >&2
echo -e "Uninstall all:\tsudo install.sh remove\nUninstall local:\tinstall.sh remove local\nUninstall local:\tsudo install... |
ed39f5680892e7c5deffce0691533e59b47494416b5d5e60a4436115b81d5869 | Shell | 3,810 | 220 | #!/bin/bash
bl login
project_id=5ddfa986936ca339b1c5f455
albinism='X X X X X X'
# Extract runs
: <<'END'
for i in $albinism; do
# Untar the file
tar -xvf ${i}*2533.tar
# Change privelleges
sudo chmod -R 777 ${i}_????
# Create subfolder for the extracted runs
cd ${i}_????
mkdir Extracted_runs
# Extract d... |
ab008c04e33012bea27c2f72f7d760afd1646d5c2502fe6ad2005d09ce019392 | Shell | 5,441 | 126 | #!/bin/bash
#####################################################################################
# reogranize fmriprep outputs for brainlife
#####################################################################################
set -x
set -e
outdir=out
product=""
# get basename for fmri output
sub=$(jq -r '._inputs... |
8fce30a3c244fc362b07ae4bb38230dddc96793e3d681744d77db98f32ed2df7 | Shell | 5,643 | 187 | #!/bin/bash
## Useful functions for IRFinder's utils
export IRFINDER_BASH_UTILS_IMPORTED=1
export VERSION=2.0.1
export LC_ALL=C
export LANG=C
function versionAlert(){
echo "IRFinder version: $VERSION"
exit
}
function checkFile() {
if [ ! -f "${1}" ]; then
echo "Error: file $1 doesn't exists" >&2
... |
f2429322a97b2a6071d1da5c2d5607f1da38e0a26e059afe2f42bc5c9f8e9e2d | Shell | 6,059 | 84 | #!/bin/bash
#SBATCH --job-name=ibs_anxdefs
#SBATCH --output=/gfs/work/ceijsbouts/ibs/jobs/stream/job_%A_%a.stdout
#SBATCH --partition=compute
#SBATCH --ntasks=1
#SBATCH --time=6-0
#SBATCH --mem-per-cpu=0
#SBATCH --cpus-per-task=24
#SBATCH --array=90-95
##SBATCH --exclude=kgen0001,kgen0002
##SBATCH --nodelist=kgen0010,... |
cc0aef4e88e7a62e73a0c38748a02211e7d458b13bbfbc84be89aa7da9e9a448 | Shell | 8,474 | 237 | #!/bin/bash
# Run this script and fix *any* error before sending PR.
LOG_FILE=/tmp/$$_pull_request_chk.log
echo > ${LOG_FILE} # Empty the log file.
PROJECT_ROOT=`dirname "$0"`"/../../"
DATA_DIR="$PROJECT_ROOT/data"
TEST_DIR="$PROJECT_ROOT/onmt/tests"
PYTHON="python"
clean_up()
{
rm ${LOG_FILE}
rm -rf /tmp/*p... |
0bc4dd4d49476ed890ffba991a0e328627438a748be025f8bf33b40857ba9984 | Shell | 10,988 | 197 | #!/bin/bash
export LANG=C
export LC_ALL=C
set -e
GTF=$1
CHRLEN=$2
MAPABILITYEXCL=$3
LIBEXEC=$4
OPTNONPOLYA=$5
OPTBLACKLISTEXCL=$6
#GTF=../../REF/Homo_sapiens.GRCh37.75.150/Homo_sapiens.GRCh37.75.limit_chr.gtf
#CHRLEN=../../REF/Homo_sapiens.GRCh37.75.150/STAR/chrNameLength.txt
#MAPABILITYEXCL=MapabilityExclusion.bed... |
4822507cdde09ded7ef5a3e6a0d5e4af301053269269ac55ae350763913e3ccf | Shell | 11,145 | 298 | #
# f90opts.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... |
81a1d657ac9ed69755561b8c234423ebd7ff9eee1e6a33de1462b599007998ac | Shell | 12,461 | 334 | #!/usr/bin/env bash
# run_evaluation.sh
# Parameterized evaluation runner for Grobid end-to-end evaluation (jatsEval)
#
# Before running the datasets, it performs a pre-flight check of grobid.yaml
# (./gradlew checkEvalConfig): biblio-glutton consolidation must be enabled and
# reachable, and the DeLFT-recommended mod... |
8cbf527fe19953fa1ce41be4eb64f882bb57621e799bffb2628aa02789ffaa48 | Shell | 12,666 | 402 | #!/bin/bash
bl login
project_id=5ddfa986936ca339b1c5f455
hypoplasia=(X)
achiasma=(X)
albinism=(X X X X X X X X X)
controls=(X X X X X X X X)
core_data_folder=/home/auguser2016/dMRI_DATA/RAW_DATA
: <<'END'
END
# Chiasma hypoplasia
for i in ${!hypoplasia[@]}; do
subj_MD="${hypoplasia[$i]}"
subj_BL=CHP$((i+1))
... |
b592c7ced7ba215fd9e6d422fad53cad21abbc2f35888af4a90e9786916999b7 | Shell | 12,673 | 280 | #!/bin/bash
bl login
project_id=5ddfa986936ca339b1c5f455
chiasma_hypoplasia=(X)
achiasma=(X)
albinism=(X X X X X X X X X)
controls=(X X X X X X X X)
rois_folder=/home/auguser2016/dMRI_DATA/PREPROCESSED_DATA
bl_folder=/home/auguser2016/Projects/02_Scientific_Data/proj-5ddfa986936ca339b1c5f455
uploading_folder=/home... |
a358dce1bfab8a7c82bdb5a29e5c6f6f062d125a5ae5390bd8befb403660bbb5 | Shell | 14,508 | 387 | #!/bin/bash
# measureHubSpace.sh - snapshot some stats about the state of the hubSpace upload area
#
# Runs on the hubspace machine (production) and on hgwdev (development copy).
# The only differences between the two are the tusd data directory and the log
# directory, set in the case statement below, so this script ... |
0b0ec30fd37eca098bb38caa61bdfda880f9233d3278ee83fb1b491b344ab012 | Stan | 725 | 25 | data {
int<lower=1> n;
int<lower=1> n_Muscle;
int<lower=1, upper=n_Muscle> Muscle[n];
real Dis_2_Soma[n];
}
parameters {
real overall_mean;
vector[n_Muscle] Muscle_zoffset;
real<lower=0> Dis_2_Soma_sd;
real<lower=0> Muscle_mean_sd;
}
transformed parameters {
vector[n_Muscle] Muscle_mean;
Muscle_mean... |
962d36f4a48cf6a0a60245c595699cafaa6012ef7d95d6fafc63177e43c95aea | Stan | 784 | 42 | data {
int<lower=0> N1; // number of observations (group 1)
int<lower=0> N2; // number of observations (group 2)
vector[N1] y1; // response time (group 1);
vector[N2] y2; // response time (group 2);
}
parameters {
real<lower=0> mu_1; // mean of group 1
real beta; // difference in means
real<lower=0>... |
ce43f1c97b33bde5320b540fec9648e04676f278590d2253d4bab3bd506e97ee | Stan | 1,341 | 44 | data {
int<lower=0> N1; // number of observations (group 1)
int<lower=0> N2; // number of observations (group 2)
vector<lower=0>[N1] y1; // response (group 1);
vector<lower=0>[N2] y2; // response (group 2);
}
parameters {
real mu_1; // mean of group 1 for the Gaussian component
real beta_mu; // diff... |
aa0184d63247f40350d4845f6ce0b40e7923fce6bd1b34dcf72fc7ca8f61641a | Stan | 1,420 | 44 | //A robust Bayesian version of the t test can accommodate unequal standard deviations as well as outliers, by replacing the normal likelihood with a Student’s t likelihood. See homework instruction. We will talk more about this in a later week after we discuss regression.
//
data {
int<lower=0> N1; // number ... |
9a834aed5d94da3ad032ffe815d1aee6b0c3dbfeb1e62a26be453c6ab521d6a8 | Stan | 1,495 | 49 | data {
int<lower=0> N1; // number of observations (group 1)
int<lower=0> N2; // number of observations (group 2)
vector<lower=0>[N1] y1; // response (group 1);
vector<lower=0>[N2] y2; // response (group 2);
}
parameters {
real mu_1; // mean of group 1 for the Gaussian component
real beta_mu; // diff... |
b8cf29bd5b2b0d18cefaf260e863b7a873721ef2fbcdbbd29faa1efe21bfc1a4 | Text | 15 | 1 | # RFF-Nerve-UTP |
0ed9cb6f0bdd26635ced47b81139e4f11a399de391a6a15c107fa4343d70f37c | Text | 16 | 1 | # ABCD_MDD_brain |
3d3be1c8a270e3be032b312f70f49227ae686963662062d85c29941aa2202522 | Text | 21 | 1 | # qupath-scripts-2021 |
8bf88316eaacb3d4833afd9bcee30b33e0d6446cc240af3925d6fa6d40d43d71 | Text | 34 | 2 | # ibsgwas
IBS GWAS reference code
|
61d4bf04bcdd5ed967391065f37cc53ddda24ec346dc7dc0a9513909018e94e0 | Text | 39 | 2 | # SatelliteCountyMortalityPrediction
|
27501f542279fa91f4da8ad9ba225bbae06169933ed20cec304752b9906d1f99 | Text | 51 | 2 | # CorticalDynamicsAnalysis
Analysis for jPCA paper
|
e724b16a81e02044caddb94d83eaafec6d4d035cf2cd5dca1acc423376d06123 | Text | 74 | 3 | # lsmread
LSMREAD returns information and image data of a ZEISS lsm file. |
81745b5b9a449da9e2522fc1a7969d6baa63ed004e7e82a778f9ae7b5ded9e3c | Text | 77 | 2 | # 6-OHDA-rat-PET-paper
Depository of the data from the above mentioned study
|
4c29c62084c76cc77c60a797d2372b8f9a2f390fab9852430348a2b43bab5650 | Text | 81 | 2 | # KATP
Data and scripts related to the ATP-sensitive potassium channels analysis
|
605b706f5ac930ac0e4b98dafd802c15d539a4cb0685d52e7e9d5440f33ca069 | Text | 96 | 2 | # terser
Tourist Experiences Recommender System based on Emotion Recognition with Wearable Data
|
10bba1596f9df7344ee0089853f85ae0bcd7143d0a7a0dac5300b2ecf960c15b | Text | 105 | 1 | # Detecting immunotherapy-sensitive subtype in gastric cancer using histologic image-based deep learning
|
93b36ad64a03e77e9741e89060c3c6c7614b39831576f297f7a01edd3edc1f9a | Text | 160 | 1 | This is a package for analyzing multielectrode data. It is built to work with the stimulus code in the optohapticAlan repository and spikesorting with JRCLUST.
|
5b8b0b451768662e7b26f1dab01c7c7afdfc0975b8c32878c3b42a561bafcb14 | Text | 185 | 5 | # CE_MRI
Raw and secondary MRI and histological data of C57/BL6J mice 21 days after unilateral internal carotid artery occlusion or sham surgery.
Note: Upload of raw data is pending.
|
00029f42b7ea3e188ddecc79a700261e0a8e79b49e6a0a67862de613ae1a523b | Text | 246 | 4 | # Tomo_Recon
This repository contain codes needed to reconstruct HiP-CT data from ESRF beamline BM05. It is compatible with MAtlab 2017a and requires the image processing toolbox.
Code used for https://www.nature.com/articles/s41592-021-01317-x
|
33dbd0048fd17a88d4c01a3c695b9c69e4b55bcf78bb787ae9d5ba2f022dcaf7 | Text | 255 | 4 | # ABCD_Resting_PFactor_NCA
Repository for code for Widespread attenuating changes in brain connectivity patterns associated the general factor of psychopathology in 9- and 10-year-olds
Publication Link: https://www.nature.com/articles/s41398-021-01708-w
|
f88c0888961f25a934404c36683646a5bb2da2bfd9c2061828b4930092f876a6 | Text | 321 | 8 | # DCE functions
Various functions for processing DCE-MRI data, performing simulations. These are written at a fairly low level to allow flexibility, e.g. simulations, processing 4D images, 1D time series etc.
Please contact me via Github for:
* further info
* examples of code use
* implementation of new functionality... |
34331d2a6c368297ac58389aaf26c162d9bdda03a5a8f1a45a8c7fb90791c16b | Text | 356 | 10 | # Notebooks associated the Mesmerize manuscript
biorxiv: https://doi.org/10.1101/840488
These notebooks produce some of the figures in the manuscript.
They can be run on Binder, with the exception of ``markov_chains.ipynb``
[](https://mybinder.org/v2/gh/kushalkolar/mesm... |
c56657a3a307c7ba23215f08f949ae5f2a8e528f7dc6d3fe1c77a18456c1ed45 | Text | 367 | 9 | # cricket net
Model of the song recognition network in _Gryllus bimaculatus_.
Code and data for:
Jan Clemens, Stefan Schöneich, Konstantinos Kostarakos, R. Matthias Hennig, Berthold Hedwig<br>
_A small, computationally flexible network produces the phenotypic diversity of song recognition in crickets_<br>
2021, [eLi... |
60da265bea50acd804a04d6a287100ed71d6fdc01656a666ca0f84b036b73d79 | Text | 437 | 11 | # Data-Driven Artificial and Spiking Neural Networks for Inverse Kinematics in Neurorobotics
### By Alex Volinski, Yuval Zaidel, Albert Shalumov, Travis DeWolf, Lazar Supic, and Elishai Ezra Tsur
This repository comprises all data and code, associated with the our work:
"Data-Driven Artificial and Spiking Neural Net... |
2bf97737d8193887328bb69c8c712b4710c69cc733c3f94f4457441f970b4540 | Text | 454 | 7 | # AIS-curve-prediction-Deep-Learning
Prediction curve progression of soliosis from radiomics
This is the first deep learning work to prediction curve progression of AIS from Xrays.
We thank the work of E-capsnet from Mazziaa(Mazzia V, Salvetti F, Chiaberge M. Efficient-CapsNet: Capsule Network with Self-Attention Ro... |
d3caf2470be26948d18a679bc6f32552b2fc50cb286a48c1cabbed1ffb38f183 | Text | 499 | 9 | # AwesomeImager
A simple GUI for acquiring image sequences from Hamamatsu Orca Flash CMOS cameras. Uses the hamamatsu module written by Hazen Babcock: https://github.com/ZhuangLab/storm-control/tree/master/storm_control/sc_hardware/hamamatsu
Used in the Chatzigeorgiou Lab at the Sars Center for imaging experiments. h... |
62e039faa88109d613f55a7ea72639d9111b68b429ae1f1ce0fffc79a2b644c8 | Text | 509 | 7 | # CHIASM, the human brain albinism and achiasma MRI dataset
This repository contains supplementary material for the publication by [Puzniak et al., in preparation](https://doi.org/10.25663/brainlife.pub.9) consisting of scripts for:
- data uploading,
- offline preprocessing,
- technical validation (outputting plots).
... |
9664c028a9585ecbd6819a30b3908eaea30017ebbf435f9f14dab65c6fbdd5d1 | Text | 555 | 4 | # proj-IBS-somatization
Matlab code to calculate graph theoretical measures on brain structural connectivity data in IBS patients with high and low levels of somatic symptoms and healthy controls (Grinsvall et al, Brain Sci 2021; DOI: https://doi.org/10.3390/brainsci11121580).\
Note that scripts require the [Brain Conn... |
8d22743081b3ecf3724a6915e11caa33f255ea6f001ca0d160127d52a087dccc | Text | 560 | 4 | # HonorsThesis
Code Created for the Automated Characterization of Macromorphology in 3D Cortical Microtissues
First use the PegMeasurement.m code to find the radius of the agarose pegs as well as the radius of center circle whose edges should touch the inner edges of the pegs. Then use ThesisContraction.m code to meas... |
9f6550bce18850526411c9bb3d94ba7b2a1f11a8643bdfe85690c7fbc17a6fd8 | Text | 560 | 10 | # EEG_PLV
This is matlab code to compute PLV in EEG using correlated component analysis, specified for analyses presented in the project "Sharing happy stories increases interpersonal closeness: Interpersonal brain synchronization as a neural indicator".
You will need EEGLAB and EEG data collected from NeuroScan to ru... |
ec6351d92b3ee14c5aac967bac471e85737df1b39e7501c7601b5a9df9bf0d7b | Text | 576 | 11 | Code for ``Brain kernel: a new spatial covariance function for fMRI data`` https://www.biorxiv.org/content/10.1101/2021.03.22.436524v1
brainkernel: folder to generate brain kernel, i.e., brainkernel_latent.mat. You can skip this step if you don't want to re-estimate the brain kernel. You can directly use brainkernel_l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.