Skip to content

Commit

Permalink
add more logging at start
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Jul 21, 2020
1 parent 8a09fb6 commit 988d9ed
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,23 @@ outdir = "$workflow.launchDir/${params.outdir}"
sra_fastq_dump_path = "$workflow.launchDir/"

// -------------------------------------------------------------------------- //
// Channel Catalogue //
// Workflow Summary Before Pipeline //
// -------------------------------------------------------------------------- //
log.info"""
User Name: ${workflow.userName}
Home Directory: ${workflow.homeDir}
Project Directory: ${workflow.projectDir}
Launch Directory: ${workflow.launchDir}
Output Directory: ${outdir}
Config Files: ${workflow.configFiles}
Run Name: ${workflow.runName}
Session ID: ${workflow.sessionId}
Profile: ${workflow.profile}
Max CPUs: ${params.max_cpus}
Max Memory: ${params.max_memory}
Max Time: ${params.max_time}
----------
""".stripIndent()

// -------------------------------------------------------------------------- //
// NCBImeta Entry Point //
Expand Down Expand Up @@ -390,13 +405,13 @@ process sra_download{
mkdir -p ~/.ncbi/
if [[ -f ~/.ncbi/user-settings.mkfg ]]; then
if [[ -z `grep "/repository/user/main/public/root" ~/.ncbi/user-settings.mkfg` ]]; then
echo '/repository/user/main/public/root = "${params.sra_fastq_dump_path}"' >> $HOME/.ncbi/user-settings.mkfg
echo '/repository/user/main/public/root = "${sra_fastq_dump_path}"' >> $HOME/.ncbi/user-settings.mkfg
fi;
if [[ -z `grep "/http/timeout/read" ~/.ncbi/user-settings.mkfg` ]]; then
echo '/http/timeout/read = "10000"' >> $HOME/.ncbi/user-settings.mkfg
fi;
else
echo '/repository/user/main/public/root = "${params.sra_fastq_dump_path}"' > $HOME/.ncbi/user-settings.mkfg
echo '/repository/user/main/public/root = "${sra_fastq_dump_path}"' > $HOME/.ncbi/user-settings.mkfg
fi
# Create organization directories
Expand Down

0 comments on commit 988d9ed

Please sign in to comment.