-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#PBS -l walltime=72:00:00 | ||
#PBS -l select=1:ncpus=24:mem=96gb | ||
#PBS -J 1-3 | ||
module load anaconda3/personal | ||
source activate EnformerCelltyping | ||
cd $PBS_O_WORKDIR | ||
|
||
#read line from txt file | ||
run=$(head -$PBS_ARRAY_INDEX pbs/parallel.txt | tail -1) | ||
#split line into two variables by '-' | ||
IFS=- read var1_i var2_i <<< $run | ||
|
||
#echo them just so you can see the values in the output | ||
echo $var1_i | ||
echo $var2_i | ||
|
||
#pass the variables as input to a python script | ||
python ./bin/script.py -i "$var1_i" -j "$var2_i" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#PBS -l walltime=72:00:00 | ||
#PBS -l select=1:ncpus=24:mem=96gb | ||
module load anaconda3/personal | ||
source activate EnformerCelltyping | ||
cd $PBS_O_WORKDIR | ||
|
||
python ./bin/script.py |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#PBS -l walltime=72:00:00 | ||
#PBS -l select=1:ncpus=4:mem=24gb:ngpus=1:gpu_type=RTX6000 | ||
#PBS -J 1-3 | ||
module load anaconda3/personal | ||
source activate EnformerCelltyping | ||
cd $PBS_O_WORKDIR | ||
|
||
#read line from txt file | ||
run=$(head -$PBS_ARRAY_INDEX pbs/parallel.txt | tail -1) | ||
#split line into two variables by '-' | ||
IFS=- read var1_i var2_i <<< $run | ||
|
||
#echo them just so you can see the values in the output | ||
echo $var1_i | ||
echo $var2_i | ||
|
||
#pass the variables as input to a python script | ||
python ./bin/gpu_script.py -i "$var1_i" -j "$var2_i" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#PBS -l walltime=72:00:00 | ||
#PBS -l select=1:ncpus=4:mem=24gb:ngpus=1:gpu_type=RTX6000 | ||
module load anaconda3/personal | ||
source activate EnformerCelltyping | ||
cd $PBS_O_WORKDIR | ||
|
||
python ./bin/gpu_script.py |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
a - i | ||
a - j | ||
b - k |