Git Product home page Git Product logo

Comments (4)

onordesjo avatar onordesjo commented on September 24, 2024 1

Hi @eyesmo,
It's going to be difficult to decide whether a read is a follow-on in most cases where you're sequencing only a single read. If ther are at least a few different sequences in the sample, then these options can be used to adjust the stringency of the match:

bases_to_align:
https://github.com/nanoporetech/duplex-tools/blob/master/duplex_tools/filter_pairs.py#L39
align_threshold:
https://github.com/nanoporetech/duplex-tools/blob/master/duplex_tools/filter_pairs.py#L40

You're right that one option would be to use UMIs or something similar to identify actual pairs in these cases.

I would suggest to instead spike in some amount of other sequences in these cases to make it easier to identify correct follow-ons. Lambda is typically pretty good as a spike-in for example.

Technically, filter_pairs is quite quick-and-dirty and checks precisely whether a read is rc of the other. The core alignment method happens here, note that seq2 is already reverse-complemented earlier, which is why this works:

https://github.com/nanoporetech/duplex-tools/blob/master/duplex_tools/filter_pairs.py#L220

from duplex-tools.

eyesmo avatar eyesmo commented on September 24, 2024

Better yet, do the sequencing adapters have any UMIs/stretches of random nucleotides embedded within them?

from duplex-tools.

eyesmo avatar eyesmo commented on September 24, 2024

I think initially used filter_pairs incorrectly. I specified a directory I intended as the output for duplex basecalling, instead of the directory where all the simplex fastq reads were stored.

Running a second time with the simplex fastq reads directory specified, it now says roughly 30% of my reads are good pairs. Still higher than I'd expect for Kit 12, but lower than 90%.

from duplex-tools.

onordesjo avatar onordesjo commented on September 24, 2024

Hi, @eyesmo, just wanted to check if you had any luck trying to increase the bases_to_align? It should help fairly well with making sure you have a complement being rc of the template.

from duplex-tools.

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.