Skip to content

Handling for the scenario where blastn -query returns no results#45

Open
allaway wants to merge 1 commit intoTrinityCTAT:masterfrom
allaway:patch-1
Open

Handling for the scenario where blastn -query returns no results#45
allaway wants to merge 1 commit intoTrinityCTAT:masterfrom
allaway:patch-1

Conversation

@allaway
Copy link

@allaway allaway commented Aug 19, 2022

Hi there,

Yesterday I ran into a situation where prep_genome_lib/ctat-vif-lib-integration.py errored on line 79:
df = pd.read_csv(blastn_outfile, sep="\t", header=None, usecols=[1,2,8,9]) when the previous blastn step outputs a file with no contents.

This checks for the number of lines in the blastn output file and bypasses the processing instead creating a dummy file just with column headers for use downstream.

I am a bit of a python novice so please let me know I've done something silly!

Handling for the scenario where `blastn -query` returns no results.
@brianjohnhaas
Copy link
Collaborator

brianjohnhaas commented Aug 19, 2022 via email

@brianjohnhaas
Copy link
Collaborator

brianjohnhaas commented Aug 19, 2022 via email

@allaway
Copy link
Author

allaway commented Aug 19, 2022

oh, interesting. Thanks for pointing this out. Leave the PR in, but I
might handle it differently when I put out a future release.
Sounds good, I figure there is probably a better way to handle this. :)

Also, just in case, please be aware that we provide a virus database
collection to use with ctat-vif, but go ahead and use it on your own set
too if that's of interest.

Thanks! I did see that.

I am revisiting a 2021 summer intern's project- IIRC (and I certainly might be wrong about this) - the collection of viruses provided was only HPV at that time or maybe HPV plus some other viruses?

I believe she retrieved all of the available human viral sequences from NCBI and used that - so I am trying to use that for consistencies sake, but I'll check out the virus fasta you have provided as well.

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.

2 participants