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

methylation_specificity generates NaN/NA #26

Open
prisnir-zz opened this issue Apr 5, 2021 · 1 comment
Open

methylation_specificity generates NaN/NA #26

prisnir-zz opened this issue Apr 5, 2021 · 1 comment

Comments

@prisnir-zz
Copy link

prisnir-zz commented Apr 5, 2021

Hi,
I am working with the following commands:

res <- scan_spiked_bam(sb, bins=GRanges())

This works fine for me:

GRangesList object of length 2:
$genomic
GRanges object with 0 ranges and 1 metadata column:
   seqnames    ranges strand |  coverage
      <Rle> <IRanges>  <Rle> | <numeric>
  -------
  seqinfo: 52 sequences from spike genome

$spikes
GRanges object with 52 ranges and 1 metadata column:
                             seqnames    ranges strand |  coverage
                                <Rle> <IRanges>  <Rle> | <numeric>
   80b_1C_35G-1          80b_1C_35G-1      1-80      * |         2
   80b_1C_35G-2 80b_1C_35G-2_mod_meth      1-80      * |        16
   80b_1C_50G-1          80b_1C_50G-1      1-80      * |         6
   80b_1C_50G-2 80b_1C_50G-2_mod_meth      1-80      * |       496
   80b_1C_65G-1          80b_1C_65G-1      1-80      * |        16
            ...                   ...       ...    ... .       ...
  320b_8C_35G-2         320b_8C_35G-2     1-320      * |         0
  320b_8C_50G-1         320b_8C_50G-1     1-320      * |         3
  320b_8C_50G-2    320b_8C_50G-2_meth     1-320      * |      1514
  320b_8C_65G-1    320b_8C_65G-1_meth     1-320      * |       407
  320b_8C_65G-2         320b_8C_65G-2     1-320      * |         3
  -------
  seqinfo: 52 sequences from spike genome

Next, when I run the following:
methylation_specificity(res)
I get NaNs

$mean
[1] NaN
$median
[1] NA

For the same bam file; scan_methylation_specificity works just right.

@ttriche
Copy link
Member

ttriche commented Apr 6, 2021 via email

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

2 participants