Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

counter scripts using blast format 6 with salltitles #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bartns
Copy link

@bartns bartns commented Jun 16, 2021

From issue: Header parsing using blast format 6 with salltitles

Diamond can add the fasta header in the results table using format 6 with salltitles. Function and organism counts can therefor be obtained using the diamond output instead of parsing the reference database fasta file. This greatly improves speed and storage space needed.

We run diamond like this:
diamond blastx --query input.fastq.gz --salltitles --block-size 12 --db ncbi-bact-refseq_28-01-2020_proteins.dmnd --index-chunks 1 --matrix BLOSUM62 --max-target-seqs 1 --outfmt 100 --out output_refseq --threads 20
convert to tsv:
diamond view --outfmt 6 qseqid sseqid pident length mismatch gapopen qstart qend sstart send evalue bitscore stitle --out output.daa.tsv --daa output_refseq.daa

Another important change to the refseq counter is that organisms with just "sp." are added to other unknown species with the same genus

Also, "MULTISPECIES" entries are not counted in the error counter anymore.

Notes.
This pull request only contains changes to the "diamond counter" scripts. So this will break the pipeline scripts.
We have used are our own preprocessing pipelines up to diamond so only these needed modifications for our usage.

Another thing to do is to merge the first step of the line counting and the "database" part.

We did not compare the output results with the original version!

Hope this works/helps for you! Credits can go to @jjkoehorst and me.

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