Skip to content

Commit

Permalink
Merge pull request #2 from soedinglab/annotate_w_cat
Browse files Browse the repository at this point in the history
Replaced two instances of join with cat in annotate.sh
  • Loading branch information
vragh authored Jul 31, 2024
2 parents 70b2a60 + fd694e4 commit e15e316
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions data/annotate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,10 @@ if notExists "${TMP_PATH}/tmp_join.tsv"; then
LC_ALL=C sort -s -k1b,1 "${TMP_PATH}/seq_searchDB.tsv" | awk -F '\t' -v OFS='\t' '{ $(NF+1) = "seq-seq search"; print}' | awk -F '\t' -v OFS='\t' '{ $(NF+1) = "SwissProt"; print}'>> "${TMP_PATH}/seq_search_filt.tsv"
rm -f "${TMP_PATH}/seq_searchDB.tsv"

join -j 1 -a1 -a2 -t ' ' "${TMP_PATH}/prof1_search_annot.tsv" "${TMP_PATH}/prof2_search_annot.tsv" >> "${TMP_PATH}/tmp_join.tsv"
join -j 1 -a1 -a2 -t ' ' "${TMP_PATH}/tmp_join.tsv" "${TMP_PATH}/seq_search_filt.tsv" >> "${TMP_PATH}/restmp"
#join -j 1 -a1 -a2 -t ' ' "${TMP_PATH}/prof1_search_annot.tsv" "${TMP_PATH}/prof2_search_annot.tsv" >> "${TMP_PATH}/tmp_join.tsv"
#join -j 1 -a1 -a2 -t ' ' "${TMP_PATH}/tmp_join.tsv" "${TMP_PATH}/seq_search_filt.tsv" >> "${TMP_PATH}/restmp"
cat "${TMP_PATH}/prof1_search_annot.tsv" "${TMP_PATH}/prof2_search_annot.tsv" >> "${TMP_PATH}/tmp_join.tsv"
cat "${TMP_PATH}/tmp_join.tsv" "${TMP_PATH}/seq_search_filt.tsv" >> "${TMP_PATH}/restmp"

rm -f "${TMP_PATH}/tmp_join.tsv"
fi
Expand Down

0 comments on commit e15e316

Please sign in to comment.