Code Monkey home page Code Monkey logo

dudes's People

Contributors

pirovc avatar rababerladuseladim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dudes's Issues

dudes revision

Due to the recent update to v0.10.0, promising results with metaproteomics data (thanks to @rababerladuseladim) and the potential to use of the core methodology from DUDes in different applications, I suggest a couple of changes and features for this repository:

  • code refactoring
    • simplification in many areas, removal of unnecessary classes and better structure
    • use of multitax to handle taxonomy. This will simplify a good part of the code and allow usage of the method with many other existing and custom taxonomies (e.g. GTDB)
    • removal of GI support for genomic data, since it is long outdated
    • properly parse acc2txid files similar to this.
    • re-evaluate the role and necessity of having a dudesdb
  • generalization of the deepest uncommon descendant (DUD) method
    • independence of input data type
    • standardize the inputs and outputs for the core method
    • create standard modules for specific data types, for example the parse_sam.py for metagenomics and parse_diamond_blast.py for metaproteomics, which could be easily extended to other types
    • possibility to input raw text data
  • infrastructure
    • increase and improve testing and CI
    • documentation

ValueError: Object arrays cannot be loaded when allow_pickle=False

Hi Vitor,

I tried to run with the sample data, and had this error:

DUDes.py -s sampledata/hiseq_accuracy_k60.sam -d sampledata/arc-bac_refseq-cg_201503.npz -o sampledata/dudes_profile_output

- - - - - - - - - - - - - - - - - - - - -
|		DUDes v0.08		|
- - - - - - - - - - - - - - - - - - - - -
Output prefix = sampledata/dudes_profile_output
SAM (format) = sampledata/hiseq_accuracy_k60.sam (nm)
Database = sampledata/arc-bac_refseq-cg_201503.npz
Threads = 1
TaxID Start/Last rank = 1/species
Max. Read Matches = 0.000000
Min. Ref. Matches = 0.001000
Bin size = 0.250000
- - - - - - - - - - - - - - - - - - - - -
Loading database file ...Traceback (most recent call last):
  File "DUDes.py", line 645, in <module>
    main()
  File "DUDes.py", line 119, in main
    refids_lookup = npzfile["refids_lookup"].item()
  File "/<path-to-python>/lib/python3.7/site-packages/numpy/lib/npyio.py", line 262, in __getitem__
    pickle_kwargs=self.pickle_kwargs)
  File "/<path-to-python>/lib/python3.7/site-packages/numpy/lib/format.py", line 692, in read_array
    raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

The numpy version I am using: python '3.7.3' numpy '1.16.3'.

Thanks,
Coax,

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.