Git Product home page Git Product logo

Comments (8)

ODiogoSilva avatar ODiogoSilva commented on August 27, 2024

I agree that this will be a good thing to support. From the point of view of assemblerflow, the required modification is trivial. The fromFilePairs channel could be defined as:

Channel.fromFilePairs(params.reads, size: params.singleEnd ? 1 : 2, type: 'file')

To allow for both single and paired-end data. However, the majority of the modifications would be on the template scripts themselves, which are mostly designed for paired end data. Moreover, we would need to create a requirement that templates using fastq data would need to support from single and paired-end files, whenever possible.

When that isn't a possibility, that should be explicit in the documentation of the component using the template (and perhaps including a check in pipelines using those components that prevent the input of single end data.

from flowcraft.

tiagofilipe12 avatar tiagofilipe12 commented on August 27, 2024

Also a statement like this can be used in each process template that requires to handle both paired end or single end inputs.

from flowcraft.

ODiogoSilva avatar ODiogoSilva commented on August 27, 2024

from flowcraft.

tiagofilipe12 avatar tiagofilipe12 commented on August 27, 2024

Yes, my point is precisely that we can leave that handler to the process itself or to the python script as you say.

from flowcraft.

cimendes avatar cimendes commented on August 27, 2024

I've been receiving request to support single FastQ files as input. @tiagofilipe12 example is no longer available but I like @ODiogoSilva solution of having both possibilities in each template. A simple solution is to duplicate the scripts and adjust accordingly.

from flowcraft.

ODiogoSilva avatar ODiogoSilva commented on August 27, 2024

Double the scripts, double the maintenance effort. It seems easier to have the FastQ channel accepting both paired and single reads and then add a condition in the templates depending on the number of fastq received.

from flowcraft.

cimendes avatar cimendes commented on August 27, 2024

I agree. I was just thinking about tools where you have to input each fastq file in a different parameter or that have completely different parameters depending if you're working with paired-end or single fastq files.

from flowcraft.

sjackman avatar sjackman commented on August 27, 2024

Does Flowcraft support interleaved paired-end FASTQ file, for example as output by samtools mergepe? That's my preferred format, by far, for paired-end reads.
I opened issue #136 for this feature request.

from flowcraft.

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.