mirror of
https://github.com/MillironX/sc2-sequencing.git
synced 2024-12-22 11:18:17 +00:00
Cleanup find command
This commit is contained in:
parent
c7545ae55d
commit
42d3d542b9
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ mkdir -p "$FASTQPATH"
|
||||||
# Copy the files
|
# Copy the files
|
||||||
for FASTA in ${KEEPERS[@]}; do
|
for FASTA in ${KEEPERS[@]}; do
|
||||||
# Check to see if there are any files here
|
# Check to see if there are any files here
|
||||||
if [[ -n $(find $FOLDERPATH -type f \( -name "*.fast5" \) -path "*_pass*barcode$FASTA*") ]]; then
|
if [[ -n $(find $FOLDERPATH -type f -name "*.fast5" -path "*_pass*barcode$FASTA*") ]]; then
|
||||||
# Find the uid that the GridION gives to this sample
|
# Find the uid that the GridION gives to this sample
|
||||||
ONTID=$(find $FOLDERPATH -name "*.fast5" -path "*_pass*barcode*$FASTA*" | head -n 1 | xargs basename | awk '{split($0,a,"_"); print a[4]}')
|
ONTID=$(find $FOLDERPATH -name "*.fast5" -path "*_pass*barcode*$FASTA*" | head -n 1 | xargs basename | awk '{split($0,a,"_"); print a[4]}')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue