sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
2ffa0c05f80bb6dbe7c9793c91c337824c4065911564fe2dbfc0ef03b1a83e4f | Shell | 374 | 16 | #!/bin/bash
# Clean space from /
# has to be run as root
# clean /var/apt
sudo apt-get clean
echo "20 largest dpkg packeges:"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n20
# retain max 2 version of each snap - this can't be lower than 2
sudo snap set system refresh.retain=2
# clean /var/snap... |
17b98733f1dfa572a09295713019a5c69135975916a481efe33a12213ac86039 | Shell | 377 | 10 | #!/bin/bash
for i in {3..40}
do
echo "K is $i" >>test
sh ./reference.sh $i
bwa mem reference.fasta JC_1161.R1.fq JC_1161.R2.fq -L 100,5 -t 32 -a -M -T 10 -A 1 -B 3 -O 5 -R "@RG\tID:test\tSM:test\tPL:Illumina" 2> /dev/null | mawk '!/\t[2-9].S.*/' | mawk '!/[2-9].S\t/' | samtools view -@32 -q 1 -SbT reference.fasta - 2>... |
c9d36f728c5f48a5f589284cf187a9c594f6f8cbcc279b18b788be1b984e6b54 | Shell | 379 | 12 | #!/bin/bash
# Bash script to start Python ISMRMRD server. First argument is path to log file.
# If no argument is provided, logging is done to stdout (and discarded)
if [ $# -eq 1 ]; then
LOG_FILE=${1}
python3 /opt/code/python-ismrmrd-server/main.py -v -H=0.0.0.0 -p=9002 -l=${LOG_FILE} &
else
python3 /opt/code... |
95683dffea7de80cec10cc87151dd99784801f7e888bdbfaa2711cc42f5f4bd3 | Shell | 391 | 10 | #!/bin/bash
paste <(mawk '/Contig.*:/' $1 ) <(mawk '/Over/' $1) | mawk '$4 > 0.95' | cut -f1 | sed 's/://g' > Hap.loc.belowMAF05
LOC=$(mawk '/Contig/' $2 | wc -l) ####This gives you the number of loci, use it in the next line of code
paste <(seq $LOC ) <(mawk '/Contig/' $2) > BS.loci.numbered
grep -wf Hap.loc.bel... |
74464e4d2aebf9e21ca2744491b50aadf97cfd480bc5138331f1bd775ed9e17f | Shell | 406 | 15 | #!/usr/bin/env sh
# This scripts downloads the mnist data and unzips it.
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
cd $DIR
echo "Downloading..."
for fname in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte
do
if [ ! -e $fname ]; then
wget --no-check-certificat... |
59cb72ff49dfd9cddc7f1cbe40042dd7b3a31ba6c8ace1927dbdad6ca8a96fb3 | Shell | 410 | 21 | #!/bin/bash
#NAMES=$(cut -f1 $1 | sort | uniq)
NAMES=( `cat $1 | cut -f1 | sort | uniq `)
NAME=$(echo $2 | sed -e 's/\.recode.*//g')
LEN=${#NAMES[@]}
mawk -v x=${NAMES[0]} '!/x/' $NAME.recode.vcf > $NAME.0.t.vcf
for ((i = 1; i < $LEN; i++));
do
j=$(($i - 1))
mawk -v x=${NAMES[$i]} '!/x/' $NAME.$j.t.vcf > $NAME.$i.... |
727d9789f2da8039481092743353d2b02c0212e8eea96049b491e81049716376 | Shell | 421 | 28 | #!/bin/bash
#
# Convert BIDS events.tsv to FSL's EV3 files
set -e
set -u
# little helper
printf '1.0\n%.0s' {1..32} > ones.txt
subj="$1"
events="$2"
echo $subj
for r in $(seq 1); do
echo $r
mkdir -p $subj/onsets/run-$r
for c in face scene body house object scramble; do
grep $c \
"$events" \
|... |
58f2c05c7ec37c3d4105e6547958bd6ff1b69f652d672a4a1ec2023a877c2823 | Shell | 424 | 23 | #!/bin/bash
if [ -z "$1"]
then
echo "No file with barcodes and sample names specified."
echo "Correct usage: Rename_for_dDocent.sh barcodefile"
exit 1
else
NAMES=( `cut -f1 $1 `)
BARCODES=( `cut -f2 $1 `)
LEN=( `wc -l $1 `)
LEN=$(($LEN - 0))
echo ${NAMES[0]}
echo ${BARCODES[0]}
for ((i = 0; i <= $LEN; i++));
do
mv ... |
fb96a28c3d84a085525d7316c8ccddb884b9f3c4f901507251afb5766884d76a | Shell | 429 | 14 | #!/bin/bash
#inputs = kval startrep endrep
seq $2 1 $3 > index
n=$(wc -l index | awk '{print $1}')
shuf -i 1-10000000 -n $n | paste index - > index.random
while read index random
do
echo "structure -i SNP.distLD.bi.struc.linux -o SNP.distLD.bi.$1.K.rep.$index -K $1 -D $random -m mainparams -e extraparams" | cat scr... |
3d45cf2ecfd15e2c6e980d1439a1d7a0181623a4770c9852b6bf13112fb59ca2 | Shell | 435 | 12 | #!/bin/bash
# Bash script to start Python ISMRMRD server. First argument is path to log file.
# If no argument is provided, logging is done to stdout (and discarded)
if [ $# -eq 1 ]; then
LOG_FILE=${1}
python3 /opt/code/python-ismrmrd-server/main.py -v -H=0.0.0.0 -p=9002 -s -S /tmp/share/saved_data -l=${LOG_FILE... |
0f216e5482604386c4a2316da560364224376e4aee7d369f518d26d04bf8cdca | Shell | 442 | 14 | #!/bin/bash
# Bash script to start Python ISMRMRD server. First argument is path to log file.
# If no argument is provided, logging is done to stdout (and discarded)
cp -R -f /tmp/share/code/* "/opt/code/python-ismrmrd-server/"
if [ $# -eq 1 ]; then
LOG_FILE=${1}
python3 /opt/code/python-ismrmrd-server/main.py ... |
d461ac615a4fb809b7fb2fbe579fbe8530e4e38629d2db2fdb00061b46a55594 | Shell | 447 | 9 | #!/bin/bash
MOUNT=$1
SIZE=$(df -h $MOUNT | awk '{print $4}' | tail -1 | awk '/K$/{print ($0+0)*1024*1024}/M$/{print ($0+0)/1024}/G$/{print $0+0}/T$/{print ($0+0)*1024}')
MINSIZE=$2 #in GB
HOST=$(hostname)
if (( $(echo "$SIZE < $MINSIZE" |bc -l) )); then
echo "$MOUNT free space is $SIZE GB, which is below $MINSIZE ... |
8ef927ad8df2705de5259f8ef1683048cdf8f875c2064dbec7e3839f2a3740f4 | Shell | 453 | 9 | #!/bin/bash
vcftools --vcf SNP-VQSR-PASS.vcf --minQ 20 --geno 0.5 --mac 2 --recode --recode-INFO-all --out TRSg
vcftools --vcf TRSg.recode.vcf --minDP 4 --recode --recode-INFO-all --out TRSgdp4 &
vcftools --vcf TRSg.recode.vcf --minDP 3 --recode --recode-INFO-all --out TRSgdp3 &
vcftools --vcf TRSg.recode.vcf --minDP ... |
d062de463a88df5a9a88b94434d90db0022fcc7281a499cde22a87bcc5ff1b4b | Shell | 460 | 19 | #!/usr/bin/env sh
# This script converts the cifar data into leveldb format.
EXAMPLE=examples/cifar10
DATA=data/cifar10
DBTYPE=lmdb
echo "Creating $DBTYPE..."
rm -rf $EXAMPLE/cifar10_train_$DBTYPE $EXAMPLE/cifar10_test_$DBTYPE
./build/examples/cifar10/convert_cifar_data.bin $DATA $EXAMPLE $DBTYPE
echo "Computing i... |
42691c2a0f4c34d27ff3bd44309787c412320fcead6d4b86cf39a590f15c716c | Shell | 473 | 25 | #!/bin/bash
rm kopt.data
for i in {3..30}
do
echo "K is $i"
SEQS=$(./reference.sh $i 2>/dev/null | mawk '/KSEQS/' | cut -f2)
echo $i $SEQS >> kopt.data
done
#Plot graph of above data
gnuplot << \EOF
set terminal dumb size 120, 30
set autoscale
unset label
set title "Number of Unique Sequences with More than X Occ... |
031552c8df96761a0cb07af1755ba7237cd7759aa8a54c60ced771944304c1e0 | Shell | 479 | 12 | #!/bin/bash
if [[ -z "$1" ]]; then
echo "Usage: VCFtoOutlierOnly.sh Vcffile BayescanOutput FDR Prefix_for_output"
exit 1
fi
mawk '!/#/' $1 | cut -f1,2 > totalloci
mawk '!/qval/' $2 | cut -f2-6 > BS.noheader
paste totalloci BS.noheader | mawk -v x=$3 '$6 <= x' | cut -f1,2 > Outlier.list
vcftools --vcf $1 --positions O... |
5ea5694cf4943f059f0f462536b1c2b700aef969880a35fb56dd38dd093c2171 | Shell | 490 | 16 | #!/usr/bin/env bash
if [[ -z "$3" ]]; then
echo "Usuage is multi.maf.sh [vcffile] [maf] [prefix for outfile]"
exit 1
fi
paste <(cut -f1,2 $1 | mawk '!/#/' ) <(cut -f8 $1 | grep -oh "AF=.*;AN" | sed -e 's/AF=//g' -e 's/;AN//g' -e 's/,/\t/g' | mawk '{ for(i=1; i<=NF;i++) j+=$i; print j; j=0 }') > all.maf.frq
mawk -v... |
d519f407c88a1dc99c68e7c07d8801423aec1273847893aea2d797ca2bce5610 | Shell | 494 | 10 | #!/bin/bash
# Report stats (mapped reads and identity to reference) from samtools stats
# for bam file(s) ignoring secondary, suplementary and qc failed alignments
#
# USAGE: bam2stats.py bam1 bam2 ... bamN
for f in "$@"; do if [ -s $f ]; then echo $f `samtools stats -F3840 $f | awk '{if ($2=="sequences:"){nseq=$3} e... |
eca6e59c469eea98e167547813637bb3018a41c686cfcf5fc8f0ab4c7dbbd288 | Shell | 503 | 21 | #!/bin/bash
vcfdistance <$1 | grep -oh 'BasesToClosestVariant=[0-9]*' | sed -e 's/BasesToClosestVariant=//g' > vardist
gnuplot << \EOF
set terminal dumb size 120, 30
set autoscale
#set xrange [10:150]
unset label
set title "Histogram of distance to closest variant"
set ylabel "Number of Occurrences"
set xlabel "Mean... |
87ffa4280f2de1f4509657ae21d57983c62dc0c4ff158f90fc92f551b3d28c48 | Shell | 504 | 19 | #!/usr/bin/env sh
# This scripts downloads the CIFAR10 (binary version) data and unzips it.
DIR="$( cd "$(dirname "$0")" ; pwd -P )"
cd $DIR
echo "Downloading..."
wget --no-check-certificate http://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz
echo "Unzipping..."
tar -xf cifar-10-binary.tar.gz && rm -f cifar-10-... |
3a11282ff1e2d4657e89c7890eae05c59f8a8768cf56072ef43742491eec3ffe | Shell | 505 | 23 | #!/usr/bin/env bash
if [ -z "$1" ]
then
echo "No file with barcodes and sample names specified."
echo "Correct usage: Rename_for_dDocent.sh barcodefile"
exit 1
else
NAMES=( `cut -f1 $1 `)
BARCODES=( `cut -f2 $1 `)
BARCODES2=( `cut -f3 $1 `)
LEN=( `wc -l $1 `)
LEN=$(($LEN - 1))
echo ${NAMES[0]}
echo ${BARCODES[0]}
f... |
85f43435031076acb93bb10bb0dbc8cbcf29cbb79f713bc9bd0103fdd3234fcb | Shell | 514 | 16 | #!/usr/bin/env sh
TOOLS=./build/tools
$TOOLS/caffe train \
--solver=examples/cifar10/cifar10_full_solver.prototxt
# reduce learning rate by factor of 10
$TOOLS/caffe train \
--solver=examples/cifar10/cifar10_full_solver_lr1.prototxt \
--snapshot=examples/cifar10/cifar10_full_iter_60000.solverstate.h5
# ... |
76156bb378ee0977b575eae3f1e13f042cdeccd1ddd2ece51f399574e1e6e797 | Shell | 524 | 16 | for i in *_trimmed.fq.gz;
do
bismark -L 32 -q --unmapped --ambiguous --phred33-quals --genome_folder /data/NGS/genomes/hisat2_annotation/Rat_EN/ -p 10 --multicore 5 $i ;
done
for i in *.bam
do
samtools sort -@ 40 -o ${i%%.bam}.sort.bam $i
done
for i in *.sort.bam
do
samtools view -h $i >${i%%.bam}.sam
do... |
79bc329e9b23a5afb4499c1cc2f6f2ca414292680593bfd5b70ccc59315c56de | Shell | 535 | 14 | #!/bin/bash
echo `date` Starting sync...
# move all completed bulk dumps to _toRemove
cd /ssd/data/ont
mkdir -p _toRemove; mv *.fast5 _toRemove
# sync files modified in last 61 minutes
find -L . -type f -cmin -61 -regextype posix-extended -regex ".*.(pod5|html|csv|txt|md|json)" | grep -vwP "_toRemove|reads" > /tmp/rs... |
0a91f5d65c761f5790836acc8111947ed106a239b7ea59e0dc119cfeadd7d1fd | Shell | 551 | 26 | #!/usr/bin/env bash
if [ -z "$1" ]
then
echo "No file with barcodes and sample names specified."
echo "Correct usage: Rename_for_dDocent.sh barcodefile"
exit 1
else
NAMES=( `cut -f1 $1 `)
BARCODES=( `cut -f2 $1 `)
LEN=( `wc -l $1 `)
LEN=$(($LEN - 1))
echo ${NAMES[0]}
echo ${BARCODES[0]}
for ((i = 0; i <= $LEN; i++)... |
b3993d746f91df09fdcf122044e096a837640356c06a36b41038d4992b191c82 | Shell | 575 | 15 | #!/bin/bash
#Create temporary vcfs for each scaffold and loop over them to calculate ehh and xpehh
while read line;
do
grep $line ../SNP.dom.phased.INS.recode.vcf > temp.ins.vcf
grep $line ../SNP.dom.phased.OUT.recode.vcf > temp.out.vcf
grep $line ../SNP.msp.recode.phased.bi.map > temp.map
selscan --ihs --vcf temp.in... |
dcfcf1200096190f83ef44c2959dbb9dd5cbe425a0185c6fb5362bce9736ff5d | Shell | 576 | 18 | #!/bin/bash
if [[ -z "$1" ]]; then
echo "Usage: LositantoOutlierVCF.sh Vcffile LositanFile FDR Prefix_for_output"
exit 1
fi
PVALUE=$(echo "1-$3/2" | bc -l)
mawk '!/#/' $1 | cut -f1,2 > totalloci
mawk '!/Het/' $2 | cut -f2-5 > LS.noheader
paste totalloci LS.noheader | awk -v x=$PVALUE '$5 >= x' | cut -f1,2 > Outlier.... |
8341e43129c502bb0250c56d08958f3fae087da24f07aa46104e9113bf3c6e36 | Shell | 578 | 9 | ## update backend modules ##
cp /home/bennyray/Projects/neuro-learn/web/neurolearn_dev/backend/views.py /home/bennyray/Projects/neuro-learn/docker/dev/app/backend/
## update frontend static ##
# rm -rf /home/bennyray/Projects/neuro-learn/docker/dev/app/frontend/dist/
# cp -r /home/bennyray/Projects/neuro-learn/web/neu... |
169f1577c2aad81b1f5daba56ccd5da86b1af3d768294d2ba1c12cb140d63fc4 | Shell | 585 | 21 | #!/usr/bin/env sh
#
# N.B. This does not download the ilsvrcC12 data set, as it is gargantuan.
# This script downloads the imagenet example auxiliary files including:
# - the ilsvrc12 image mean, binaryproto
# - synset ids and words
# - Python pickle-format data of ImageNet graph structure and relative infogain
# - the... |
e8b59b0a06d741d1db78d1bb80c8bbf8f43aba9d63033133e354ff871406e657 | Shell | 605 | 19 | #!/bin/bash
#SBATCH -t 0:30:00
#SBATCH -N 1
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp $HOME/CogNonCog/GSEM_with23andME/input/* . # copy content of dir in the current folder (. is telling current folder)
#load necessary modules
module load R/3.4.3
#Execute ... |
11e776801a313030f0b1640631619400e4a1dd79c87e683ce7a8346c8709a389 | Shell | 615 | 22 | #!/bin/bash
#SBATCH -t 02:00:00
#SBATCH -N 1
cd $TMPDIR
for CHR in $(seq 1 22);do
(
Rscript /home/pdemange/TWAS/fusion_twas-master/FUSION.assoc_test.R \
--sumstats /home/pdemange/CogNonCog/Annotations/Sumstats/NonCog_23andMe_woblanks.sumstats \
--weights /home/pdemange/CogNonCog/Annotations/TWAS/WEIGHTS/CM... |
f1a7761aab06a236645094165e75b687d9e200f597d41d6d7626ed0762abffc5 | Shell | 670 | 21 | #!/bin/bash
#Script to take the best SNP from every contig in a vcffile
if [[ -z "$1" ]]; then
echo "Usage is bash Filter_VCF_best_SNP_per_contig.sh vcffile"
exit 1
fi
NAME=$(echo $1 | sed -e 's/\.recode.*//g')
cat $1 | mawk 'BEGIN{last_loc = 0} {
if ($1 ~/#/) print $0;
else if ($1 ~!/#/ && last_loc == 0) {la... |
a7592c8249f64b3dd327afd38f00e089b3a11cf8907fd856a4378912dbb81e5d | Shell | 694 | 23 | #!/bin/bash
if [[ -z "$2" ]]; then
echo "Usage is pop_missing_filter vcffile popmap percent_missing_per_pop number_of_pops_for_cutoff name_for_output"
exit 1
fi
POPS=( `cut -f2 $2 | sort | uniq `)
rm badloci
for i in "${POPS[@]}"
do
grep -w $i $2 | cut -f1 > keep.$i
vcftools --vcf $1 --keep keep.$i --missing --out $... |
13bbf61d8e9fd3e7af71aeb880eec4b27153e98266c76e29c6357c4259c31954 | Shell | 695 | 20 | #!/bin/bash
#SBATCH -t 02:00:00
#SBATCH -N 1
# Run genetic correlation with genomic SEM
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp -r $HOME/CogNonCog/Genetic_Correlations/Input/* .
cp -r $HOME/CogNonCog/Genetic_Correlations/Output_munge/* .
#load necessary modules
modu... |
ca6512bb2167902408826776eca22db5a3b36ea5b967b391bdfc5662133c081e | Shell | 695 | 23 | #!/bin/bash
if [[ -z "$2" ]]; then
echo "Usage is pop_missing_filter vcffile popmap percent_missing_per_pop number_of_pops_for_cutoff name_for_output"
exit 1
fi
POPS=( `cut -f2 $2 | sort | uniq `)
rm badloci
for i in "${POPS[@]}"
do
grep -w $i $2 | cut -f1 > keep.$i
vcftools --vcf $1 --keep keep.$i --missing --out $... |
6e32530df5a7b7ea000898871a4777c44834b59d4588165f6d2315f7ea757311 | Shell | 701 | 20 | #!/bin/bash
#SBATCH -t 02:00:00
#SBATCH -N 1
# Run genetic correlation with genomic SEM
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp -r $HOME/CogNonCog/Genetic_Correlations/Input/* .
cp -r $HOME/CogNonCog/Genetic_Correlations/Output_munge/* .
#load necessary modules
modu... |
ec450bb89040de08f9e32394161dd6560c3857ca78824c532ded57aa7fae621a | Shell | 711 | 33 | # Install/unInstall package files in LAMMPS
# mode = 0/1/2 for uninstall/install/update
# this is default Install.sh for all packages
# if package has an auxiliary library or a file with a dependency,
# then package dir has its own customized Install.sh
mode=$1
# arg1 = file, arg2 = file it depends on
action () {
... |
2ded14ce2d9f7045238e2cc047a921823cc57e96158b56486636ac4db7bda714 | Shell | 728 | 19 | #!/usr/bin/bash
# Remove runs older than 91 days that are not in use by any app (no *.toml file in the project directory).
# remove old runs
for d in /ssd/data/ont/ ; do
echo `date` $d
cd $d
# get all run dirs older than 91 days
find -mindepth 2 -maxdepth 2 -type d -mtime +91|grep -vP "persistence|pin... |
56403c26ef662c38241b0802664c6c1b316227ffbf515ad99a84058b8ef491f1 | Shell | 729 | 23 | #!/bin/bash
#SBATCH -t 35:00:00
#SBATCH -N 1
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp $HOME/CogNonCog/GSEM_with23andME/input/* . # copy content of dir in the current folder (. is telling current folder)
#load necessary modules
module load R/3.4.3
#Exec... |
a230d064b76a0a2accd6dddb8ea12d07101beac0f05c8e45d203fb6416d615ce | Shell | 729 | 23 | #!/bin/bash
#SBATCH -t 35:00:00
#SBATCH -N 1
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp $HOME/CogNonCog/GSEM_with23andME/input/* . # copy content of dir in the current folder (. is telling current folder)
#load necessary modules
module load R/3.4.3
#Exec... |
d734bacb5cde56e3b054d70c4b93aa967087f6027d7cf39a692f864058d28b17 | Shell | 729 | 29 | #!/bin/bash
EXEC=../../src/lmp_meso
function avg {
echo $sum
awk "{sum+=\$$1} END { print sum/NR}"
}
printf "RBC-count, Hematocrit, Volume, Loop time \n"
for fp in tDPDmeso_RBCs_in_box_*Heme35_Vol{8192,16384,32768,65536}.data
do
nRBC=$(echo ${fp} | awk -v FS="(nRBC|_H)" '{print $2}' | bc -l)
Hemato... |
e7119b225e5d8ee1b1fb86262d796a6551eb7673d1aa02d3937955348b7c9900 | Shell | 746 | 25 | #!/bin/bash
#SBATCH -t 35:00:00
#SBATCH -N 1
echo time
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp $HOME/CogNonCog/GSEM_with23andME/input/* . # copy content of dir in the current folder (. is telling current folder)
#load necessary modules
module load R/3.4.3... |
ac903ccecfca9346320da229c6f31fe9c0af32326df688240713bf3d4559c03f | Shell | 748 | 36 | # Install/unInstall package files in LAMMPS
# mode = 0/1/2 for uninstall/install/update
mode=$1
# arg1 = file, arg2 = file it depends on
action () {
if (test $mode = 0) then
rm -f ../$1
elif (! cmp -s $1 ../$1) then
if (test -z "$2" || test -e ../$2) then
cp $1 ..
if (test $mode = 2) then
... |
4d22f8757bab892adc8a09c91dd9b241827389c3b869a81e00a0bf686be4f5b5 | Shell | 752 | 25 | #!/bin/bash
#SBATCH -t 35:00:00
#SBATCH -N 1
echo time
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp $HOME/CogNonCog/GSEM_with23andME/input/* . # copy content of dir in the current folder (. is telling current folder)
#load necessary modules
module load R/3.4.3... |
7a4531b79b141a8ecb886f6b47ba67d548ac4d71313a9db8c0e7ad488e1234c6 | Shell | 757 | 31 | #!/bin/bash
#umount
echo "Unmounting sshfs..."
mountpoints=`mount | grep sshfs | cut -f3 -d" "`
for m in $mountpoints; do
echo " $m"
sudo umount $m
done
#fusermount
mountpoints=`mount | grep sshfs | cut -f3 -d" "`
if [ ! -z $mountpoints ]; then
echo "Unmounting sshfs by 'fusermount -uz'..."
for m in $... |
f3fbf5c9b0119650cb5e38ea27fb45c0809dc3729d8f9c9d0761569eeff2a087 | Shell | 763 | 14 | #!/bin/bash
# create a list with the name of the files with the annotation: get a list of all the files in the folder annotation, remove the path to this filename and remove the suffixe 1.annot.gz
# J is incremented to be able to submit 5 jobs at a time and then wait one second, so that Lisa does not crash
j=0
... |
f92a94d37eff863e1f3ad469c812ef85b0b2f6ea156a4ee409b97d3b779bc02d | Shell | 784 | 30 | #!/usr/bin/env bash
export LC_ALL=en_US.UTF-8
#This script can quickly rename filess within the dDocent naming convention. It needs to be passed a tab delimited
#file with the old name in one column and the new name in the other
#Example#
#PopA_001 NewPop_001
#
# This will renmae PopA_001.F.fq.gz and PopA_001.R.fq.gz... |
30c68f866bc58ffd456f4d48c9dfe8ad5be1a8ed5a3d239b5942f3ee443173ad | Shell | 789 | 37 | #!/bin/bash
#umount
echo "Unmounting sshfs..."
mountpoints=`mount | grep sshfs | cut -f3 -d" "`
for m in $mountpoints; do
echo " $m"
umount $m
done
#fusermount
mountpoints=`mount | grep sshfs | cut -f3 -d" "`
if [ ! -z $mountpoints ]; then
echo "Unmounting sshfs by 'fusermount -uz'..."
for m in $mount... |
95f0c259c76d876bc73cecf85675141ba70eb9395f08649978319f55bf95ec11 | Shell | 792 | 23 | #!/bin/bash
#SBATCH -t 04:00:00
#SBATCH -N 1
# Run genetic correlation with genomic SEM
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp -r $HOME/CogNonCog/Genetic_Correlations/woSNP/Cogent_UKB/Input/* .
cp -r $HOME/CogNonCog/Genetic_Correlations/Output_munge/* .
#load necess... |
51663ae799be738ad978c76d1f70c0d3964d1c878e40329a962549de42243a1a | Shell | 795 | 23 | #!/bin/bash
#SBATCH -t 04:00:00
#SBATCH -N 1
# Run genetic correlation with genomic SEM
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp -r $HOME/CogNonCog/Genetic_Correlations/woSNP/CausalEACP/Input/* .
cp -r $HOME/CogNonCog/Genetic_Correlations/Output_munge/* .
#load necess... |
247f49f5af84e9ea0bde9490507b8a27e689fc3f9faad3a0fa241ee1d6df3732 | Shell | 799 | 29 | #!/bin/bash
ls *-RG.bam >bamlist.list; bamtools merge -list bamlist.list > full.bam
samtools index full.bam &>/dev/null
samtools idxstats full.bam 2>/dev/null | cut -f3 > coverage
rm full.bam*
gnuplot << \EOF
set terminal dumb size 120, 30
set autoscale
#set xrange [10:150]
unset label
set title "Histogram of cover... |
abc6a2c1ddaa3ec4a5ea1cc50cdcdeae345dfb649ceb9097acf53e9ee65d3de4 | Shell | 805 | 22 | #!/bin/bash
#SBATCH -t 10:00:00
#SBATCH -N 1
# Run genetic correlation with genomic SEM
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp -r $HOME/CogNonCog/Genetic_Correlations/Mediation/Input* .
cp -r $HOME/CogNonCog/Genetic_Correlations/Output_munge/* .
#load nec... |
80dc0d5f544c31e5126aecefee3b6d86c6b20e17b47a0bd0684709d926331db8 | Shell | 829 | 23 | #!/bin/bash
#SBATCH -t 04:00:00
#SBATCH -N 1
# Run genetic correlation with genomic SEM
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp -r $HOME/CogNonCog/Genetic_Correlations/woSNP/Covariance_CogNonCog/Input/* .
cp -r $HOME/CogNonCog/Genetic_Correlations/Output_munge/* .
#l... |
de1c0617611d16595ff81a120d4f078d0af6d53014c506e2cfa0179538698897 | Shell | 833 | 19 | #!/bin/sh
# How to generate ANACONDA_TOKEN: https://docs.anaconda.com/anaconda-cloud/user-guide/tasks/work-with-accounts#creating-access-tokens
if [ -z "$ANACONDA_TOKEN" ]; then
echo "ANACONDA_TOKEN is unset. Please set it in your environment before running this script";
exit 1
fi
conda install -y conda-build... |
6891b22d6d8855236ad6e3bca35cb5847ff9b6c61bab408b55a73ebbbbbecb4c | Shell | 838 | 23 | #!/bin/bash
#SBATCH -t 04:00:00
#SBATCH -N 1
# Run genetic correlation with genomic SEM
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp -r $HOME/CogNonCog/Genetic_Correlations/woSNP/Covariance_CogNonCog/Input/* .
cp -r $HOME/CogNonCog/Genetic_Correlations/Output_munge/* .
#l... |
c774f06f4f1f957ad7b6089da6be4100ff90395095a669af51da1cad0a7673d8 | Shell | 840 | 24 | #!/bin/bash
#SBATCH -t 5:00:00
#SBATCH -N 1
cd "$TMPDIR"
module load python/2.7.9
module load R
Rscript --no-save --slave /home/pdemange/CogNonCog/Annotations/Mouse_annotation/shoulder10k_nowindow_baselineld2.2/Scripts/script.3.make_union.R
for CHR in $(seq 1 22);do
{
python /home/vubiopsy/GWAS/resources/software/l... |
135f39054ed806bb9c36dd3543f9a190ac3fba2a06773fd6e2229125158ec73d | Shell | 841 | 28 | #!/bin/bash
vcftools --vcf $1 --max-alleles 2 --recode --out out --site-depth &>/dev/null
HET=( `mawk '!/#/ {print $1,gsub(/0[\/\|]1/,"")}' out.recode.vcf | cut -f2 -d " "` )
HETT=( `mawk '!/#/ {print $1,gsub(/1[\/\|]0/,"")}' out.recode.vcf | cut -f2 -d " "` )
DEPTH=( `mawk '!/SUM/' "out.ldepth" | cut -f3`)
LEN=${#HET... |
f4638a8820e729d62d7496b96552e44f5cca45f9c6f981e1bb96f355285e00c8 | Shell | 842 | 23 | #!/bin/bash
#SBATCH -t 1:00:00
#SBATCH -N 1
cd "$TMPDIR"
module load R
module load python/2.7.9
Rscript --no-save --slave /home/pdemange/CogNonCog/Annotations/Mouse_annotation/shoulder10k_nowindow_baselineld2.2/Scripts/script.2.input_2_annot.R ${i} ${ANNOT}
wait
for CHR in $(seq 1 22);do
python /home/vubiopsy/GWAS/... |
5a1d6f31d77cbc293c96fd2907f05ba5af104cdde6112504ee534e06777ad383 | Shell | 873 | 21 | #!/bin/bash
#SBATCH -t 02:00:00
#SBATCH -N 1
# Run the munge function to prepare sumstats for genetic correlations with Genomic SEM
cd $TMPDIR
#Copying data to scratch for a single node job. Make reading data faster.
cp -r $HOME/CogNonCog/Genetic_Correlations/Sumstats/Sumstats_correct/* . # copy content of dir in t... |
b9191f8bc28ce8fb844517ea7d0396434c91d7ca5c7bea1b6a3e41ceb92401e9 | Shell | 905 | 18 | #!/bin/bash
# We had to modify this script compared to analysis wihtout jackknife,as an update of LISA made using --export not possible
j=0
for ANNOT in $(ls /home/pdemange/CogNonCog/Annotations/Mouse_annotation/shoulder10k_nowindow_baselineld2.2/ANNOTS/*.1.annot.gz | sed 's!/home/pdemange/CogNonCog/Annotations/Mous... |
3ae776b5dedc1be63dee202e7c333b4d3a518fb999fe6a0bff187f5b81721c2c | Shell | 911 | 17 | #!bin/bash
#QC filtering
for i in *_R1_001.fastq.gz;
do
n=${i%%_R1_001.fastq.gz};
java -jar /data/biotools/Trimmomatic/trimmomatic-0.36.jar PE -threads 50 -phred33 $i ${n}_R2_001.fastq.gz ${n}_R1_clean.fq.gz ${n}_R1_unpair.fq.gz ${n}_R2_clean.fq.gz ${n}_R2_unpair.fq.gz ILLUMINACLIP:/data/biotools/Trimmomatic... |
126af5fbd0849700ce8a2845175cf734d41b803d10a17433e90eff2001a95c07 | Shell | 950 | 40 | #!/bin/bash
###
# Cron service for NextSeq to FastQ conversion.
# Will send email if any WARNING encountered.
###
me=`basename $0`
host=`hostname`
# load env variables
## make sure line `[ -z "$PS1" ]` is commented in .bashrc
## http://stackoverflow.com/a/15574078/632242
source /home/lpryszcz/.bashrc
EMAILMESSAGE... |
4bf8f0ae55a4380b14758351aa7fc9bdc81ebe7f861424d000308b9592ff0ec9 | Shell | 951 | 19 | #!/bin/bash
cd /home/pdemange/CogNonCog/Annotations/Mouse_annotation/shoulder10k_nowindow_baselineld2.2/Scripts
head -n1 /home/pdemange/CogNonCog/Annotations/Mouse_annotation/Basefiles/Mouseatlas_specific_expression_L5.txt | sed 's! !\n!g' > cellType.names
# takes the header in the first line and sed it such as makin... |
092847556b2d5fccdafe40d419234f10f13e28de758f16b70754c91244cb4c5e | Shell | 988 | 34 | #!/bin/bash
# Put runs older than given number of DAYS from ONTDIR onto tape.
# Run has to have a pod5 directory to be stored.
# Text files (csv, txt, json,md) are gzip compressed.
# Runs archived before are marked with .tape file and are skipped.
DAYS=7
ONTDIR=/no_backup/enovoa/data/ont
echo `date` Archiving runs in... |
a9eaee7290c921850936764319f43b81476955e8c9a94c0a03848a694769b4e5 | Shell | 998 | 20 | #!/bin/bash
#SBATCH -t 10:00:00
#SBATCH -N 1
cd "$TMPDIR"
module load 2019
module load Python/2.7.15-foss-2019b
python /home/vubiopsy/GWAS/resources/software/ldsc/ldsc.py \
--h2 /home/pdemange/CogNonCog/Annotations/Sumstats/Cog_23andMe.sumstats.gz \
--ref-ld-chr /home/pdemange/CogNonCog/Annotations/LDScores_base_fil... |
1ebcac3b8a75ed8796e0438feff9fec19fb56ba7bfd6b30d338abefb65e30136 | Shell | 1,009 | 20 | #!/bin/bash
#SBATCH -t 03:00:00
#SBATCH -N 1
cd "$TMPDIR"
module load 2019
module load Python/2.7.15-foss-2019b
python /home/vubiopsy/GWAS/resources/software/ldsc/ldsc.py \
--h2 /home/pdemange/CogNonCog/Annotations/Sumstats/NonCog_23andMe.sumstats.gz \
--ref-ld-chr /home/pdemange/CogNonCog/Annotations/LDScores_base_... |
5d9b924a749dbdc74cd15290a8d515df0b2507013eccf38126efb4bd43941217 | Shell | 1,044 | 27 | #Choose which set of gene sets to analyze. Options include Multi_tissue_gene_expr, Multi_tissue_chromatin, GTEx_brain, Cahoy, ImmGen, or Corces_ATAC
cts_name=Multi_tissue_gene_expr
#Download the LD scores
wget https://data.broadinstitute.org/alkesgroup/LDSCORE/LDSC_SEG_ldscores/${cts_name}_1000Gv3_ldscores.tgz
wget ht... |
99664c9521aac7d4ec1b5d179de30f2d9670d04ac267b02f07597079514adb61 | Shell | 1,056 | 44 | #!/bin/bash
vcftools --vcf $1 --missing --out $2
CUTOFF=$(mawk '!/IN/' $2.imiss | cut -f5 | sort -rn | perl -e '$d=.14;@l=<>;print $l[int($d*$#l)]')
#echo $CUTOFF
mawk '!/IN/' $2.imiss | cut -f5 > totalmissing
gnuplot << \EOF
set terminal dumb size 120, 30
set autoscale
unset label
set title "Histogram of % missi... |
b3802a9025b7a459b22c911d31293d057218cd486e94b306917ec88c55299cfa | Shell | 1,078 | 31 | #!/bin/bash
set -e
mv Makefile.config.example Makefile.config
if $WITH_CUDA; then
# Only generate compute_50.
GENCODE="-gencode arch=compute_50,code=sm_50"
GENCODE="$GENCODE -gencode arch=compute_50,code=compute_50"
echo "CUDA_ARCH := $GENCODE" >> Makefile.config
fi
# Remove IO library settings from Makefil... |
c6fe23f26ed95873c35042fa8067261addabea65a7ec29d1d9226046fd0cc8e4 | Shell | 1,078 | 20 | #!/bin/bash
cut -f8 $1 | grep -oe "DP=[0-9]*" | sed -s 's/DP=//g' > $1.DEPTH
mawk '!/#/' $1 | cut -f1,2,6 > $1.loci.qual
DEPTH=$(mawk '{ sum += $1; n++ } END { if (n > 0) print sum / n; }' $1.DEPTH)
QUAL=$(python -c "print $DEPTH * 2")
paste $1.loci.qual $1.DEPTH | mawk -v x=$DEPTH '$4 > x'| mawk '$3 < 1.0 * $4' > $1... |
85efca1995a2f9c46e32a985bdb453da5d11862d56896ef55af1d2cbae864285 | Shell | 1,079 | 24 | #!/bin/bash
#Script to randomly sample 18 individuals from populations and calculate pi
mawk1='{ sum += $5; n++ } END { if (n > 0) print sum / n; }'
rm sample.pi sample.pi.pop subsample.pi
for i in {1..100}
do
mawk '/AR_/' kept.popmap | shuf | head -15 | cut -f1 > AR1.keep
mawk '/ARB_/' kept.popmap | shuf | head -1... |
8d1bcfe689e0ada2966d473bc4adf24fbc092e102ccb88ae5e9e8ba898c249b6 | Shell | 1,083 | 53 | #!/bin/bash
key=$1
bedFn=$2
parentDir=$3
pattern=$4
dsArgs=()
mkdir -p ${key}
module add bedops/2.4.29-typical
#
# build lexicographically-ordered map list
#
find ${parentDir} -name ${pattern} -print0 | sort -z | xargs -r0 echo | sed 's/ /\n/g' > ${key}/fns.txt
#
# map against files in map list
#
while IFS='' rea... |
9625916cfdcaa2dc632185f1006eb8cefcf68f4b15ca98a4d5d407ba92e5a8fa | Shell | 1,210 | 34 | #!/usr/bin/env bash
#Script to take random SNP from every contig in a vcffile
if [[ -z "$1" ]]; then
echo "Usage is bash Filter_one_random_snp_per_contig.sh vcffile"
exit 1
fi
#Calculate number of SNPs
Loci=(`mawk '!/#/' $1 | wc -l `)
#Generate list of random numbers
seq 1 500000 | shuf | head -$Loci > nq
#create ... |
e8ca7a4e4f3e0442617cd6a0deb5ec2235691cad04addbb920ac4540eae662bf | Shell | 1,233 | 33 | #!/bin/sh
#This script is intended for launch on *nix machines
#-Xmx4g indicates 4 gb of memory, adjust number up or down as needed
#Add the flag -Dsun.java2d.uiScale=2 for HiDPI displays
prefix=`dirname $(readlink -f $0 || echo $0)`
# Check whether or not to use the bundled JDK
if [ -d "${prefix}/jdk" ]; then
e... |
6fa04b47167d96b3ffffe69e78278424205c1ac1a947765a84966ed2db0734ce | Shell | 1,252 | 54 | #!/bin/bash
# Script called by Travis to build and test Caffe.
# Travis CI tests are CPU-only for lack of compatible hardware.
set -e
MAKE="make --jobs=$NUM_THREADS --keep-going"
if $WITH_CMAKE; then
mkdir build
cd build
CPU_ONLY=" -DCPU_ONLY=ON"
if ! $WITH_CUDA; then
CPU_ONLY=" -DCPU_ONLY=OFF"
fi
PYT... |
312cc741aaa20d8cc1d8b8a0d4a7d7358b9a73d123563daa53fbb56c6a084474 | Shell | 1,256 | 36 | #!/usr/bin/env bash
export LC_ALL=en_US.UTF-8
#check for vcftools version
VCFTV=$(vcftools | grep VCF | grep -oh '[0-9]*[a-z]*)$' | sed 's/[a-z)]//')
if [ "$VCFTV" -lt "10" ]; then
echo "The version of VCFtools installed in your" '$PATH' "is not optimized for dDocent."
echo "Ple... |
7a360b7a30959a8dd754be487fd56b6538733c66ae47afa33aa3da35ad010bf5 | Shell | 1,275 | 35 | #!/bin/sh
#This script is intended for launch on *nix machines
#-Xmx4g indicates 4 gb of memory, adjust number up or down as needed
#Add the flag -Dsun.java2d.uiScale=2 for HiDPI displays
prefix=`dirname $(readlink -f $0 || echo $0)`
# Check whether or not to use the bundled JDK
if [ -d "${prefix}/jdk" ]; then
e... |
55e86758b02c1a35c71bd418519b37497341d25016f568ad1935133ef2266af8 | Shell | 1,291 | 42 | #!/bin/bash
NAMES=( `cat "namelist" `)
mawk -v x=$1 '$1 >= x' uniq.seqs | cut -f 2 > totaluniqseq
#Convert reads to fasta
uniq2fasta totaluniqseq > uniq.fasta
#Perl function to split contigs by length
sed -e 's/NNNNNNNNNN/\t/g' uniq.fasta | cut -f1 > uniq.F.fasta
sed -e 's/NNNNNNNNNN/\t/g' uniq.fasta | cut -f2 >... |
ca3cb2542854a7c1c221728c3df907aee14f913469685f140918c00f953f6bac | Shell | 1,346 | 25 | #!/bin/bash
#!/bin/bash
if [[ -z "$2" ]]; then
echo "Usage is sh FB_filters.sh VCF_file Output_prefix"
exit 1
fi
IND=$(mawk '/#/' $1 | tail -1 | wc -w)
IND=$(($IND - 9))
vcffilter -f "AB > 0.28" $1 > $2
vcffilter -f "SAR > 50 & SAF < 50 | SAF > 50 & SAR < 50" -t PASS -F OL $2 > $2.fil1.vcf
vcffilter -f "PAIRED < 0.1... |
d771c575a644d04d244bcfcd225f0a93f08a890639be0faae6d0a8419eec9093 | Shell | 1,353 | 55 | #!/bin/bash
#SBATCH -t 02:00:00
#SBATCH -N 1
# Specify geneloc files
GENELOCDIR=/home/pdemange/CogNonCog/Annotations/MAGMA
GENELOC=Geneloc_duplicated_excluded.txt
# Specify Snp loc file # To Specify in function
#SNPLOCDIR= /home/pdemange/CogNonCog/Annotations/LDScores_base_files/1000G_Phase3_baselineLD_... |
d80cc842d4962b76b2249d43a3ec0942443f5e9122816bea2f5a1904f054cfb5 | Shell | 1,371 | 44 | # Install/unInstall package files in LAMMPS
# mode = 0/1/2 for uninstall/install/update
mode=$1
# arg1 = file, arg2 = file it depends on
action () {
if (test $mode = 0) then
rm -f ../$1
elif (! cmp -s $1 ../$1) then
if (test -z "$2" || test -e ../$2) then
cp $1 ..
if (test $mode = 2) then
... |
2fe5eaaf2203fe93bb6c428ac4a13b6ed3b354f7f371bbc554a4678b257cd054 | Shell | 1,449 | 36 | ##################################################
## Project: CogNonCog 2018 - Stratified LDSC
## Script purpose: Munge the sumstats to be able to use with LDSC
## Date: November 2018
## Author: Perline Demange
##################################################
## LDSC requires its input (i.e. the GWA summary... |
cba839c8641486947695cc591b215298f44747400f5b7881a5f56927f53a891e | Shell | 1,482 | 66 | #!/bin/bash
key=$1
bedFn=$2
dsArgs=()
mkdir -p ${key}
module add bedops/2.4.30-typical
ulimit -n 2048
#
# build lexicographically-ordered map list
#
cp ${key}-files_fns.txt ${key}/fns.txt
#
# map against files in map list
#
while IFS='' read -r fn || [[ -n "$fn" ]]; do
fn=${fn}
sampleKey=`echo "$fn" | awk... |
288ad0011894d3884c18a7b2497aabd767f08a879a3877986784560deb212946 | Shell | 1,499 | 41 | #!/bin/sh
#This script is intended for launch on *nix machines
#-Xmx4g indicates 4 gb of memory, adjust number up or down as needed
prefix=`dirname $(readlink -f $0 || echo $0)`
# Check whether or not to use the bundled JDK
if [ -d "${prefix}/jdk" ]; then
echo echo "Using bundled JDK."
JAVA_HOME="${prefix}/j... |
e3e510f6b12cc5ae99d0dcc891e6b6244c02b3958eaabe57fca447d11ae2a2a5 | Shell | 1,502 | 65 | #!/bin/bash
key=$1
bedFn=$2
parentDir=$3
pattern=$4
dsArgs=()
mkdir -p ${key}
module add bedops/2.4.29-typical
#
# build lexicographically-ordered map list
#
find ${parentDir} -name ${pattern} -print0 | sort -z | xargs -r0 echo | sed 's/ /\n/g' > ${key}/fns.txt
#
# map against files in map list
#
while IFS='' rea... |
d8570d3c4759c9252051308f446d3408304fa2237fcc19b89a6e989d89bff52d | Shell | 1,507 | 36 | #!/bin/bash
# https://askubuntu.com/a/1150409/37739
MON="HDMI-1" # Discover monitor name with: xrandr | grep " connected"
STEP=10 # Step Up/Down brightnes by: 5 = ".05", 10 = ".10", etc.
CurrBright=$( xrandr --verbose --current | grep ^"$MON" -A5 | tail -n1 )
CurrBright="${CurrBright##* }" # Get brightne... |
739c818a59cdea0607de380b6cf31dca26b92141a01444841c0a19194775d179 | Shell | 1,518 | 60 | # Install/unInstall package files in LAMMPS
# mode = 0/1/2 for uninstall/install/update
mode=$1
# arg1 = file, arg2 = file it depends on
action () {
if (test $mode = 0) then
rm -f ../$1
elif (! cmp -s $1 ../$1) then
if (test -z "$2" || test -e ../$2) then
cp $1 ..
if (test $mode = 2) then
... |
ea3fb0aa66aa20e679439b20764c5df8f031bb0b17eeca6c41230641a862259b | Shell | 1,519 | 65 | #!/bin/bash
key=$1
bedFn=$2
parentDir=$3
pattern=$4
dsArgs=()
mkdir -p ${key}
module add bedops/2.4.29-typical
#
# build lexicographically-ordered map list
#
find ${parentDir} -name ${pattern} -a ! -name 'UW*' -print0 | sort -z | xargs -r0 echo | sed 's/ /\n/g' > ${key}/fns.txt
#
# map against files in map list
#... |
97872845546c94cc58a24c22c8f2f3cf02c699a0d49ba46a4d13ca25960b4812 | Shell | 1,568 | 67 | #!/bin/bash
key=$1
bedFn=$2
parentDir=$3
pattern=$4
dsArgs=()
mkdir -p ${key}
module add bedops/2.4.29-typical
#
# build lexicographically-ordered map list
#
#find ${parentDir} -name ${pattern} -print0 | sort -z | xargs -r0 echo | sed 's/ /\n/g' > ${key}/fns.txt
cp ${key}-files_fns.txt ${key}/fns.txt
#
# map agai... |
171b4c7471f7ce0c944eb9b9bfd12a86844b99d7cd1ed04b77ffd7f343981126 | Shell | 1,571 | 67 | #!/bin/bash
key=$1
bedFn=$2
parentDir=$3
pattern=$4
dsArgs=()
mkdir -p ${key}
module add bedops/2.4.29-typical
#
# build lexicographically-ordered map list
#
#find ${parentDir} -name ${pattern} -print0 | sort -z | xargs -r0 echo | sed 's/ /\n/g' > ${key}/fns.txt
cp ${key}-files_fns.txt ${key}/fns.txt
#
# map agai... |
5835d8c8b3e766de90877a2a343a913c61fafeba09516ceca9598a8d150537bf | Shell | 1,709 | 31 | #!/bin/bash
#SBATCH -t 10:00:00
#SBATCH -N 1
cd "$TMPDIR"
module load python/2.7.9
{
python /home/vubiopsy/GWAS/resources/software/ldsc/ldsc.py --h2 /home/pdemange/CogNonCog/Annotations/Sumstats/Cog_with23andMe.sumstats.gz \
--ref-ld-chr /home/pdemange/CogNonCog/Annotations/LDScores_base_files/1000G_Phas... |
ce9d6547185da57339f9d0c6a875ccf80cdfe491b61f88140885eb432198279b | Shell | 1,717 | 64 | #!/bin/bash
#SBATCH -t 02:00:00
#SBATCH -N 1
# this script is used to do the MAGMA gene-set analysis
# Specify files # careful no space can be allowed before or after the = sign
SETDIR=/home/pdemange/CogNonCog/Annotations/MAGMA
SETFILE=geneset_top10expression.txt
GENERESULTSDIR=/home/pdemange/CogNonCog/A... |
45a895732ba4e69b2ac73cdb7b5f8890b083d9e3dcc7de6c13006be35247f0bc | Shell | 1,722 | 63 | #!/bin/bash
#SBATCH -t 02:00:00
#SBATCH -N 1
# this script is used to do the MAGMA gene-set analysis
# Specify files # careful no space can be allowed before or after the = sign
SETDIR=/home/pdemange/CogNonCog/Annotations/MAGMA
SETFILE=geneset_top10expression.txt
GENERESULTSDIR=/home/pdemange/CogNonCog/A... |
b90b6b1aa77e680d4cbcdc85eae3eedb2551262a6617d1a5a1dcbf8cdad430d6 | Shell | 1,723 | 29 | #!/bin/bash
#SBATCH -t 10:00:00
#SBATCH -N 1
cd "$TMPDIR"
module load python/2.7.9
{
python /home/vubiopsy/GWAS/resources/software/ldsc/ldsc.py --h2 /home/pdemange/CogNonCog/Annotations/Sumstats/NonCog_with23andMe.sumstats.gz \
--ref-ld-chr /home/pdemange/CogNonCog/Annotations/LDScores_base_files/1000G_P... |
20c765f5d4a85e02322873d2791506127ebbd4d9f860a17e24df41d068ab8964 | Shell | 1,740 | 51 | #!/bin/env bash
#This script will automatically remove sites in VCF files that do not have congruent genotypes across duplicate individuals
#It will automatically only consider genotypes that have at least 5 reads
#
if [[ -z "$2" ]]; then
echo "Usage is bash dup_sam_filter.sh VCF_file [File with duplicate sample nam... |
cc5b8ce23cd816b87cf0d41f7b0be3f30838ff59b1ef6f8ae92c68f957609925 | Shell | 1,783 | 49 | #!/bin/bash
NAME=$(echo $1 | sed -e 's/\.recode.*//g')
vcfallelicprimitives --keep-info --keep-geno $1 > $NAME.prim.vcf
vcftools --vcf $NAME.prim.vcf --remove-indels --recode --recode-INFO-all --out SNP.$NAME >/dev/null
bgzip SNP.$NAME.recode.vcf
tabix -p vcf SNP.$NAME.recode.vcf.gz
vcf-annotate --filter c=3,25 SNP... |
164e4156503e2e85250ee4de8d5a1e0633b31a01ac6ad52cbe26eda041358646 | Shell | 1,786 | 50 | function test_expected_results {
SPECIES_ID=$1
EXPECTED_RESULTS_STRING=$2
MISMATCH_THRESHOLD=$3
MINMATCH_THRESHOLD=$4
MULTIMAP_THRESHOLD=$5
if ! grep --quiet "${EXPECTED_RESULTS_STRING}" ${LOG_FILE}; then
echo "For mismatch-threshold=${MISMATCH_THRESHOLD}, minmatch-threshold=${MINMATCH_TH... |
81a82a7961c95c9695e688c0e818c2e992cd476d6a7bfa61288654789f07f718 | Shell | 1,844 | 39 | #!/bin/bash -l
# note you need to authenticate every 3 months or so..
module load treemap2
echo -e "<body><pre>\nHi!" > ~/du.sh.log
echo -e "\nBelow you can find a report of storage usage. Consider cleaning up, especially if you occupy a lot of space or generated millions of files." >> ~/du.sh.log
echo -e "You can fi... |
0e7a0081687fc61a06b59d9d9ead8ad38d3df197faebb9d5f1680e571f64c6bc | Shell | 1,902 | 72 | # Install/unInstall package files in LAMMPS
# mode = 0/1/2 for uninstall/install/update
mode=$1
# arg1 = file, arg2 = file it depends on
action () {
if (test $mode = 0) then
rm -f ../$1
elif (! cmp -s $1 ../$1) then
if (test -z "$2" || test -e ../$2) then
ln -rs $1 ..
if (test $mode = 2) then... |
8b13b9d116ff7379842b91211f22671e2f1c0aff05e0e444ec00c407aaf84e02 | Shell | 1,953 | 70 | #!/usr/bin/env bash
export LC_ALL=en_US.UTF-8
#check for vcftools version
VCFTV=$(vcftools | grep VCF | grep -oh '[0-9]*[a-z]*)$' | sed 's/[a-z)]//')
if [ "$VCFTV" -lt "10" ]; then
echo "The version of VCFtools installed in your" '$PATH' "is not optimized for dDocent."
echo "Ple... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.