Comments (1)
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)
- Building bamUtil returns error: call of overloaded 'to_string(int&)' is ambiguous HOT 4
- Compile error HOT 4
- clipoverlap on raw output straight from bwa HOT 3
- Building bamUtil returns error: undefined reference HOT 4
- Cut middle of reads HOT 2
- `bam diff` should exit with a return code
- Dedup does not work from std/in HOT 2
- Cannot Compile NonPrimaryDedup Branch HOT 5
- cannot consume -.ubam on a pipe HOT 2
- Makefile should not ignore system LDFLAGS
- `bam diff` seems to return the reads that look identical between A and B HOT 1
- the clang compiler does not support -pg option on versions of OS X 10.9 and later HOT 4
- Error building from source: libStatGen HOT 3
- BamUtil: recab error: failed to open reference genome HOT 6
- bam2FastQ generates empty fastq files
- bash -x testBam2FastQ.sh and bash -x testMergeBam.sh failed on centos8_aarch64
- can not install with conda HOT 2
- bamutil diff - Get record for every read being compared HOT 2
- build is broken due to deprecated git protocol HOT 1
- Odd stats reported for clipOverlap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bamutil.