BioJulia / Bio.jl

[DEPRECATED] Bioinformatics and Computational Biology Infrastructure for Julia
http://biojulia.dev
MIT License
261 stars 65 forks source link

add isprimary for SAM.Record and BAM.Record #461

Closed bicycle1885 closed 7 years ago

bicycle1885 commented 7 years ago

According to the SAM specs:

For each read/contig in a SAM file, it is required that one and only one line associated with the read satisfies ‘FLAG & 0x900 == 0’. This line is called the primary line of the read.

I found this is sometimes useful.

codecov-io commented 7 years ago

Codecov Report

Merging #461 into master will increase coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #461      +/-   ##
==========================================
+ Coverage   65.16%   65.17%   +<.01%     
==========================================
  Files         159      159              
  Lines       11326    11328       +2     
==========================================
+ Hits         7381     7383       +2     
  Misses       3945     3945
Impacted Files Coverage Δ
src/align/bam/record.jl 69.41% <100%> (+0.18%) :arrow_up:
src/align/sam/record.jl 70.09% <100%> (+0.14%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a7264bd...66363ea. Read the comment docs.