sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
ee4a65ba95f03c923ad2d17e7ff43beb28028372b72a2806fc657eed5a7e2dd7
Shell
1,987
48
#! /bin/sh # # DO NOT CHANGE: This clears old freesurfer variables if they previously exists if [ -n "$FREESURFER_HOME" ]; then $FREESURFER_HOME/bin/clear_fs_env.csh fi # PLEASE CHANGE: Please specify location of CBIG repository export CBIG_CODE_DIR=/data/users/jzchen/storage/CBIG_private # PLEASE CHANGE: define l...
db3617fe314f58f13e63465a65bc4577a4b6a6544fb4e691e39a251c2db6c869
Shell
1,998
23
# python3 -W ignore scperb.py --model_name CD4T --exclude_celltype CD4T --data pbmc # python3 -W ignore scperb.py --model_name CD14+Mono --exclude_celltype CD14+Mono --data pbmc # python3 -W ignore scperb.py --model_name B--exclude_celltype B --data pbmc # python3 -W ignore scperb.py --model_name CD8T --exclude_celltyp...
e521b083df154d4b55594d1939b24746903b0e74565430677fbb713771ffc556
Shell
1,998
57
#MOLGENIS walltime=05:59:00 mem=10gb ppn=6 #string Project #string pythonVersion #string beadArrayVersion #string bpmFile #string projectRawTmpDataDir #list Sample_ID #string SentrixBarcode_A #list SentrixPosition_A #string pipeline #string callrateDir #string gapVersion #string logsDir #string intermediateDir #Funct...
52127bc41ef4dd688b177e235a824d6c765518c4715203257532fafc4d5b5732
Shell
2,008
39
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
44778682108b783ca291e059aa862f0e371ec3f4b48e43c8c3e2ce15ec279e56
Shell
2,014
46
#! /bin/sh # Last successfully run on Dec. 7, 2018 # Written by CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md # DO NOT CHANGE: This clears old freesurfer variables if they previously exists if [ -n "$FREESURFER_HOME" ]; then $FREESURFER_HOME/bin/clear_fs_env.csh fi # PLEASE CHA...
ee071d47f5a952eb655f40e68d3d68c9915fd1814cdb4fc7cce952c6691586ba
Shell
2,022
66
study=act # mkdir output/gwas/"$study"/polmm # create SNPMatrix # mkdir data/act/SNPMatrix # ./code/gwas/ordinal/polmm_create_SnpMatrix.R \ # --bim data/act/act_np.bim \ # --out data/act/SNPMatrix/ # phenos=$(cat data/mega/"$study"_np_ord.pheno | \ # cut -d " " -f 3- | \ # awk 'NR == 1{print}')...
36097b3e484aee611e2ec438ee43fd896a8de1040fe4064e7f853d5bc403bb81
Shell
2,029
60
#!/bin/sh # This function replicates the variance component model results in the GSP dataset shown in Li et al., 2019 # Only two behavioral measures are included: Shipley_Vocab_Raw and Matrix_WAIS # # Written by Jingwei Li and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ########...
988d6b275ec734bed5c39589d5a0ea23ff9383ae40cedcdda77785e47ee4c68e
Shell
2,029
58
#! /bin/bash # Train the model 20 times in parallel # note: the outputs are crazy, please leave them away for i in {0..9} do echo "python lib/train_meta.py --data_path Dataset/relative_abundance.csv \ --metadata_path Dataset/metadata.csv \ --edge_list output/NetworkInput/genus/EdgeList.csv \ --output output/ \ --c...
4081cab39becb8aa3d568281dd8e1129463809518163141c776fe81abf0c8191
Shell
2,032
70
#!/bin/bash ######################################################################### # Copyright (c) 2019-~ Beisi Xu && St Jude # This source code is released for free distribution under the terms of the # CreativeCommons BY-NC-SA 4.0 International License #*Author: Beisi Xu < xubeisi [at] gmail DOT com > # File...
06bddfac380beee3b5936d98a2db96e710f1051fd5f692a72175c272f89abb43
Shell
2,037
72
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
96a7325712aa10010533ddca6935543b6a627fc4dd205d81787640dd592cced4
Shell
2,040
30
#! user/bin/bash start=$1 end=$2 export session_id=cookies module load anaconda/2020-04-tf2 logfiles=(/m/cs/archive/networks-pm/behavioral/smartphone/*.csv.partial) if [[ -f ${logfiles[0]} ]]; then echo 'deleting partial files' rm /m/cs/archive/networks-pm/behavioral/smartphone/*.csv.partial fi python3 /m/cs...
f77aba6bce7cc06eec67887acbbcb57289e210dae5e638b7a6c87b3baed15e00
Shell
2,040
61
#================================================================== # Run SAIGE GWAS for binary variables: hs, microinf, and grossinf #================================================================== study=adni mkdir ./output/gwas/$study/saige/ pheno_file=tmp/"$study"_saige.pheno Rscript --vanilla ./code/SAIGE/make_...
cb201e7b5b7655ef4da622d06f69ab589d2536513bbe52ea39665a19ad3a4834
Shell
2,041
56
#!/bin/sh # This function uses variance component model to estimate the explained variance of fluid intelligence score # (PMAT24_A_CR) in the HCP dataset. # # Written by Jingwei Li and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ######################## # setup for CIRC cluster...
8e2bd3d3a268e7ffb6135ffb7158b71b6d90ef29e2a47f718e80d5cab428b9af
Shell
2,043
58
#!/bin/bash -l export TPU_LOAD_LIBRARY=0 export TPU_NAME=$1 export ZONE=$2 python3 train_model_atac_pretrain.py \ --tpu_name=$1 \ --tpu_zone=$2 \ --wandb_project=$3 \ --wandb_user=$4 \ --wandb_sweep_name="atac_pretraining" \ --gcs_project=$5 \ ...
135a64c382fb7410b500840c403050b43cbb83f0a7b799bbc52c3f6c8cb94979
Shell
2,045
41
#!/bin/bash #Purpose: Create label files in fs6 space - from individual parcellation files #Inputs: parc2annot annotation files #Outputs: .label.gii parcellation files #Written by M. Peterson, Nielsen Brain and Behavior Lab under MIT License 2022 #SET PATHS HOME=/fslgroup/fslg_spec_networks/compute CODE_DIR=${HOME}/c...
c10c812caab5f3e65ecb2c2dbd2a5138a0222397eeea57040cfab2b7c5213eee
Shell
2,046
24
#$ -N partherit #$ -cwd #$ -q multi15.q #$ -S /bin/bash # Dyslexia #/data/workspaces/lag/workspaces/lg-genlang/Working/SCRIPTS/23andMe/clap-beat_dyslexia/pleiotropyevo/ldsc/partherit_baseline.sh /data/clusterfs/lag/users/gokala/beat-dyslexiaevol/data/munged/dyslexia.sumstats.gz neanDepRegions_hg19.sorted /data/cluste...
5e9c8769cf3426facc58169fe414cfe1a82e54ac6ae4902ec4b7d41f03273c99
Shell
2,050
64
#!/bin/bash ## 1. receive arguments from 04rmdup.sub sample=$1 outdir_staging=$2 conda_pack_squid=$3 job=$4 ## 2. configure the conda enviroment set -e workdir_pac=$(basename $conda_pack_squid) ENVNAME=$(basename $conda_pack_squid .tar.gz) ENVDIR=$ENVNAME # these lines handle setting up the environment; you shouldn...
9458d128c1f01286ea1205b507d88a0cf199aae87f8339a699c0df630a362ba0
Shell
2,050
50
#!/bin/sh #SBATCH --account=humbio #SBATCH --partition=sadacc-long #SBATCH --nodes=1 --ntasks=40 #SBATCH --time=150:00:00 #SBATCH --job-name=GSEA #SBATCH --mail-user=stychr009@myuct.ac.za #SBATCH --mail-type=BEGIN,END,FAIL #Try on all cell types #Gene lists ranked by -log(p-value)*log2FoldChange module load java/j...
dd13bcd01df90b765d56d64f739828ac605975f96ff40c5ec9342d1e5cca876a
Shell
2,056
24
#$ -N partherit #$ -cwd #$ -q multi15.q #$ -S /bin/bash # Dyslexia #/data/workspaces/lag/workspaces/lg-genlang/Working/SCRIPTS/23andMe/clap-beat_dyslexia/pleiotropyevo/ldsc/partherit_baseline.sh /data/clusterfs/lag/users/gokala/beat-dyslexiaevol/data/munged/dyslexia.sumstats.gz nean_RA_hg19-rinker_et_al.sorted /data/...
6857331378d3d04825f227ef79c64f24eac4f228b1d0725cc36e259760c67864
Shell
2,060
61
#================================================================== # Run SAIGE GWAS for binary variables: hs, microinf, and grossinf #================================================================== study=act mkdir ./output/gwas/$study/saige/ pheno_file=tmp/"$study"_saige.pheno Rscript --vanilla ./code/SAIGE/make_p...
2012189e096e45d71b50a0971c37e75db3117e6781b1717dd6cd35c923051550
Shell
2,061
69
mkdir output/gwas/rosmap/polmm # create SNPMatrix mkdir data/rosmap/SNPMatrix ./code/gwas/ordinal/polmm_create_SnpMatrix.R \ --bim data/rosmap/rosmap_np.bim \ --out data/rosmap/SNPMatrix/ phenos=$(cat data/mega/rosmap_np_ord.pheno | \ cut -d " " -f 3- | \ awk 'NR == 1{print}') for pheno in c...
ad072f823667e9efb0056d153d2eec3f3896550a3c4b7474ed6ebc7322d66e9a
Shell
2,064
45
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
e5eb31c0b21e1c999999be90d4455a715750fd1d535362509cb8df27b00790ae
Shell
2,065
60
#!/bin/bash # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
3ee43d7372b6c336313b928f429a740660dca957652fe2adae292a697a130f6a
Shell
2,066
60
#================================================================== # Run SAIGE GWAS for binary variables: hs, microinf, and grossinf #================================================================== covars=$(cat ./data/mega/mega_np_pheno_covar.txt | \ cut -d " " -f 6- | \ awk 'BEGIN {FS=" "; OFS =...
83111c4898f7bd345a5726bcb2722e5ce01bc557358c61eeeb16a17cc8f41883
Shell
2,070
61
#================================================================== # Run SAIGE GWAS for binary variables: hs, microinf, and grossinf #================================================================== study=rosmap mkdir ./output/gwas/$study/saige/ pheno_file=tmp/"$study"_saige.pheno Rscript --vanilla ./code/SAIGE/mak...
e0db91bdb0594d6f671502c84641da7abb66018a48e2c79e7335f393bfeda94a
Shell
2,077
60
#! /bin/sh # Usage: bash <repo>/esm/scripts/download_weights.sh /path/to/weights/ # re run the command to continue downloading incomplete files. echo $0 run_dir=$(readlink -f $(dirname $0)) ; if [[ "$(which aria2c)" == "" ]];then echo aria2c is required for downloading! exit 1 fi for _sh_exec in /bin/sh bash zsh;...
81fd72f6eadcac7be9d864619dcbb0c0be72030feeb64454dc54259d1908b947
Shell
2,081
24
# python3 -W ignore scperb.py --model_name CD4T --exclude_celltype CD4T --data pbmc # python3 -W ignore scperb.py --model_name CD14+Mono --exclude_celltype CD14+Mono --data pbmc # python3 -W ignore scperb.py --model_name B --exclude_celltype B --data pbmc # python3 -W ignore scperb.py --model_name CD8T --exclude_cellty...
de01bb51d8377e4fb59a111b64ff00943082c9506e93f0240c4f161760e8b8a6
Shell
2,083
78
#!/bin/sh # test Open Babel with CML # Make sure we know the absolute path of the programs we're trying to # call, in case the test is called from somewhere else unset BABEL_LIBDIR if `env | grep ^builddir > /dev/null 2>&1`; then BABEL=$builddir/../tools/babel BABEL_LIBDIR="$builddir/../src/formats/.libs:$build...
8367f2d46bc2ae4ad9d778ead20a77e6d84dbd45fb5412e31cfc36d1b36fd636
Shell
2,084
63
#! /bin/bash root=/gpfs51/dors2/gpc/JamesBooth/JBooth-Lab/BDL/jinwang/PlausGram_9-10 topnum="250" subjects_file_path=${root} subjects_file=scripts/5mvpa/data_info.txt #This should be a txt file with only a list of subject numbers contrastsname="allsentence_vs_PC" contrasts="spmT_0017.nii" #This should correspond to my...
6f54704b675feee200ef478987b437d4b55541fb366362ef5dd1eab569a2a8c6
Shell
2,086
64
# phenos=$(cat data/mega/mega_np_ord.pheno | \ # cut -d " " -f 3- | \ # awk 'NR == 1{print}') # # for pheno in $phenos # do # null_model=output/gwas/mega/polmm/"$pheno"_null_model.Rds # ./code/gwas/ordinal/polmm_null_model.R \ # --covar data/mega/mega_np.covar \ # --pheno data/mega/me...
7ac31d7d2b5a9c28dd8bd8a1ed66cf692a6fbfcaf847cf6abd74210044314c15
Shell
2,087
80
#!/bin/bash inputfolder=$1 outputpath=$2 boxSize=$3 TeraFlyBrains=$4 Vaa3dPath=$5 #multi-thread threadNum=46 tempfifo="bouton_intensity_temp_fifo" mkfifo ${tempfifo} exec 6<>${tempfifo} rm -f ${tempfifo} for ((i=1;i<${threadNum};i++)) do { echo ; } done >&6 for neuron in $(ls $inputfolder/*swc) do r...
808556a72e8980abdd6fa1f22ab236fb1c10ab397e154611a31bf8dfafa937b5
Shell
2,093
51
#!/usr/bin/env bash # Copyright 2017 Google Inc. # All Rights Reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
a311bb06f31f1ad5f0b4911f1fd4ad6edf08b6d71ff39c4929e6c9775d0ec07a
Shell
2,093
76
#!/bin/bash # author : sjn # date : Dec.2022 set -euox pipefail # For a background bin size along the genome, calculate the proportion of di-nucleosome footprints # Numerator: nucleosome footprints overlapping that bin by at least 1 bp that are 220-450 bp in length # Denominator: nucleosome footprints overlapping...
fc87bf37b4201d6b9af28984ad16163c172e1ced239ea9e82efe2880b5f9d682
Shell
2,116
64
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
bd73ee88cec02b5cf75c8ae757bc30e1817f8a640ec8ec62c78aa9318456959f
Shell
2,122
87
#!/usr/bin/env bash # # Copyright Bradley Lowekamp # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0.txt # # Unless required by appli...
c78811778c892500fd4d67150cfe521a47591faec580b33fbb3e51cf0519b36a
Shell
2,124
61
#================================================================== # Run SAIGE GWAS for binary variables: hs, microinf, and grossinf #================================================================== study=act mkdir ./output/gwas/$study/saige/ pheno_file=tmp/"$study"_cerad_adj_saige.pheno Rscript --vanilla ./code/SA...
0c83fdcf87f2f225f9639f28688e358813f261f9c382681c004b2b7d4455dcbb
Shell
2,125
61
#!/bin/bash # Written by Xiuming Zhang and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ########################################### # Usage and Reading in Parameters ########################################### # Usage usage() { echo " Usage: $0 -g <GMList> -t <affineTmp> -o <ou...
62471d248888a68da973e8d9c4d35dc8b4f727b6aa2bde3e811b611600b5ee3c
Shell
2,126
47
#!/usr/bin/env bash # Copyright 2017 Google Inc. # All Rights Reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
f993fde588707360858e499afcc241fef9d713246d9ce5e65adaf80991eadde3
Shell
2,128
48
#! /bin/sh # Last successfully run on Aug 1st, 2018 # Written by Nanbo Sun and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md # DO NOT CHANGE: This clears old freesurfer variables if they previously exists if [ -n "$FREESURFER_HOME" ]; then $FREESURFER_HOME/bin/clear_fs_env.csh f...
1806aa795c7861090ecdcb3f64f8751ad4d9ea960cd1e34967b73405dcadc492
Shell
2,129
51
#! /bin/sh # Last successfully run on Jan 12nd, 2018 # Written by CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md # DO NOT CHANGE: This clears old freesurfer variables if they previously exist if [ -n "$FREESURFER_HOME" ]; then $FREESURFER_HOME/bin/clear_fs_env.csh fi # PLEASE CH...
4976f18c663ea970e0998be7fa05e04a9aadd9ad6d1f4b8f697b6d36e414916c
Shell
2,129
59
#================================================================== # Run SAIGE GWAS for binary variables: hs, microinf, and grossinf #================================================================== study=rosmap mkdir ./output/gwas/$study/saige/ pheno_file=tmp/"$study"_cerad_adj_saige.pheno Rscript --vanilla ./code...
1d6fad6a9796547febd9030fef257918061f2bac45e0075b7c59d3406752b601
Shell
2,135
63
#!/bin/bash # Function to train the wavelet model train_wavelet() { echo "Training Wavelet model with $1 train observations per class, $2 test observations per class, and alignment processing: $3..." python3 Keras_wav_software.py --train "$1" --test "$2" --alignment "$3" } # Function to train the curvelet model t...
4065ff5779c8459349d6b33d2e3b20603dad695d9c4963210abd0fb202e4bdf0
Shell
2,139
24
#$ -N partherit #$ -cwd #$ -q multi15.q #$ -S /bin/bash # Dyslexia #/data/workspaces/lag/workspaces/lg-genlang/Working/SCRIPTS/23andMe/clap-beat_dyslexia/pleiotropyevo/ldsc/partherit_baseline.sh /data/clusterfs/lag/users/gokala/beat-dyslexiaevol/data/munged/dyslexia.sumstats.gz allchr.phyloP46way.primate_lessThanMinu...
7c97de93dec36555ff3cfd842568343b8391e211f0632c86933742bae915fa75
Shell
2,139
24
#$ -N partherit #$ -cwd #$ -q multi15.q #$ -S /bin/bash # Dyslexia #/data/workspaces/lag/workspaces/lg-genlang/Working/SCRIPTS/23andMe/clap-beat_dyslexia/pleiotropyevo/ldsc/partherit_baseline.sh /data/clusterfs/lag/users/gokala/beat-dyslexiaevol/data/munged/dyslexia.sumstats.gz allchr.phyloP46way.primate_lessThanMinu...
4ae2d796f988d6bc49a8405c38ba4f99c9b8b1225ef90b245d51c481e6311623
Shell
2,147
62
#!/bin/bash # Written by Xiuming Zhang and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ########################################### # Usage and Reading in Parameters ########################################### # Usage usage() { echo " Usage: $0 -b <brainList> -o <outDir> -t <br...
9acf81f13eb36a03234855e50917d9c966641186359279d27943ac043f2e0ce0
Shell
2,155
78
#!/usr/bin/env bash set -euo pipefail # Install ColabMDA from GitHub Release assets without cloning the full repository. # # Usage: # bash scripts/install_colabmda_release.sh # bash scripts/install_colabmda_release.sh <tag> <install_dir> # # Examples: # bash scripts/install_colabmda_release.sh latest /content/co...
9b8b6f3434a9ff77150895d55f0ac11c1d9833a9bd833dc40ae53bbbf14ebe76
Shell
2,156
40
#!/bin/sh # Fetch the DRAGEN reference outputs needed by concordance.py for a 5-Base sample # from the BaseSpace "Illumina 5-Base DNA" demo project (id 471431965). # # Downloads ONLY the small reference files (not the multi-TB BAM/FASTQ): # *.CX_report.txt.gz per-CpG methylation report (-> concordance.py meth...
c428fc1ee0d7abd437cf1086c5b01c5f9e7af8e1b64f8d0c49bc1e2726850b74
Shell
2,165
30
#!/bin/bash cd ../src main_id=$1 echo START MAIN EXPERIMENT python3 train_neonatal.py meta.experiment=${main_id}_main_multirun meta.tag=${main_id}_run_01 echo START SINGLE MODALITY EXPERIMENT python3 train_neonatal.py meta.experiment=${main_id}_np_multirun +experiment=single_mod_np meta.tag=${main_id}_np_01 python3...
bc058d372228d95e0328e8b443cdf10920778ba45d8b900e4d51c592c81832ba
Shell
2,166
47
#! /bin/sh # Last successfully run on May 28th, 2018 # Written by CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md # DO NOT CHANGE: This clears old freesurfer variables if they previously exists if [ -n "$FREESURFER_HOME" ]; then $FREESURFER_HOME/bin/clear_fs_env.csh fi # PLEASE ...
c266863162a3002ceec866e9e0287bd7359d50a8e8b72c5b2c9f181b34c9a56f
Shell
2,169
45
#!/bin/bash # calculate the mean depth of all contigs for correlation-based assignment ## 1. configure the conda enviroment set -e ENVDIR=WGS_analysis . $ENVDIR/bin/activate ## 2. run the patch code bam_list=bam_list.txt # input table of bam files, with sample name at the begining of each '_' delimited string genom...
4a3f4a11c721b807256dd6dddaa3718634d38a5963a77bfcaccd6faee3787472
Shell
2,170
57
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
fd0dcb805da5e08b38b41db10c3f3a6cd59119e51bb5d504656f4e017e90bdc5
Shell
2,172
61
#!/bin/bash # Written by Xiuming Zhang and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ########################################### # Usage and Reading in Parameters ########################################### # Usage usage() { echo " Usage: $0 -g <GMList> -t <nonlinTmp> -o <ou...
5c4e868e2ae37616e9165e4455bd5a0f99f6f1810bccecbbd7ba68e5c75ab08a
Shell
2,173
66
#!/bin/bash # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
9c3884e60147a0386a87bc6163b1dbc0bfa63adea2e39c62253be996d3dca959
Shell
2,174
75
#!/bin/bash # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
522b28e70b288b2922ba15668052c47d4fff896dca37e74f478561fe5f04d6d7
Shell
2,183
58
#!/bin/bash # # This script will extract LDSC genetic correlation # results from log files. # # Gokberk Alagoz - 09.02.2023 # ############################# munged="/data/workspaces/lag/workspaces/lg-genlang/Working/23andMe/Dyslexia2/Evolution/dys_rhy_pleiotropy/resources/external_sumstats/munged/" inDir="/data/cluster...
b27fe4645bf49ae40f78bce38767688af40ff1afc3919e71cd7e717f745b6f19
Shell
2,187
19
#UNET CUDA_VISIBLE_DEVICES=2,3 python -m torch.distributed.launch --nproc_per_node=2 --master_port=1249 train.py --launcher pytorch --max_iter 11 --loss_l1 --net_name UNET --name std8_15_fastmri_UNET --trainset FastMRITrainSet CUDA_VISIBLE_DEVICES=2,3 python -m torch.distributed.launch --nproc_per_node=2 --master_...
19be38382c48faae13bd2d1bdc3b024337be740875ac15bd85dad1832df382da
Shell
2,191
24
#$ -N partherit #$ -cwd #$ -q multi15.q #$ -S /bin/bash # Dyslexia #/data/workspaces/lag/workspaces/lg-genlang/Working/SCRIPTS/23andMe/clap-beat_dyslexia/pleiotropyevo/ldsc/partherit_baseline_and_extraAnnot.sh /data/clusterfs/lag/users/gokala/beat-dyslexiaevol/data/munged/dyslexia.sumstats.gz fetal_hge_hg19.merged.so...
99b43a0ec7ee7dc7296af800b402d7a573d3efbf174c12e5a4701467dee7dbf4
Shell
2,201
70
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
0f4887e4b823bd29a003759a36f25d5711691d63a9292f5bafa4f01aee2d16a0
Shell
2,207
41
#!/bin/bash # # Gokberk Alagoz - 19.05.22 # # This script will subset dyslexia and rhythm summary statistics using # the list of gw-sig-SNPs in the MA results. # First download this list from FUMA. #TODO get this list manually with PLINK ########################## # Variables SNPs4filtering="/data/clusterfs/lag/users...
d27908590f2eea8033219f51895490ea7e3c6ffc13233742d10b91f1ae12d4cc
Shell
2,209
70
## Sets up the various kappa directories and submit each run ## Usage: bash setupNsubmit.sh template_directory kappa.txt ## k1, k2, k3 are kappa values ## kappa.txt file should not have empty lines on the end of file ############################################################################### # Help ...
9f316eb39f38b8944aaa85d78a051d79d99b227c4d83a68f6fa2df815975cdb0
Shell
2,210
62
#!/bin/bash # Written by Minh Nguyen and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ROOTDIR=`readlink -f $0 | xargs dirname`/../ export PYTHONPATH=$PYTHONPATH:$ROOTDIR mkdir -p output echo Generate 20 cross-validation folds python -m cbig.Nguyen2020.gen_cv_fold \ --spreads...
a58a0517194f5882d7d12bbb6e598fa6b7e62da5a99ea09dd7f934aa3b1f63b1
Shell
2,220
48
#!/usr/bin/env bash # Copyright 2017 Google Inc. # All Rights Reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
8d1a66fb028793d258c4b08ccdd709efa71c718d325ada87e16f0e4c6a0c44b0
Shell
2,222
81
#!/bin/bash ## 1. receive arguments from 02align_split.sub sample=$1 read1=$2 read2=$3 genome=$4 job=$5 bwa_index_squid=$6 conda_pack_align_squid=$7 ## 2. configure the conda enviroment set -e workdir_pac=$(basename $conda_pack_align_squid) ENVNAME=$(basename $conda_pack_align_squid .tar.gz) ENVDIR=$ENVNAME # these...
15379062b484a78a8965acac8d2244d70ba615543443ff17b3cc11417b79e018
Shell
2,223
57
#!/usr/bin/env bash # # oxy_idle_gate.sh — block until oxy is idle enough to run a clean benchmark. # Part of plans/05302026_extractor-fulldata-validation/PLAN.md. # # oxy is shared with sibling sessions (coverage2cytosine, alignments, dedup, # methylation_consistency). A contended box ruins timing AND interferes with ...
5dc1ab9832707774a9c8d73e90312a2eeb0ce98f3ea9e9fdbd53c7edec397852
Shell
2,229
49
#!/usr/bin/env bash # Copyright 2017 Google Inc. # All Rights Reserved. # # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of...
c272415d86e874e4a807e7af00ea6d0eb6b8683ba5dca18152c3e7853882a341
Shell
2,237
63
#!/bin/bash -l export TPU_LOAD_LIBRARY=0 export TPU_NAME=$1 export ZONE=$2 python3 train_model_rampage_finetune.py \ --tpu_name=$1 \ --tpu_zone=$2 \ --wandb_project=$3 \ --wandb_user=$4 \ --wandb_sweep_name="atac_rampage_paired" \ --gcs_project=$...
03a89090382006ead3f13abb58daa35db932fe800e5a7e225f9a5a27f2dbc074
Shell
2,247
70
#================================================================== # Run SAIGE GWAS for binary variables: hs, microinf, and grossinf #================================================================== mkdir ./output/gwas/adc/saige/ pheno_file=tmp/nacc_saige.pheno Rscript --vanilla ./code/SAIGE/make_pheno_file.R \ -...
86d86f3922e4b6b56348c6327e0560703daf895159b2f1cc2eedf50e4537ee90
Shell
2,260
61
#! user/bin/bash date=$1 path=/m/cs/archive/networks-pm/mri/$date; cd $path if [ ! -d $path/$date ] ; then echo "unzipping files..." for filename in $(find . -name '*.zip'); do unzip -d "${filename%.zip}" "$filename" done fi for folder in $(find -maxdepth 4 -mindepth 4 -type d ); do se...
9b237336b002e72028d10ffafe96694d12937698b1d6d33e391f18edd8fc6469
Shell
2,261
68
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
1f985958f3c8c1ef746296e8980cee2977ad235bf14e6eda27ae33432455476a
Shell
2,277
68
#!/bin/sh # This function uses linear ridge regression to predict fluid intelligence score (PMAT24_A_CR) in the HCP dataset. # # Written by Jingwei Li and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ######################## # setup for CIRC cluster ######################## curr_...
7a770c47c45f4c1b50959efe7527084c71b9a878df5f95065fcd3937b9b26ac7
Shell
2,293
90
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
1fdab51831872834d84397245ac1ed48a1204539c569609aebdfa81a652cc86b
Shell
2,301
71
#!/bin/bash # Function to kill MLflow UI on exit # cleanup() { # echo "Stopping MLflow UI..." # kill $MLFLOW_PID # echo "MLflow UI stopped." # } # Trap SIGINT and SIGTERM to cleanup properly # trap cleanup SIGINT SIGTERM # Start MLflow UI in the background # mlflow ui & # MLFLOW_PID=$! # Capture the cur...
8a4e85bffa184e503362d1513be4eb9a5a8cf349d9e16cfd31439ae0f1ea36a7
Shell
2,302
78
#!/bin/bash # Run feature selection experiments across a few genes, with selected cancer # types held out (either partially or completely) RESULTS_DIR=./02_cancer_type_classification/results/lasso_range ERRORS_DIR=./lasso_range_errors # number of features to "preselect" to by mean absolute deviation # -1 == no prese...
2f22fd44bb8e0d5b1bfa3ca9baa25448a4989a6da5a41b8343ffc64f83267e8a
Shell
2,310
71
#!/bin/sh # This function replicate the linear ridge regression results in the GSP dataset shown in Li et al., 2019 # Only two behavioral measures are included: Shipley_Vocab_Raw and Matrix_WAIS # # Written by Jingwei Li and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ##########...
085d6dc4c3e602b8b73d8927ab9f5fb22d3fe209013b54a52af303439d11a108
Shell
2,311
75
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
b764fa865e0556c21d5a29985dc7e725a98d086ad00d2117231b3c7af6dc20ac
Shell
2,317
69
#!/bin/sh # This function replicate the kernel ridge regression results in the GSP dataset shown in Li et al., 2019 # Only two behavioral measures are included: Shipley_Vocab_Raw and Matrix_WAIS # # Written by Jingwei Li and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ##########...
dc53ee3c452f4ede1429e698167d21d2e2077c80ca8276644df5d12119f6cee4
Shell
2,331
68
#!/bin/sh # This function uses kernel ridge regression to predict fluid intelligence score (PMAT24_A_CR) in the HCP dataset. # # Written by Jingwei Li and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ######################## # setup for CIRC cluster ######################## curr_...
5b99298b7bb6fbf54c9be6506f2b0d1783311976905fd42d0b730ec52f8e5629
Shell
2,332
41
#!/bin/bash # This script will 1) run snp2gene (annotation), # 2) run gene analysis, # 3) run gene-set analysis on evo. gene lists. # Gokberk Alagoz, 11.10.22 ########################## # Set Paths programs="/home/gokala/programs/" inDir="/data/workspaces/lag/workspaces/lg-genlang/Working/23andMe/Dyslexia2/...
e21362b5d8191b34120226b8b151bfb7f47face6843335dd9d652c197b683895
Shell
2,348
71
#!/usr/bin/env bash # Written by Wu Jianxiao and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md #This function projects x, y, z index volumes of a single subject (after being warped into each subject's T1 space) onto the Freesurfer fsaverage surface space, using FreeSurfer's mri_vol...
ef5257214bfbf8ee109804f4565d0583133149302b3bb34a058b053d06a9d364
Shell
2,351
70
#================================================================== # Run SAIGE GWAS for binary variables: hs, microinf, and grossinf #================================================================== mkdir ./output/gwas/adc/saige/ pheno_file=tmp/nacc_cerad_adj_saige.pheno Rscript --vanilla ./code/SAIGE/make_pheno_fi...
8cfc3765e37106b173617782cb4a46067aafeb84426acb1ccdb09baf9527e364
Shell
2,352
85
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
9b74bbdda139b45c3ebb64dbc157aa241e8c1caef6f724038e32ec8173a12bc1
Shell
2,354
95
#!/bin/bash export VFC_BACKENDS="libinterflop_mca.so --mode=mca --precision-binary64=53 --precision-binary32=24" export LD_PRELOAD=$PWD/../libmath.so declare -A signature_a declare -A type_a signature_a=([univar]="univariate" [bivar]="bivariate" [lgamma_r]="lgamma_r" [sincos]="sincos") type_a=([float]="binary32" [dou...
bf9bbc3e072bf1609902e06fd63c7a2946b5448094ea79f7d44933438c157b32
Shell
2,366
77
#!/bin/sh #====================================================================== # FILE: cansmiles_shuffle.sh # AUTHOR: Craig A. James # DESCRIPTION: # Tests SMILES canonicalization. For each SMILES of input: # # * Writes the SMILES (repeats it) N times # # * Runs the N repeated SMILES through "obabel ... -o smi...
736b3f4581c46df96884e52f25c3330a7c47595be51477c9663405a5d9a65d38
Shell
2,386
24
#$ -N partherit #$ -cwd #$ -q multi15.q #$ -S /bin/bash # Dyslexia /data/workspaces/lag/workspaces/lg-genlang/Working/SCRIPTS/23andMe/clap-beat_dyslexia/pleiotropyevo/ldsc/partherit_baseline.sh /data/clusterfs/lag/users/gokala/beat-dyslexiaevol/data/munged/dyslexia.sumstats.gz allchr.phyloP46way.primate_lessThanMinus...
d565284989b1ca57c5ac15d66e5891e724bfd70951e77430f0922ac80d0989e5
Shell
2,386
24
#$ -N partherit #$ -cwd #$ -q multi15.q #$ -S /bin/bash # Dyslexia /data/workspaces/lag/workspaces/lg-genlang/Working/SCRIPTS/23andMe/clap-beat_dyslexia/pleiotropyevo/ldsc/partherit_baseline.sh /data/clusterfs/lag/users/gokala/beat-dyslexiaevol/data/munged/dyslexia.sumstats.gz allchr.phyloP46way.primate_lessThanMinus...
60871374a05b23d9d2e6ccb833936a11b84540596539531669555fe86a0f7353
Shell
2,388
40
#!/bin/bash # Gokberk Alagoz - 11.11.21 # This script will find the overlapping SNPs in clap-beat and # dyslexia GWAS sumstats and will create subsets with only # overlapping SNPs for both traits. # Subset & sort clap-beat sumstats awk 'NR==FNR{a[$42];next} $19 in a {print $0}' clap_to_beat.merged.1kgenomes_02222019....
3c0be30659229ca73fff95ecde8d5d569bcfb7d810851a21d98eecc67b126a8d
Shell
2,400
70
#!/bin/bash ######################################################### # Make .annot and .l2 files for LDSC part. heritability # Download the latest version of bedtools to your local # directory. Set path to that dir. with: # export PATH="/home/gokala/programs/bedtools2/bin:$PATH" # Run this on lux13, ldsc virtual envir...
ca909a9cbe4db6af402d6fb4e82713e5b99a8c0b824987efba38d78e35a4edf0
Shell
2,414
30
##merge fq.gz files and quality control for i in RNA-seq/* cd $i zcat CL*_1.fq.gz | gzip > merge_1.fq.gz zcat CL*_2.fq.gz | gzip > merge_2.fq.gz fastqc -t 8 ./merge_*.fq.gz cd .. done ##STAR & RNA-seQC & picardtools:collect sequncing statistic metrics for i in sample1 sample2 sample3; do /opt/tools/seq-analysis/STAR...
ce73c978379694781b54ae6ed1c01db30da10a817d857689fb233e2fc0af5a95
Shell
2,415
65
#!/bin/bash -l export TPU_LOAD_LIBRARY=0 export TPU_NAME=$1 export ZONE=$2 python3 train_model_atac_rampage_test.py \ --tpu_name=$1 \ --tpu_zone=$2 \ --wandb_project="atac_rampage_paired_test" \ --wandb_user="njaved" \ --wandb_sweep_name="atac_rampage_paired...
19ffb915420846469fc43f8dc4ff6d21c9cbf33fc50e986d08e75457835c0dff
Shell
2,418
35
sigfile="test/mixer/disease.list1" for trait1 in `cat $sigfile`;do for i in $(seq 1 20); do #if [ ! -f "test/mixer/result/"$trait1".fit.rep"$i".json" ]; then cmd="python3.8 mixer/mixer-master/precimed/mixer.py fit1 --trait1-file test/cFDR/traitfolder/"$trait1" --out test/mixer/result/"$trait1".fit.rep"$i" --power-curv...
e69e4f90e53bbb95c979e9f8b1afca3ffecf9c470a310b30924a56a8fb7d5086
Shell
2,419
29
# # echo "Saving mesh for mito example..." python3 main.py mito-preprocess --input-mesh-file /root/shared/gitrepos/smart-comp-sci/meshes/mito1_coarser2_mesh.xml \ --output-mesh-file /root/scratch/write-meshes/mito/meshes/mito_mesh.h5 --input-curv-file /root/shared/gitrepos/smart-comp-sci/meshes/mito1_coarser2_curvature...
bc5a896f6035bbe778f3db6cd34a3144d28f7922ca4213fa4db93f1977cbf724
Shell
2,423
25
phe=0218 for i in $(seq 20 20);do cmd="python3.8 mixer/mixer-master/precimed/mixer.py fit2 --trait1-file test/cFDR/traitfolder/"$phe".csv_z.csv.gz --trait2-file test/cFDR/traitfolder/MDD2013_noMHC.csv.gz --trait1-params-file test/mixer/result/"$phe".csv_z.csv.gz.fit.rep"$i".json --trait2-params-file test/mixer/result/M...
6152bafe4d3cfedf4f334f379510fc334041dd51e2db881e262b2eec93fb4a0d
Shell
2,425
72
#!/bin/bash # Written by Xiuming Zhang and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md ########################################### # Usage and Reading in Parameters ########################################### # Usage usage() { echo " Usage: $0 -i <imgList> [-n <nameList>] -p <...
19fb53a0d46dd1f85cfedf238f6a211e3fa9ba3f222e8a0209b4105a92420ddf
Shell
2,448
72
############################################################################### # Help # ################################################################################ Help() { # Display Help echo "Prepare the cafemol input file" echo ...
55026f1f1c91c28a42772141dcd73deb3c3ff222a624570b8b1f80e5fabb9fd3
Shell
2,448
29
#!/bin/bash # Written by Jianzhong Chen and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md id=$1 output_dir=$2 FD_th=$3 DV_th=$4 proc_scripts_dir=${CBIG_CODE_DIR}/stable_projects/preprocessing/CBIG_fMRI_Preproc2016 mid_bold=`cat ${output_dir}/${id}/logs/${id}.mid.bold` nback_bold=...
ff3c5a69dc104e950787cd4f85c0d0e1193e82a0650389bfec9b724b766ec588
Shell
2,449
29
# # echo "Saving mesh for mito example..." # python3 main.py mito-preprocess --input-mesh-file /root/shared/gitrepos/smart-comp-sci/meshes/mito1_coarser2_mesh.xml \ # --output-mesh-file /root/scratch/write-meshes/mito/meshes/mito_mesh.h5 --input-curv-file /root/shared/gitrepos/smart-comp-sci/meshes/mito1_coarser2_curva...
4435194ab1f5e58ef76f83b840df6831ceaa5241960e300ec220b6074958c7e7
Shell
2,451
74
#!/bin/bash # Copyright 2026 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
469b9d1f2533d9b8c7ddbee8181d418dda17c928ed46d8057bb5ddf412ed08aa
Shell
2,460
62
#MOLGENIS walltime=05:59:00 mem=8gb ppn=1 #string pythonVersion #string beadArrayVersion #string gapVersion #string bpmFile #string projectRawTmpDataDir #string intermediateDir #string SentrixBarcode_A #string SentrixPosition_A #string concordanceInputDir #string Sample_ID #string tmpName #string logsDir #string Proje...
12479bedb2cacb507bd6d1cbcffa4a7c988330c66184b664f7c825a5831b3235
Shell
2,479
90
#!/bin/bash set -e set -u set -o pipefail # # Disable some shellcheck warnings: # * SC2004: $/${} is unnecessary on arithmetic variables. # But for consistency we prefer to always use ${} anyway. # * SC2015: Note that A && B || C is not if-then-else. C may run when A is true. # We know and use...
df40211a72643048652f65d085cf2b55f577d91d28c19ca237f1e17f983ae279
Shell
2,482
75
#!/usr/bin/env bash # Written by Wu Jianxiao and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md #This script linearly registers a volume file from its original template's space to its norm.mgz space ########################################### #Main commands ########################...