Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samtools Stats Execution and Parsing #63

Open
DarioS opened this issue Nov 21, 2024 · 0 comments
Open

Samtools Stats Execution and Parsing #63

DarioS opened this issue Nov 21, 2024 · 0 comments

Comments

@DarioS
Copy link

DarioS commented Nov 21, 2024

samtools stats produces a variety of statistics tables and puts them all into one into one output file.

# Summary Numbers. Use `grep ^SN | cut -f 2-` to extract this part.
SN      raw total sequences:    2935735484      # excluding supplementary and secondary reads
SN      filtered sequences:     0
SN      sequences:      2935735484
SN      is sorted:      1
SN      1st fragments:  1467867742
SN      last fragments: 1467867742
    ...        ...
# Coverage distribution. Use `grep ^COV | cut -f 2-` to extract this part.
COV     [1-1]   1       2079895
COV     [2-2]   2       1438833
COV     [3-3]   3       1073855
COV     [4-4]   4       960210
COV     [5-5]   5       864269
COV     [6-6]   6       804097
COV     [7-7]   7       755066
COV     [8-8]   8       717224
COV     [9-9]   9       692326
COV     [10-10] 10      669770
    ...        ...

It would be great to run it, parse the output into a DataFrameList, and encode COV as Rle and calculate summary statistics.

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

No branches or pull requests

1 participant