Git Product home page Git Product logo

Comments (4)

guidohooiveld avatar guidohooiveld commented on May 19, 2024 1

For the archive; to answer my own question:
after 2nd thought the solution was quite simple: before calling fastp I only had to add a command to create a new directory:
mkdir -p $PWD/fastp_out/${fn}
That was all....

from fastp.

sfchen avatar sfchen commented on May 19, 2024

But actually this can be done with --json <dir/fastp.json> --html <dir/fastp.html>.

fastp will throw an error and quit immediately if you specify a existing folder name directly.

from fastp.

thbtmntgn avatar thbtmntgn commented on May 19, 2024

Yes yes of course, it was just an idea!

By default names were ok for me so I just try to give a directory to these 2 options and it did not work.

Thanks for your answer!

from fastp.

guidohooiveld avatar guidohooiveld commented on May 19, 2024

Likely a stupid question, but since I am struggling with something similar:

How to generate a report if I am using for <dir> a character string that is composed of a directory name + fastq name? Thus e.g. 'samplenumber/fastqname'?

My file setup:

workingdir
    seqdata
        - sample1
            --file1.fq.gz
        - sample 2
            --file2.fq.gz


    pfast_out

In the working directory I am executing fastp in a loop using:

#!/bin/bash
find $PWD/seqdata \( -name '*.fq.gz' -or -name '*.fq' \) -print0 | while read -d $'\0' fn
do
echo "Processing sample ${fn}"
fastp -i ${fn} -p -w 4  --json $PWD/pfast_out/${fn}/fastp.json --html $PWD/pfast_out/${fn}/fastp.html
done

The directory pfast_out (in workingdir) is created by me before starting pfast, but the *.json and *.html files are not generated??

Output names are: /workingdir/pfast_out/seqdata/sample1/file1.fq.gz/fastp.json, etc.

I think that since the sub-directory in bold doesn't exists when the files have to be written, the*.json and *.html files are not generated...
How to achieve this?

Thanks for any suggestions!

from fastp.

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.