This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from moka-guys/development
Add script to report number of fastqs in runfolder
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 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
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,15 @@ | ||
#!/bin/bash | ||
|
||
# Commands to help with runfolder managemenet (Nana) | ||
findfastqs(){ | ||
input_directory=$1 | ||
# Find all fastqs in the input directory. | ||
# Grep -v filters out undetermined fastqs from this list, which are not typically uploaded to DNAnexus | ||
numfqs=$(find $input_directory -iname "*.fastq.gz" | grep -v "Undetermined" | wc -l); | ||
# Count the number of undetermined fastqs in input directory | ||
undetermined=$(find $1 -iname "Undetermined*.fastq.gz" | wc -l); | ||
total=$((numfqs + undetermined)) | ||
echo "$input_directory has $numfqs demultiplexed fastq files with $undetermined undetermined. Total: $total"; | ||
} | ||
|
||
findfastqs $1 |