-
Notifications
You must be signed in to change notification settings - Fork 17
kraken2? #10
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
Comments
Hi Rick, thanks for the question! From what I've read in the new manual, it should work with the v2 report output. However, I haven't had a chance to build a new database and run any samples, so I can't say for sure. If you have a few files you've generated that you'd like to share, I would be happy to do some testing. |
Hello Shareef, YES! YES! Qiime has been unable to resolve this. email me - raw937@gmail.com I can send you the data to play with. Cheers and many thanks |
Hi! I'm running kraken 2 to do the taxonomic classification of some microbiome data (assembly of PE reads) and I'm using the greengages databased. I want to get an OTU table in the biom format but I when I run kraken-biom output_kraken_report.txt I get the error AttributeError: 'NoneType' object has no attribute 'strip' So I don't know if there is a problem with the lines in kraken2 or the kraken-biom is not compatible with kraken2 Have you tried your data yet? Camila |
Hi Camila, I have not yet created a kraken2 database for myself yet, so I don't have any example files to test it with. But I would be happy to take a look at the file you're having problems with if you can share it. Shareef |
Hi, all. I already tried to use kraken-biom on my kraken2-report-style files, and it worked. ################################################################################ I tried to convert a 'non-indented' file with k-biom script. Is it the same that you get?
MaryoHg. |
Hi MaryoHg, The counts recorded in the biom table are counts assigned to a particular taxonomy ID (column 3 in the report file), with one exception. When assigning reads for the lowest taxonomic level (species by default) it uses the number of reads assigned to that taxonomic level and those below (column 2 in the report file). Shareef |
Thank you, @smdabdoub. Have you ever crossed with Bracken? Just saying. With regards, MaryoHg. |
Testimonial--it works great with kraken2 output :D |
For me, it works with Kraken2 output, but I cannot retrieve taxonomic information (only TaxID). Does somebody know how to solve it? |
How do you mean you can not retrieve taxonomic information ? The program produces an biom file. In the "metadata" from every TaxID should be info about the taxonomy like a name per taxonomic level. You can check if this information is correct by importing the biom table in python and checking : from biom import load_table
biom_table = load_table("table.biom")
biom_table.metadata_to_dataframe(axis='observation') It would also be useful if you can provide a kreport form kraken2. I only have access to krakenuniq reports and no access to a cluster for kraken2 at the moment. |
I mean I obtain the biom file ( I convert to csv to visualize) and I only observe the TaxID column and each sample column, but no more. |
Okay, you can look at the manual for biom convertion. When you use
I hope this is helpfull. Otherwise if you can wait a few weeks, I'm working on a program for visualizing and testing of biom tables. Maybe this provides the information you need in the visualizations. |
Thank you!! I completely forgot the --header-key option! Thanks! |
I'm having trouble with read numbers in regards to bracken reports, they seem to be different compared to the original report? For example, checking taxa 817 in the report states 292478 taxa read counts, whereas in the converted biom file imported via phyloseq into R, the taxa 817 reads 827894 taxa read counts... Any ideas what could be going wrong? |
@kyoreth Do you have an example file I could take a look at? I haven't actually tested kraken-biom with Bracken output. Others have said it works, but it would be very helpful if you could share an example so I could make any changes to the program if needed. |
@smdabdoub Sorry about my earlier comment, and thanks for the reply! After some more internal testing kraken-biom is working fine with Bracken reports. |
Hi @casperp, where are you developing your visualization tool? Do you have a repo to look at? |
Hi, I have two questions:
Traceback (most recent call last): @kyoreth Thanks. Regards, |
have you figured out how to do this as of yet? |
I didn't merge the kraken2 outputs (I changed the k2 outputs for the Bracken's one; those with re-estimated values) before using My command, AFIR (Remember):
Sorry for the late reply @SooChing. I hope you're doing just fine and made through that error. Mar. |
It might be of interest to folks here, we recently published TAXPASTA, a tool that can convert many different profiles into various standardized tabular formats. Among them the BIOM format. |
Does it work with kraken2 outputs?
Cheers and many thanks
Rick
The text was updated successfully, but these errors were encountered: