Skip to content

Commit

Permalink
Add a script for synchronizing the MultiQC reports
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed May 9, 2024
1 parent 09503d1 commit 31f8199
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions scripts/sync-multiqc-reports
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

set -e

PIPELINE_OUTPUT_DIR=/cosmos/data/pipeline-output/rnaseq
GEMMA_DATA_DIR=/space/gemmaData

human_reference_id=$(grep 'human_reference_id=' luigi.cfg | sed 's/human_reference_id=//')
mouse_reference_id=$(grep 'mouse_reference_id=' luigi.cfg | sed 's/mouse_reference_id=//')
rat_reference_id=$(grep 'rat_reference_id=' luigi.cfg | sed 's/rat_reference_id=//')

echo $human_reference_id $mouse_reference_id $rat_reference_id

echo "Copying MultiQC reports for the following references: $human_reference_id, $mouse_reference_id, $rat_reference_id"

for f in $PIPELINE_OUTPUT_DIR/report/{$human_reference_id,$mouse_reference_id,$rat_reference_id}/*; do
experiment_id=$(basename $f)
destdir=$GEMMA_DATA_DIR/metadata/$experiment_id/MultiQCReports
echo "Copying MultiQC report for $experiment_id from $f to $destdir..."
mkdir -p "$destdir"
rsync -a "$f/" "$destdir/"
done

0 comments on commit 31f8199

Please sign in to comment.