Skip to content

Commit

Permalink
Merge pull request #262 from RoanKanninga/master
Browse files Browse the repository at this point in the history
added project parameter option
  • Loading branch information
Gerbenvandervries authored Sep 13, 2019
2 parents a148d0a + 432a698 commit debe226
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ Based on quality thresholds from the GATK "best practices"<sup>5</sup>, the SNPs
3. Tarasov A et al. (2015). Sambamba: Fast processing of NGS alignment formats.<br/>
4. McKenna A et al. (2010). The Genome Analysis Toolkit: a MapReduce framework for analyzing next-generation DNA sequencing data.<br/>
5. Van der Auwera GA et al. (2013). From FastQ data to high confidence variant calls: the Genome Analysis Toolkit best practices pipeline.<br/>

6 changes: 4 additions & 2 deletions templates/generate_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Usage:
$(basename $0) OPTIONS
Options:
-h Show this help.
-p projectname
-a sampleType (DNA or RNA) (default=DNA)
-g group (default=basename of ../../../ )
-f filePrefix (default=basename of this directory)
Expand All @@ -30,9 +31,9 @@ EOH
}


while getopts "t:g:w:f:r:h" opt;
while getopts "t:g:w:f:r:p:h" opt;
do
case $opt in h)showHelp;; t)tmpDirectory="${OPTARG}";; g)group="${OPTARG}";; w)workDir="${OPTARG}";; f)filePrefix="${OPTARG}";; r)runID="${OPTARG}";;
case $opt in h)showHelp;; t)tmpDirectory="${OPTARG}";; g)group="${OPTARG}";; w)workDir="${OPTARG}";; f)filePrefix="${OPTARG}";; p)project="${OPTARG}";; r)runID="${OPTARG}";;
esac
done

Expand All @@ -41,6 +42,7 @@ if [[ -z "${group:-}" ]]; then group=$(basename $(cd ../../../ && pwd )) ; fi ;
if [[ -z "${workDir:-}" ]]; then workDir="/groups/${group}/${tmpDirectory}" ; fi ; echo "workDir=${workDir}"
if [[ -z "${filePrefix:-}" ]]; then filePrefix=$(basename $(pwd )) ; fi ; echo "filePrefix=${filePrefix}"
if [[ -z "${runID:-}" ]]; then runID="run01" ; fi ; echo "runID=${runID}"
if [[ -z "${project:-}" ]]; then project="${filePrefix}" ; fi ; echo "project=${project}"

genScripts="${workDir}/generatedscripts/${filePrefix}/"
samplesheet="${genScripts}/${filePrefix}.csv" ; mac2unix "${samplesheet}"
Expand Down

0 comments on commit debe226

Please sign in to comment.