Skip to content

Commit

Permalink
Added an install.sh script and included virtualenv commands in scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
tflati committed Jan 22, 2019
1 parent 84d22f6 commit 162e9b6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
9 changes: 9 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

virtualenv ENV

source ENV/bin/activate

pip install -r requirements.txt

deactivate
4 changes: 2 additions & 2 deletions parallel_test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Parallel test #
#source ENV/bin/activate
source ENV/bin/activate

SOURCE_BAM_FILE="test/SRR2135332.chr21.bam"
REFERENCE="test/chr21.fa"
Expand All @@ -17,4 +17,4 @@ COVERAGE_DIR="test_results/coverage/"
mpirun -np $NUM_CORES src/cineca/parallel_reditools.py -f $SOURCE_BAM_FILE -o $OUTPUT_FILE -r $REFERENCE -t $TEMP_DIR -Z $SIZE_FILE -G $COVERAGE_FILE -D $COVERAGE_DIR
./merge.sh $TEMP_DIR $OUTPUT_FILE $NUM_CORES

#deactivate
deactivate
2 changes: 2 additions & 0 deletions parallel_test_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ echo "[STATS] [MERGE] START="$t1_human" ["$t1"] END="$t2_human" ["$t2"] ELAPSED=

echo "END:"`date`
echo "OK" > $TEMP_DIR/status.txt

deactivate
4 changes: 4 additions & 0 deletions serial_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash

source ENV/bin/activate

# Serial test #
python src/cineca/reditools.py -f test/SRR2135332.chr21.bam -r test/chr21.fa -o serial_table.txt

deactivate

0 comments on commit 162e9b6

Please sign in to comment.