Giter VIP home page Giter VIP logo

Comments (8)

JustinChu avatar JustinChu commented on July 17, 2024

Sounds like it could be a bug. What is the error message you get from the -e option? What happens when you try inputting 1 file with the -e option? If it is working correctly it should output an error message in that case, but not when 2 files are listed.

-e should produce 2 files (with a _1.fq and _2.fq suffix) (non-interleaved). You are right about how paired end information is not used when -e is not used.

It could be helpful for me it you show me the --version output as well.

from biobloom.

aldertzomer avatar aldertzomer commented on July 17, 2024

Error message with option -e:

Input:
biobloomcategorizer --fq -e -p test -f /mnt/data/klif/svermeulen/Scripts_test/BioBloomTools/database/test_db.bf S70_R1.fastq.gz S70_R2.fastq.gz

Output:
Usage of paired end mode:
BioBloomCategorizer [OPTION]... -f "[FILTER1]..." [FILEPAIR1] [FILEPAIR2]
or BioBloomCategorizer [OPTION]... -f "[FILTER1]..." [SMARTPAIR]

No error message with option -e and 1 file

biobloomcategorizer --fq -e -p test -f /mnt/data/klif/svermeulen/Scripts_test/BioBloomTools/database/test_db.bf S70_R1.fastq.gz

Output:
Starting to Load Filters.
Loaded Filter: test_db
Filter Loading Complete.
Filtering Start
File written to: test_test_db_1.
File written to: test_test_db_2.
File written to: test_noMatch_1.
File written to: test_noMatch_2.
File written to: test_multiMatch_1.
File written to: test_multiMatch_2.
Total Reads:121994
Writing file: test_summary.tsv

--version output:
biobloomcategorizer (BIOBLOOMTOOLS) 2.1.2-2-g0703

from biobloom.

aldertzomer avatar aldertzomer commented on July 17, 2024

To add, it works with interleaved files (although the reverse read of the pair gets placed in the forward (_1) file and the forward read gets placed in the reverse (_2) file

from biobloom.

JustinChu avatar JustinChu commented on July 17, 2024

Thanks for the report. I've found the bug and it will be fixed soon.
The smart pairing option is assigning the (_1) and (_2) arititrarally based on which it sees first. I agree that the order should be changed though and I will change that as well.

from biobloom.

JustinChu avatar JustinChu commented on July 17, 2024

The bug should be fixed in the lastest version of the master branch 8a47ccb.

Sorry for the problem, turns out the new smart pairing code was the cause of the issue. When only one file is listed there should indeed be no error.

Thanks again.

from biobloom.

aldertzomer avatar aldertzomer commented on July 17, 2024

It works pefectly! Thank you very much. We can now screen our metagenomics for contaminating ( in our case non-human) host DNA in minutes.

from biobloom.

JustinChu avatar JustinChu commented on July 17, 2024

Great I'll make sure the fix is present in the release version of 2.1.2.

from biobloom.

JustinChu avatar JustinChu commented on July 17, 2024

Sorry I didn't realize this until now but the files should have extensions on them for .fq or .fa.

I've pushed a fix for this on the main branch. Minor issue, the output should still have been .fq by default if you used the output options.

from biobloom.

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.