This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for num in $(seq xxxxxxx xxxxxxx) | |
do | |
qdel $num | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while read file; | |
do | |
fileNames="$fileNames $file" | |
done < sampleList.txt # your sample list file | |
echo $fileNames |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |