Giter Club home page Giter Club logo

Comments (6)

jairideout avatar jairideout commented on August 10, 2024 1

The file format(s) used to implement FeatureData[Sequences] can be anything, as long as the file format(s) can encode this "mapping" of feature IDs to sequence IDs, and the sequences themselves. Your idea of storing the sequences in FASTA format should work -- I think DNAFASTAFormat is what you want. You could design a (second) file format to store the mapping of feature IDs to sequence IDs, and then create your "OTU Map" directory format that is composed of those two file formats (see PairedDNASequencesDirectoryFormat for an example). After that you can register a transformer that converts the "OTU Map" directory format into an appropriate data structure for your plugin.

Get in touch if you have any issues with this -- the docs are currently very sparse on this topic and we'll be reworking the API to make it easier to create directory formats in the future.

from q2-types.

JTFouquier avatar JTFouquier commented on August 10, 2024

The QIIME 2 semantic type page says "FeatureData[Sequence]: A single unaligned sequence associated with a feature identifier (e.g. a representative sequence).".... So shouldn't FeatureData[Sequences] be a generic .fasta file (unaligned, multiple seqs)? Because I need that one in addition to an OTU map :) Let me know if that exists, and if not I'll register both on q2-ghost-tree for now. Thanks!

from q2-types.

jairideout avatar jairideout commented on August 10, 2024

forum xref

from q2-types.

thermokarst avatar thermokarst commented on August 10, 2024

This recently came up on the forum.

from q2-types.

ebolyen avatar ebolyen commented on August 10, 2024

Something I think might work better than FeatureData[Sequences] would be a FeatureData[Features] which would let you describe some hierarchical relationship of features.

In practice this would probably just look like a metadata file which would work with feature-table group. Your reads would be the feature-ids and the OTUs would be the column. This would compose easily with other stuff and you can kind of make it work right now.

from q2-types.

lizgehret avatar lizgehret commented on August 10, 2024

This is the intention of the new FeatureMap type that's been moved from q2-types-genomics. Closing out this issue as developers should figure out how this should be added to individual plugins.

from q2-types.

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.