-
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.
New option to build bismark index. New UPPMAX test script. Docker tes…
…ts with and without bismark index.
- Loading branch information
Showing
5 changed files
with
122 additions
and
40 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
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,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
script_path="../bismark.nf" | ||
if [ -z $1] | ||
then | ||
echo "No argument given, going to try to run ../main.nf" | ||
else | ||
script_path=$1 | ||
fi | ||
|
||
data_path=$SNIC_NOBACKUP | ||
if [ -d "./test_data" ] | ||
then | ||
data_path="./test_data" | ||
echo "Found data directory in current working directory, using ./test_data/" | ||
fi | ||
|
||
curl --version >/dev/null 2>&1 || { echo >&2 "I require curl, but it's not installed. Aborting."; exit 1; } | ||
tar --version >/dev/null 2>&1 || { echo >&2 "I require tar, but it's not installed. Aborting."; exit 1; } | ||
nextflow -v >/dev/null 2>&1 || { echo >&2 "I require nextflow, but it's not installed. If you hava Java, run 'curl -fsSL get.nextflow.io | bash'. If not, install Java."; exit 1; } | ||
|
||
data_dir=${data_path}/ngi-bisulfite_test_set | ||
if [ -d $data_dir ] | ||
then | ||
echo "Found existing test set, using $data_dir" | ||
else | ||
echo "Downloading test set..." | ||
curl https://export.uppmax.uu.se/b2013064/test-data/ngi-bisulfite_test_set.tar.bz2 > ${data_path}/ngi-bisulfite_test_set.tar.bz2 | ||
echo "Unpacking test set..." | ||
tar xvjf ${data_path}/ngi-bisulfite_test_set.tar.bz2 -C ${data_path} | ||
echo "Done" | ||
fi | ||
|
||
run_name="Test RNA Run: "$(date +%s) | ||
|
||
cmd="nextflow run $script_path -resume -name \"$run_name\" -profile devel --bismark_index ${data_dir}/references/BismarkIndex/ --singleEnd --reads \"${data_dir}/*.fastq.gz\"" | ||
echo "Starting nextflow... Command:" | ||
echo $cmd | ||
echo "-----" | ||
eval $cmd | ||
|