Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Hparker
    Member
    • Dec 2014
    • 42

    #46
    Sorry the error message is actually this: (I changed the number of samples >=2 to 1 briefly to check whether this was the problem)

    Error in which(rowSums(BS.cov[, bsseq.data$Type == "SSA"] >= 2) >= 2 & :
    error in evaluating the argument 'x' in selecting a method for function 'which': Error in rowSums(BS.cov[, bsseq.data$Type == "SSA"] >= 2) :
    'x' must be an array of at least two dimensions


    In addition when I look at the number of CpGs covered by at least 1 read in all samples I get only 151

    sum(rowSums(getCoverage(bsseq.data) >= 1) == 14
    [151]

    Comment

    • Hparker
      Member
      • Dec 2014
      • 42

      #47
      I also get an error:

      Error in which(rowSums(BS.cov[, bsseq.data$Type == "SSA", drop = F] >= :
      error in evaluating the argument 'x' in selecting a method for function 'which': Error in rowSums(BS.cov[, bsseq.data$Type == "SSA", drop = F] >= 2) :
      'x' must be an array of at least two dimensions

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #48
        Oh, that's the problem then. You don't seem to have enough coverage of enough sites to do anything really. Perhaps it'd help if you described the underlying biological experiment and how the sequencing data was processed. It's likely that something went amiss earlier in the process.

        Comment

        • Hparker
          Member
          • Dec 2014
          • 42

          #49
          The approach used Zymo's Fluidigm's array to simultaneously bisulfite sequence 48 samples targeting 48 genetic loci. I used a heterogenous mix of samples, mostly DNA from fresh tissue but also some FFPE samples.

          How many reads should I be getting to make the analysis? It could be that only one sample which amplified poorly is affecting this? Or is it more likely to be accross samples?

          Is it possible for example to remove a genetic loci region from the analysis and if so how could I then do this in R?

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #50
            That method was designed with something like 5x average coverage in mind (I think that's what they used in the paper, but you'd have to double check that). With targeted BSseq this would be pretty simple to achieve (5x is probably an absolute minimum too).

            Yes, you can subset the objects however you like. Just "obj <- obj[idx,]", where "idx" contains the rows you want to keep. See help(SummarizedExperiment) for further information.

            Comment

            • Hparker
              Member
              • Dec 2014
              • 42

              #51
              So what do you think the problem is when I try to use the: keepLoci (below) ?

              Comment

              • dpryan
                Devon Ryan
                • Jul 2011
                • 3478

                #52
                No clue, I'd have to play with your dataset. Perhaps post something on the bioconductor support site and see if the BSseq authors reply.

                Comment

                • Hparker
                  Member
                  • Dec 2014
                  • 42

                  #53
                  Ok will post on bioconductor site, thank you.

                  Just a couple more questions:

                  - when i use getCoverage and then View this information I have the samples (V1, V2...) as columns and CpG sites as rows. How can I rename the samples as the actual samples not V1 etc. and also label the CpG sites as specific regions? Because at the moment I can't tell which samples correspond to areas of poor coverage.
                  The numbers that are shown in this table for the coverage are not the actual number of reads, but is an algorithm used to determine these numbers based on the number of reads? Is there a cutoff for what might be considered low read coverage?

                  Many thanks

                  Comment

                  • dpryan
                    Devon Ryan
                    • Jul 2011
                    • 3478

                    #54
                    No clue and I don't have the time to check at the moment.

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                      by SEQadmin2


                      I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

                      Here are nine questions we think about, in roughly the order they matter, before...
                      06-18-2026, 07:11 AM
                    • SEQadmin2
                      From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                      by SEQadmin2


                      Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                      The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                      ...
                      06-02-2026, 10:05 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 06-17-2026, 06:09 AM
                    0 responses
                    41 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 06-09-2026, 11:58 AM
                    0 responses
                    102 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 06-05-2026, 10:09 AM
                    0 responses
                    123 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 06-04-2026, 08:59 AM
                    0 responses
                    114 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...