Skip to content

Check insertion and deletion blast files#13

Open
elcortegano wants to merge 2 commits intoSAMtoBAM:masterfrom
elcortegano:elcortegano-patch-1
Open

Check insertion and deletion blast files#13
elcortegano wants to merge 2 commits intoSAMtoBAM:masterfrom
elcortegano:elcortegano-patch-1

Conversation

@elcortegano
Copy link

In many instances, no deletions or insertions are present in blast files, resulting in errors reported by cat and rm. For example:

cat: test.deletion_blast: No such file or directory
rm: cannot remove 'ref_segment.fa': No such file or directory
rm: cannot remove 'temp.blast2': No such file or directory

Now, insertion and deletion blast files are only sorted (and later removed) when they exist.

In many instances, no deletions or insertions are present in blast files, resulting in errors reported by `cat` and `rm`. Not insertion and deletion blast files are only sorted (and later removed) when they exist.
The END block of `awk` does not check whether the NR variable is NULL or not, which sometimes results in "fatal: division by zero attempted" errors. The code changes prevent this error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant