Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
demux changes to support novaseq (#868)
* reduce demux memory footprint to 80% of system max * remove force_gc=false default from viral-ngs remove force_gc=false default from viral-ngs, as force_gc=true is now the default in Picard: https://broadinstitute.github.io/picard/command-line-overview.html#IlluminaBasecallsToSam * maxReadsInRamPerTile, maxRecordsInRam, and forceGC in demux WDL workflow * memory to 85% * autoscale some novoseq demux params, allowing override by passed-in param values * tune -Xmx memory limit for Novaseq demux * max_mismatches 0 -> 1; minimum_base_quality 25 -> 10 max_mismatches 0 -> 1; minimum_base_quality 25 -> 10
- Loading branch information
Showing
4 changed files
with
87 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
set -e -o pipefail | ||
|
||
if [ $# -eq 0 ]; then | ||
echo "Usage: $(basename $0) path/to/RunInfo.xml" | ||
exit 0 | ||
fi | ||
|
||
if [ ! -e "$1" ]; then | ||
echo "The specified file does not exist: $1" | ||
exit 1 | ||
fi | ||
|
||
# Parse the lane count & run ID from RunInfo.xml file | ||
lane_count=$(xmllint --xpath "string(//Run/FlowcellLayout/@LaneCount)" $1) | ||
if [ -z "$lane_count" ]; then | ||
echo "Could not parse LaneCount from RunInfo.xml. Please check RunInfo.xml is properly formatted" | ||
fi | ||
|
||
surface_count=$(xmllint --xpath "string(//Run/FlowcellLayout/@SurfaceCount)" $1) | ||
if [ -z "$surface_count" ]; then | ||
echo "Could not parse SurfaceCount from RunInfo.xml. Please check RunInfo.xml is properly formatted" | ||
fi | ||
|
||
swath_count=$(xmllint --xpath "string(//Run/FlowcellLayout/@SwathCount)" $1) | ||
if [ -z "$swath_count" ]; then | ||
echo "Could not parse SwathCount from RunInfo.xml. Please check RunInfo.xml is properly formatted" | ||
fi | ||
|
||
tile_count=$(xmllint --xpath "string(//Run/FlowcellLayout/@TileCount)" $1) | ||
if [ -z "$tile_count" ]; then | ||
echo "Could not parse TileCount from RunInfo.xml. Please check RunInfo.xml is properly formatted" | ||
fi | ||
|
||
# total data size more roughly tracks total tile count | ||
total_tile_count=$((lane_count*surface_count*swath_count*tile_count)) | ||
|
||
echo $total_tile_count |
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