$ pysamstats --type coverage_binned --chromosome 7 --start 3091859 --end 3091899 --truncate --window-size=6 --window-offset=0 -f ../ref/ref.fa my.sorted.bam
chrom pos gc reads_all reads_pp
7 3091859 83 4 4
7 3091865 50 0 0
7 3091871 83 0 0
7 3091877 67 2 2
7 3091883 67 0 0
7 3091889 67 0 0
7 3091895 83 0 0
| pos | reads_all |
| 3091859 | 4 |
| 3091865 | 4 |
| 3091871 | 4 |
| 3091877 | 4 |
| 3091883 | 6 |
| 3091889 | 6 |
| 3091895 | 6 |
--
You received this message because you are subscribed to the Google Groups "Pysam User group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pysam-user-group+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$ pysamstats --type coverage_binned --chromosome 7 --start 3091859 --end 3091899 --truncate --window-size=6 --window-offset=0 -f ../ref/ref.fa my.sorted.bam
chrom pos gc reads_all reads_pp
7 3091859 83 4 4
7 3091865 50 0 0
7 3091871 83 0 0
7 3091877 67 2 2
7 3091883 67 0 0
7 3091889 67 0 0
7 3091895 83 0 0
To unsubscribe from this group and stop receiving emails from it, send an email to pysam-user-gro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to pysam-user-group+unsubscribe@googlegroups.com.
>>> for rec in pysamstats.stat_coverage_binned("G3_noP_H3_rep2_markDup.sorted.bam", chrom="7", start=3091859, end=3094899,truncate=True, f="../ref/*.fa"):
... print rec['chrom'], rec['pos'], rec['reads_all'], rec['reads_pp']
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pysamstats.pyx", line 3050, in pysamstats.stat_coverage_binned (pysamstats.c:29644)
TypeError: stat_coverage_binned() takes exactly 2 positional arguments (1 given)
| def stat_coverage_binned(alignmentfile, fafile, **kwargs): |