Skip to content

Commit

Permalink
Fix: Correct sequence filtering in demulplexing module
Browse files Browse the repository at this point in the history
  • Loading branch information
dileep-kishore committed Mar 2, 2023
1 parent 479c7b5 commit e44e093
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ qiime tools export \
--input-path "${demux_artifact}" \
--output-path demux_seqs

if [[ '${sample_filter}' ]]; then
if [[ "${sample_filter}" ]]; then
cd demux_seqs || exit
ls -1 | grep -v '${sample_filter}' | xargs rm -f
ls -1 | grep -Ev "(MANIFEST|metadata.yml|${sample_filter})" | xargs rm -f
mv MANIFEST MANIFEST_OLD
sed '/sample-id\|${sample_filter}/!d' MANIFEST_OLD >MANIFEST
grep -E "(sample-id|${sample_filter})" MANIFEST_OLD >MANIFEST
rm MANIFEST_OLD
fi

0 comments on commit e44e093

Please sign in to comment.