peterk87 / filter_classified_reads Goto Github PK
View Code? Open in Web Editor NEWFilter for reads from taxa of interest using Kraken2/Centrifuge classification results.
License: Other
Filter for reads from taxa of interest using Kraken2/Centrifuge classification results.
License: Other
filter_classified_reads
cannot parse Kraken2 results from paired-end reads with the --paired
flag.
Kraken2 was run with paired-end reads with the --paired
flag producing classification results that could not be parsed by filter_classified_reads
:
$ filter_classified_reads -i reads_1.fastp.fastq.gz -I reads_2.fastp.fastq.gz \
-o reads_1.viral_unclassified.fastq -O reads_2.viral_unclassified.fastq \
-c reads-centrifuge_results.tsv -C reads-kreport.tsv \
-k reads-kraken2_results.tsv -K reads-kraken2_report.tsv \
--taxids 10239
...
2019-09-05 13:52:49,389 INFO: Parsing kraken2 results into DataFrame [i
n target_classified_reads.py:49]
Traceback (most recent call last):
File "pandas/_libs/parsers.pyx", line 1191, in pandas._libs.parsers.T
extReader._convert_tokens
TypeError: Cannot cast array from dtype('O') to dtype('uint16') accordi
ng to the rule 'safe'
Snippet from Kraken2 classification results output file:
U M04594:80:000000000-G37TN:1:1101:16267:2330 0 149|151 0:115 |:| 0:117
U M04594:80:000000000-G37TN:1:1101:11949:2338 0 150|151 0:116 |:| 0:117
C M04594:80:000000000-G37TN:1:1101:14888:2339 9606 151|151 0:52 9606:1 0:64 |:| 0:117
filter_classified_reads
is expecting certain data types within certain fields like uint16
in the sequence length field (4th field).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.