quick question: in this pipeline, how exactly is ...
# rnaseq
a
quick question: in this pipeline, how exactly is the bigWig computed and what do the values represent if say I imported the bigWig into IGV. I see the nice tracks, but the unit is just
Value
. Is this the number of reads that aligned at the base pair level? having the exact command run for the BEDGRAPHTOBIGWIG step would be really nice, if anyone can share that!
t
I can't answer your question, but I can tell you where to find the command: Open the
execution_report_*.html
in a web browser, go to the table with the processes, find
BEDGRAPHTOBIGWIG
(there is search box at the top of the table that helps with that), then scroll to right until you see the
script
column and click on it to expand it -- that's the full command in there. Alternatively, if you prefer command line only, you can find one of the
BEDGRAPHTOBIGWIG
work directories in the
.nextflow.log
, go there there and look at the
.commnd.sh
.
a
Thomas, thanks so much. Somehow we never thought to save
.nextflow.log
Even more strange, the
execution_report_*.html
is completely void of data. We're doing something funky with how we run these pipelines on aws batch instances, but they're hyper-optimized so happy about that! In case anyone wants a hacky way to find the commands that were run by combing through the work directory, here's a bash script:
Copy code
BUCKET="path/to/bucket/work/run_id/"

# Scan every .command.sh in the run_id work dir and print only those that ran bedGraphToBigWig
aws s3 ls "s3://${BUCKET}" --recursive \
| awk '{print $4}' \
| grep '/\.command\.sh$' \
| while read -r KEY; do
 BODY="$(aws s3 cp "s3://mithrl-forge-production/${KEY}" -)"
 if grep -q 'bedGraphToBigWig' <<< "$BODY"; then
  echo -e "\n=== Found in: s3://${BUCKET}/${KEY} ==="
  echo "$BODY"
 fi
done
👍 1