Skip to content

Commit

Permalink
Updated characterization/03-amrfinderplus lablog
Browse files Browse the repository at this point in the history
  • Loading branch information
Aberdur committed Jan 17, 2025
1 parent f8db58f commit 2e94bd3
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@ select bacteria in "${possible_organisms[@]}"; do
echo -e "\n\033[0;31mInvalid input.\033[0m"
fi
done

cat << "EOF" > _02_amrfinder_summary.sh
#!/bin/bash
output_file="amrfinder_summary.tsv"
{
for file in *_out.tsv; do
sample_name=$(basename "$file" "_out.tsv")
[ "$header_added" ] || { head -n 1 "$file"; header_added=true; }
tail -n +2 "$file"
done
} > "$output_file"
EOF

0 comments on commit 2e94bd3

Please sign in to comment.