Code Monkey home page Code Monkey logo

Comments (3)

jbloom avatar jbloom commented on June 29, 2024

I'm not completely certain I recommend alignparse as a general purpose way to run minimap2. But I can see where it might be useful. If you want me to do this, can you create and post a short example including the commands you are. using and a small data file with the tags you want to keep.

from alignparse.

cdebuck avatar cdebuck commented on June 29, 2024

Hi,
I've actually found out that the -y option of minimap2 is suitable for my needs, because it retains the tags that I need, so I ended up not using alignparse for my analyses. Before, I realized this I had been playing around a little with the code to try and implement retaining tags of the B-type, I will try to create pull-request to show what I had tried (I am not very experienced so I apologize if I make a mistake).
I have attached a small subset of the reads that contain the MM and ML tags that I'm interested in.

The commands I used were:

test_ref_file = '/home/cdebuck/ref.fasta'
test_fastq = '/home/cdebuck/sample_fastq.txt'
out_sam_file = '/home/cdebuck/test/alignparse_test_minimap.sam'
options = ['-ax', 'map-ont', '-t 16']
retain_tags = ['MM', 'ML']
mapper = minimap2.Mapper(options, check_cs=False, retain_tags=retain_tags)
mapper.map_to_sam(test_ref_file, test_fastq, out_sam_file)

sample_fastq.txt

from alignparse.

jbloom avatar jbloom commented on June 29, 2024

Great, thanks. I'm closing this issue then.

from alignparse.

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.