Skip to content
Open
Changes from all 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
5 changes: 4 additions & 1 deletion bin/metawrap-modules/classify_bins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,12 @@ if [[ $? -ne 0 ]]; then error "Failed to remove extra column. Exiting..."; fi


comm "making mapping file"
cat ${out}/megablast_out.pruned.tab | cut -f5,6 > ${out}/mapping.tax
cat ${out}/megablast_out.pruned.tab | cut -f5,6 > ${out}/raw.mapping.tax
if [[ $? -ne 0 ]]; then error "Failed to make mapping file. Exiting..."; fi

comm "format mapping.tax file"
taxknife -f 2 --mode traverse -r species genus family order class phylum superkingdom < ${out}/raw.mapping.tax > ${out}/mapping.tax
if [[ $? -ne 0 ]]; then error "Failed to format mapping file. Exiting..."; fi


########################################################################################################
Expand Down