Code Monkey home page Code Monkey logo

Comments (4)

anorris8 avatar anorris8 commented on July 17, 2024 1

Sorry - I just realized the output got cutoff in my original post. I do have the following files. I'll check them out now.
c_reads_against_query.s.bam
c_reads_against_query.s.bam.bai

from ragtag.

anorris8 avatar anorris8 commented on July 17, 2024 1

It turned out to be an issue with my reads file. Thanks!

from ragtag.

malonge avatar malonge commented on July 17, 2024

Hi there,

Thanks for bringing this to my attention. It's not clear from the log, but the log is actually truncated. In future versions, I will add a log message that signals the end of the program. Something like "bye".

So something went wrong between compressing and sorting the read alignments. Is the sam/bam file empty? Aside from that bam file, we should also see a sorted bam file named c_reads_against_query.s.bam

It is strange that things failed yet there is no error message from pysam or anything else. Would you be willing to share the data so that I can reproduce the error? Unfortunately, it looks like the error is silent which makes it hard to debug.

You may be eager to get results in the meantime. Assuming the c_reads_against_query.sam looks ok, you can compress, sort and index it yourself with samtools (view, sort and index). Just be sure to name the sorted bam file c_reads_against_query.s.bam and put it in the same ragtag_output directory. Then, when you run ragtag with the same command, it will recognize the sorted bam file and it will (hopefully) proceed as normal.

Thanks,
Mike

from ragtag.

malonge avatar malonge commented on July 17, 2024

I should be more clear - aside from just checking if the SAM/BAM file is empty, please check the general integrity of the files with samtools. I have a feeling something is going wrong with pysam here.

from ragtag.

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.