Comments (4)
Hi @callumparr,
The only reason a read would not be written out is if there's an overlapping match:
https://github.com/nanoporetech/duplex-tools/blob/master/duplex_tools/split_on_adapter.py#L173
We've decided to err on the side that doesn't cause any sequence duplication in the output in this case, but it's likely that we can solve it more elegantly somehow.
from duplex-tools.
Does overlapping match relate to the adapter sequences like below?
from duplex-tools.
You can see which spans are candidates to write out by looking at hits
just before this line:
https://github.com/nanoporetech/duplex-tools/blob/master/duplex_tools/split_on_adapter.py#L164
The idea is to write out the complement of the adapter hits, so the following loops through the intervals against the adapter, and the hits
will be populated with the complement of this (the end of each hit + the beginning of the next hit).
Note that 0,0
and len(seq),len(seq)
are added to allow for the first and last "complement" to the adapter hits to be written out.
for left_hit, right_hit in pairwise(
[(0, 0), *result['locations'], (len(seq), len(seq))]):
hits.append([left_hit[1], right_hit[0]])
I'd imagine seeing what that variable is would bring some clarity into why there's one read that's not being written out
from duplex-tools.
Thank you. For now, it seems by eye that there is some overlap.
from duplex-tools.
Related Issues (20)
- Unexpected input file name changes output file file name format on split_on_adapter HOT 1
- problem with Fastx HOT 2
- Cannot install duplex_tools HOT 2
- split_pairs not working HOT 3
- pairs.txt file empty, but pairs_from_bam/pair_ids.txt not empty HOT 1
- empty output from split_pairs HOT 5
- KeyError: 'sequence_length_template' when basecalling is turned off HOT 2
- Duplicate reads and read splitting option in MinKNOW HOT 9
- Positional arguments (especially seqkit_stats_nosecondary) in duplex_tools assess_split_on_adapter HOT 1
- split_pod5 supported seed types error HOT 3
- pod5 version of duplex_tools issue HOT 3
- question on split pairs HOT 3
- promethion good pairs: 0 HOT 3
- Extracting duplex reads for multiplexed samples HOT 2
- Unexpected base in duplex call HOT 4
- issue with split_on_adapter output HOT 17
- couldn't install on linux or pc HOT 5
- np.bool deprecated, package no longer works HOT 1
- split_on_adapter no more than one core?
- guppy_duplex ValueError: not enough values to unpack (expected 4, got 3) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duplex-tools.