Skip to content

Change default max depth for bedcov.#1970

Merged
vasudeva8 merged 1 commit into
samtools:developfrom
jkbonfield:bedcov-d
Jan 25, 2024
Merged

Change default max depth for bedcov.#1970
vasudeva8 merged 1 commit into
samtools:developfrom
jkbonfield:bedcov-d

Conversation

@jkbonfield

Copy link
Copy Markdown
Contributor

The -d option is used for specifying the minimum depth we need to meet in order to count bases covered with at least that depth in a new column. It also ups the bam_mplp_set_maxcnt mpileup limit from 64000 to the '-d' value if bigger.

Therefore extremely deep data requires the use of '-d' to count bases even when it's not interested in the additional column.

Changed the default to be INT_MAX (every read is counted) and added a new --max-depth option to control this so we can limit it for problematic files if desired. (It is unfortunate that in mpileup -d is short for --max-depth and here it is a minimum depth instead.)

Also fixed usage statement formatting.

Fixes #1950

The -d option is used for specifying the minimum depth we need to meet
in order to count bases covered with at least that depth in a new
column.  It also ups the bam_mplp_set_maxcnt mpileup limit from 64000
to the '-d' value if bigger.

Therefore extremely deep data requires the use of '-d' to count bases
even when it's not interested in the additional column.

Changed the default to be INT_MAX (every read is counted) and added a
new --max-depth option to control this so we can limit it for
problematic files if desired.

Also fixed usage statement formatting.

Fixes samtools#1950
@vasudeva8 vasudeva8 merged commit 79df5ed into samtools:develop Jan 25, 2024
mp15 pushed a commit to mp15/samtools that referenced this pull request Feb 5, 2024
The -d option is used for specifying the minimum depth we need to meet
in order to count bases covered with at least that depth in a new
column.  It also ups the bam_mplp_set_maxcnt mpileup limit from 64000
to the '-d' value if bigger.

Therefore extremely deep data requires the use of '-d' to count bases
even when it's not interested in the additional column.

Changed the default to be INT_MAX (every read is counted) and added a
new --max-depth option to control this so we can limit it for
problematic files if desired.

Also fixed usage statement formatting.

Fixes samtools#1950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong number of bases/reads reported by bedcov in very high coverage data

2 participants