Fix read length plot for limited variation data.#2085
Merged
Conversation
daviesrob
reviewed
Jul 26, 2024
daviesrob
left a comment
Member
There was a problem hiding this comment.
Looks like a good fix for the read length plot, although in testing I found it's still possible to break plot-bamstats elsewhere by not giving it much data. E.g.:
mkdir /tmp/stats
./samtools stats test/dat/view.002.sam > /tmp/view.002.stats
./misc/plot-bamstats -p /tmp/stats/view.002 /tmp/view.002.stats
Warning: empty x range [1:1], adjusting to [0.99:1.01]
Warning: empty x range [1:1], adjusting to [0.99:1.01]
Warning: empty x range [2:2], adjusting to [1.98:2.02]
plot '-' smooth csplines with lines lc 1 title 'First fragments'
^
"/tmp/stats/view.002-gc-content.gp", line 12: Can't calculate splines, need at least 3 points
The command exited with non-zero status 256:
gnuplot /tmp/stats/view.002-gc-content.gp
This may be something to look at in the future.
Meanwhile, #2068 (comment) notes that the read length plot doesn't appear on the html page. It doesn't look like it should be too hard to add...
Added read-length to html page. Changed file suffix from read_length to read-length to match the other file names.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2068 where the limited length variations were causing the x range to be wrong. Some other changes to quiet warnings about y ranges.