-
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
6 changed files
with
40 additions
and
43 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
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
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
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
#!/bin/bash | ||
|
||
echo '- Aller à la racine du matériel ...' | ||
echo '- Going to the root of the material ...' | ||
cd $(dirname $0)/.. | ||
CIP201=$PWD | ||
|
||
echo '- Importer les données dans $SCRATCH ...' | ||
mkdir -p $SCRATCH/donnees | ||
rsync -a donnees/ $SCRATCH/donnees/ | ||
echo '- Copying the data to $SCRATCH ...' | ||
mkdir -p $SCRATCH/data | ||
rsync -a data/ $SCRATCH/data/ | ||
cd $SCRATCH | ||
|
||
echo '- Soumettre la première tâche ...' | ||
TACHE1=$(sbatch --parsable $CIP201/scripts/blastn-gen-seq.sh) | ||
echo ' - Numéro de tâche initiale :' $TACHE1 | ||
echo '- Submitting the first job ...' | ||
JOB1=$(sbatch --parsable $CIP201/scripts/blastn-gen-seq.sh) | ||
echo ' - First job ID:' $JOB1 | ||
|
||
echo '- Soumettre la tâche dépendante ...' | ||
sbatch --dependency=afterok:$TACHE1 $CIP201/scripts/blastn-parallel.sh | ||
echo '- Submitting the second job that depends on the first one ...' | ||
sbatch --dependency=afterok:$JOB1 $CIP201/scripts/blastn-parallel.sh | ||
squeue -u $USER |
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,23 @@ | ||
#!/bin/bash | ||
|
||
RESULTS=$SCRATCH/data/res_prll | ||
MY_PROJECT=$(ls -d $HOME/projects/def-*/$USER) | ||
FINAL_TSV=$MY_PROJECT/results.tsv | ||
|
||
cd $RESULTS | ||
|
||
echo -e 'unknown\tspecies\tpercentage' > $FINAL_TSV | ||
|
||
for filename in $(ls); do | ||
unknown=$(echo $filename | cut -d_ -f2) | ||
species=$(echo $filename | cut -d_ -f3) | ||
echo -en "$unknown\t$species\t" | ||
|
||
grep Identities $filename | awk '{print $3}' | tr '/' ' ' | awk ' | ||
BEGIN {m=0; b=0;} | ||
{m+=$1; b+=$2;} | ||
END {b++; percent=100.0*m/b; print percent"%"}' | ||
done >> $FINAL_TSV | ||
|
||
echo $FINAL_TSV | ||
cat $FINAL_TSV |
This file was deleted.
Oops, something went wrong.