Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added HISAT2 and HTSeq as possible option for aligner and counter tool
- Modified job submission and configuration files for analysis step to allow user to specify the aligner and counter used in analysis - Modified structure of aligner index and reference folders into one single genome folder with multiple sub-folders for indexes and reference - Fixed a bug with single-ended file handling in pre-processing streaming script - Fixed emr job submission command to deal with complex extra arguments for aligner and counter
- Loading branch information
Showing
11 changed files
with
236 additions
and
77 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,38 +1,23 @@ | ||
#!/bin/bash | ||
# copies reference files from S3 & unzips | ||
# input args: | ||
# $1 - AWS S3 URI for genome reference location | ||
# $2 - AWS S3 URI for STAR reference location | ||
# $1 - AWS S3 URI for location containing genome reference, star index and hisat index | ||
|
||
# want to terminate on error | ||
set -e | ||
set -o pipefail | ||
|
||
function unzip_files() { | ||
# unzip any .gz files in current directory or any subdirectories | ||
# determine if there are any .gz files; note that without this test, the xargs command would fail with a null input | ||
zip_files=$( find -L . -name "*.gz" -print0 ) | ||
if [ "$zip_files" != "" ] ; then | ||
# unzip all the .gz files using as many processors as possible | ||
find -L . -name "*.gz" -print0 | xargs -P0 -0 gunzip | ||
fi | ||
} | ||
|
||
ref_dir=/mnt/ref | ||
genome_dir=genome_ref | ||
star_dir=star_ref | ||
|
||
mkdir $ref_dir | ||
pushd $ref_dir > /dev/null | ||
aws s3 sync $1 $ref_dir | ||
|
||
# Genome Ref | ||
aws s3 sync $1 $genome_dir | ||
pushd $ref_dir/$genome_dir > /dev/null | ||
unzip_files | ||
popd > /dev/null | ||
pushd $ref_dir | ||
# unzip any .gz files in current directory or any subdirectories | ||
# determine if there are any .gz files; note that without this test, the xargs command would fail with a null input | ||
zip_files=$( find -L . -name "*.gz" -print0 ) | ||
if [ "$zip_files" != "" ] ; then | ||
# unzip all the .gz files using as many processors as possible | ||
find -L . -name "*.gz" -print0 | xargs -0 -n1 -P0 gunzip | ||
fi | ||
popd | ||
|
||
# STAR Ref | ||
aws s3 sync $2 $star_dir | ||
pushd $ref_dir/$star_dir > /dev/null | ||
unzip_files | ||
popd > /dev/null |
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
Oops, something went wrong.