Skip to content

Instantly share code, notes, and snippets.

@bioinfocore
bioinfocore / atacSeqPipeline.sh
Last active August 6, 2020 14:23
atacSeqPipeline
#! /bin/bash -l
#SBATCH -p XXXXX # cluster-specific enter your institution partition
#SBATCH --nodes=1
#SBATCH --ntasks=16
#SBATCH --mem=60G # memory requested, units available: K,M,G,T
#SBATCH --job-name="Z"
#SBATCH --output=atacSeqPipline_Z.log
#SBATCH --mail-user=XXXX@XXXX # if you want an email notification after job finish
#SBATCH --mail-type=END
@bioinfocore
bioinfocore / delJobs.sh
Last active April 16, 2020 21:17
delJobs.sh
#!/bin/sh
for num in $(seq xxxxxxx xxxxxxx)
do
qdel $num
done
#! /bin/bash -l
#SBATCH -p XXXXX # cluster-specific enter your institution partition
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=100M # memory requested, units available: K,M,G,T, change as needed
#SBATCH --job-name="Z"
#SBATCH --output=yourjob_Z.log # It's always good to have a log files for each of your jobs
#SBATCH --mail-user=XXXX@XXXX # if you want an email notification after job finish
#SBATCH --mail-type=END
#!/bin/sh
while read file;
do
fileNames="$fileNames $file"
done < sampleList.txt # your sample list file
echo $fileNames
#!/bin/sh
## Usage ./splitBed.sh input.bed
input=$1
for chr in `cut -f 1 $input | sort | uniq`;
do
echo $chr
grep -w $chr $input > $chr.bed