GithubHelp home page GithubHelp logo

Cannot import biom file in R about american-gut HOT 7 CLOSED

arcys avatar arcys commented on July 20, 2024
Cannot import biom file in R

from american-gut.

Comments (7)

wasade avatar wasade commented on July 20, 2024

These BIOM tables conform to BIOM Format 2.1 spec. It looks like there is a
discussion on the phyloseq tracker about updated support, see here:

joey711/phyloseq#443

I am new to biome file and try to download the biom here for testing. I
have click and save the raw file into my hardisk and tried to open it in R
using phyloseq and biom package but it returns :

"Error in fromJSON(content, handler, default.size, depth, allowComments, :
invalid JSON input"

I have copied and paste an example url (
https://github.com/biocore/American-Gut/blob/master/data/HMP/HMPv35_100nt.biom)
to some jason validator on web but it return a error.

Would you instruct on some materials that I can start with working biom
files from here? Thank you so much!

Regards,
Carol


Reply to this email directly or view it on GitHub
#145.

from american-gut.

ElDeveloper avatar ElDeveloper commented on July 20, 2024

As suggested in that thread, the best alternative at the moment would be
to convert the tables to JSON-formatted files.

On (Apr-11-15|14:31), Daniel McDonald wrote:

These BIOM tables conform to BIOM Format 2.1 spec. It looks like there is a
discussion on the phyloseq tracker about updated support, see here:

joey711/phyloseq#443

I am new to biome file and try to download the biom here for testing. I
have click and save the raw file into my hardisk and tried to open it in R
using phyloseq and biom package but it returns :

"Error in fromJSON(content, handler, default.size, depth, allowComments, :
invalid JSON input"

I have copied and paste an example url (
https://github.com/biocore/American-Gut/blob/master/data/HMP/HMPv35_100nt.biom)
to some jason validator on web but it return a error.

Would you instruct on some materials that I can start with working biom
files from here? Thank you so much!

Regards,
Carol


Reply to this email directly or view it on GitHub
#145.


Reply to this email directly or view it on GitHub:
#145 (comment)

from american-gut.

arcys avatar arcys commented on July 20, 2024

Thank you very much! It seems works!

However, I've tried to convert the biom file downloaded to the txt format and it shows the following:

biom convert -i HMPv35_100ntj.biom -o HMPv35_100nt_tab.txt --table-type "otu table"
Traceback (most recent call last):
File "/usr/bin/pyqi", line 184, in
optparse_main(cmd_obj, argv[1:])
File "/usr/lib/python2.7/site-packages/pyqi/core/interfaces/optparse/init.py", line 275, in optparse_main
result = optparse_cmd(local_argv[1:])
File "/usr/lib/python2.7/site-packages/pyqi/core/interface.py", line 39, in call
cmd_result = self.CmdInstance(**cmd_input)
File "/usr/lib/python2.7/site-packages/pyqi/core/command.py", line 137, in call
result = self.run(**kwargs)
File "/usr/lib/python2.7/site-packages/biom/commands/table_converter.py", line 219, in run
raise CommandError(convert_error_msg)
pyqi.core.exception.CommandError: Input does not look like a classic table. Did you forget to specify that a classic table file should be created from a BIOM table file?

It seems that the BIOM table file is not a classic one, how can I solve this? Thanks a lot!

from american-gut.

wasade avatar wasade commented on July 20, 2024

Are you using biom v 1.3.1 for the conversion? If so, then you will not be able to convert a biom 2.x file. For instance, I was able to run the following just now:

$ biom convert --version
Version: biom convert 2.1.3-dev
$ biom convert -i AG.biom -o AG.biom1x --to-json --table-type='OTU table'

I'd be happy to host 1.x formatted tables on ftp.microbio.me but not within the Github repository as it is already hosting more data than it really ought to be.

from american-gut.

wasade avatar wasade commented on July 20, 2024

@arcys, is this still an issue or can this be closed?

from american-gut.

arcys avatar arcys commented on July 20, 2024

It is done, thx!

On Fri, Oct 23, 2015 at 1:17 AM, Daniel McDonald [email protected]
wrote:

@arcys https://github.com/arcys, is this still an issue or can this be
closed?


Reply to this email directly or view it on GitHub
#145 (comment)
.

from american-gut.

wasade avatar wasade commented on July 20, 2024

Thanks!

from american-gut.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.