Giter VIP home page Giter VIP logo

Comments (5)

skovaka avatar skovaka commented on July 17, 2024

If you want to run uncalled map, you could tell UNCALLED to only map those reads with the -l option. -l takes a text file with one read ID per line, and it will only map reads from the FAST5 file which are contained in the text file.

If you want to run uncalled sim you could do something similar by only including reads from each barcode in the sequencing summary file.

Another option, as you suggested, is to separate out the FAST5 files out using something like the ONT fast5 API. I'd only recommend this if you expect to run UNCALLED map or sim a number of times since it will save time loading the smaller number of FAST5s, at the expense of the time to run the initial command and additional disk space.

from uncalled.

aspitaleri avatar aspitaleri commented on July 17, 2024

Hi @skovaka thanks a lot for your advice. Using -l option means I should know which read belong to which sample. Where do I get this information?

from uncalled.

skovaka avatar skovaka commented on July 17, 2024

I'm not very familiar with barcoded data, but if you have separate fastq files for each sample you can find the read IDs in the fastq headers. Each header has the ID after the "@" and before the first space. You should be able to extract all read IDs from reads.fq using the command awk 'NR % 4 ==1 {print substr($1, 2)}' reads.fq > read_ids.txt.

from uncalled.

aspitaleri avatar aspitaleri commented on July 17, 2024

Okay I see but this means that I need to basecall my fast5 first, which I'd like to avoid. The best is to split the fast5 using some fast5 library to separate them first and then use uncalled. Probably ont_fast5_api can do this.

from uncalled.

skovaka avatar skovaka commented on July 17, 2024

I see, I didn't realize you were trying to avoid basecalling. As you initially suggested, you could map all reads to a fasta file containing genomes from all your samples, and then split based on which genome each read maps to. That would not take barcodes into account however, since that's not what UNCALLED was designed for.

from uncalled.

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.