Giter Site home page Giter Site logo

Comments (1)

mktrost avatar mktrost commented on August 13, 2024

What is an sbam? Is that a sorted BAM file?
Here is the wiki documentation on the --in option: http://genome.sph.umich.edu/wiki/BamUtil:_dedup#input_File_.28--in.29
If you want to pass in a BAM file, use --in -.bam
If you want BAM output, use --out -.bam

As of now the code does not automatically determine what type of file you are reading from stdin. It uses the file extension to determine that (defaulting to sam format). Similarly it uses that to determine what type of file you want to write. Samtools alternatively uses -S/-b to help determine that information.

I do not recommend sending both --out and --log to stdout. The output to stdout would be a mix of sam/bam data and logs.

I am very interested in finding out more information about your file written to stdout not being sorted since it is expected to be the same output as if you wrote to a file. It should output reads in the same order that they are in the input file with just a modification to the flag. I would love to recreate this issue and add a test for it to ensure we fix this problem and it doesn't reoccur. Unfortunately, I have not seen this with my own testing. Can you help me to identify the out of order reads (maybe the positions that are out of order).
bam validate --in output1.sam --so_coord
on it? That should let you know if any of the records are unsorted.

Also can you convert output2.sam to a sam file and compare them as sams since that might help figure out what records are out of order.

Thank you for your help in investigating this.

from bamutil.

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.