Arcadia-Science / prehgt

A pipeline for lightweight screening of Eukaryotic genomes and transcriptomes for recent HGT
MIT License
12 stars 6 forks source link

Exit gracefully from subkingdom HGT prediction when there are not candidate transfer events #51

Closed taylorreiter closed 1 year ago

taylorreiter commented 1 year ago

This writes two empty files and exits when there are not results. This avoids subsequent functions from failing that require data to be in the data frame.

all of the changes tobin/blastp_to_hgt_candidates_subkingdom.R are from spacing changes (increasing indentation) except lines 192-218 and line 333, which introduces an if/else statement that first checks that there are results before proceeding with subsequent analysis and reformatting.

This is now the last PR before release i think!