Skip to content

Commit

Permalink
reduce protocol auto-detection threshold to 70% matching barcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
suhrig committed Jan 30, 2024
1 parent 4d65b7a commit 22ed97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/local/auto_detect_protocol.nf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ process AUTO_DETECT_PROTOCOL {
# only trust the auto-detection if exactly one protocol matches
echo -e "These were the fractions of matching barcodes by protocol:\\n\$MATCHING_FRACTIONS"
MATCHING_PROTOCOLS_COUNT=\$(awk '\$2>=0.85' <<<"\$MATCHING_FRACTIONS" | wc -l)
MATCHING_PROTOCOLS_COUNT=\$(awk '\$2>=0.7' <<<"\$MATCHING_FRACTIONS" | wc -l)
if [ \$MATCHING_PROTOCOLS_COUNT -ne 1 ]; then
echo "ERROR: Found \$MATCHING_PROTOCOLS_COUNT matching protocols."
exit 1
Expand Down

0 comments on commit 22ed97b

Please sign in to comment.