Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated 03-amrfinderplus lablog (characterization template) #407

Merged
merged 4 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- User added to sftp_user.json [#404] (https://github.com/BU-ISCIII/buisciii-tools/pull/404).
- Fix archived path [#405](https://github.com/BU-ISCIII/buisciii-tools/pull/405)
- Updated characterization/03-amrfinderplus lablog with summary generator [#406](https://github.com/BU-ISCIII/buisciii-tools/pull/406)

### Modules

Expand Down
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")
Aberdur marked this conversation as resolved.
Show resolved Hide resolved
[ "$header_added" ] || { head -n 1 "$file"; header_added=true; }
tail -n +2 "$file"
done
} > "$output_file"
EOF
Loading