Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ge2sasag
    Member
    • Apr 2013
    • 43

    #1

    Create BSseq object for BSmooth

    Hello,
    I got whole genome bisulfite sequencing methylation data as bed files (output from Bowtie2) with 3 columns for genomic position and M (methylation) and Cov (Coverage) columns. I´m trying to create the BSseq object needed to run BSmooth pipeline but I´m not able to do it. I´m very newbie in R so is hard for me to understand the steps from the user guide, probably I´m missing something.

    Any help with R code for this would be EXTREMELY helpful.

    Thank you very much in advance

    Gema
  • ge2sasag
    Member
    • Apr 2013
    • 43

    #2
    please... anyone?

    Comment

    • kalyankpy
      PostDoc
      • Mar 2010
      • 20

      #3
      Welcome to the R world! I do not have a straight forward answer for you. But I share my personal experience of working with a specific package with out knowledge of R

      My experience with R started in a similar way. I didn't know R but I wanted to analyse. After fiddling for few days, I realized that I took hours and hours understanding a specific function from the package. I started questioning if this is the best way moving forward. Because, I don't know R and don't know how to get help, it was bleak ahead.

      Then I shifted to learning basics of R (Datacamp, Coursera, QuickR pages). It is time taking but it helped me understand the very basics of R. It helped me understand how to get help, how to read help pages and interpret it. Surprsingly, when I started my anlaysis again, it was a smooth ride. I could get help easiy since I know R terms (eg: library in R is different from any other library)

      R is wonderful. Learning the basics would speed up things rather than starting with a particular package. Also, start using R with Rstudio. It is a different world of R: much more easier to work with R than from terminal!

      Comment

      • ge2sasag
        Member
        • Apr 2013
        • 43

        #4
        Thank you very much for your answer and advice!
        You described exactly how I feel... Actually I enroled in R course from Coursera 2 weeks ago but I haven´t started with it yet.... But after your post, I will do asap for sure, I need to learn but I always delay it until I really need and I got stuck

        Comment

        • raphael123
          Member
          • Dec 2013
          • 37

          #5
          First you should get the strand information for each position !
          Could you show the first lines of your bed file ?

          Comment

          • ge2sasag
            Member
            • Apr 2013
            • 43

            #6
            Hi raphael123, thanks for answering,

            The file I was given is the output from Bowtie2 and is looking like this:

            chr1 564495 564496 1 1
            chr1 564501 564502 1 1
            chr1 565013 565014 1 1
            chr1 565040 565041 1 1
            chr1 565262 565263 0 8
            chr1 565397 565398 1 5
            chr1 565469 565470 2 2

            4th column is methylation and 5th column is coverage, I have one file like this for each sample, i.e, untreated and treated.

            Comment

            • raphael123
              Member
              • Dec 2013
              • 37

              #7
              Okay, I am surprise bowtie2 can call methylation ... I would advise you to use BisSNP to call your methylation from aligned file, then you will still have the strand information and can format it to bssmoth format :

              assembly position strand class mc h
              1 10497 + CG 31 31
              1 10525 + CG 6.9998 31
              1 10542 + CG 30 30
              1 714168 - CG 0 67
              1 714170 - CG 0 67
              1 714178 - CG 0 68
              1 714182 - CG 0 68
              1 714199 - CG 0 68
              1 714203 - CG 0 5

              Comment

              • ge2sasag
                Member
                • Apr 2013
                • 43

                #8
                With BSmooth you can align with Bowtie2 (not included in BSmooth, you have to run separately) or with an align method that is included and is called Merman (ref. Hansen et al. Genome Biology 2012). My sequencing data is WGBS. Is it possible that the strand info was already taken into account?

                Comment

                • ge2sasag
                  Member
                  • Apr 2013
                  • 43

                  #9
                  Bismark software is also using Bowtie2

                  Comment

                  • raphael123
                    Member
                    • Dec 2013
                    • 37

                    #10
                    Ok I don t know about BSmooth aligner ...

                    What we do is :
                    trimming + quality filter
                    bismark using bowtie2
                    BisSNP to improve alignment and call methylation
                    meth diff using bssmooth( we are testing it now)

                    Comment

                    • ge2sasag
                      Member
                      • Apr 2013
                      • 43

                      #11
                      OK I see, thanks for sharing your pipeline

                      I´m trying to get the fastq files from our collaborators, because I don´t really know how to get the bsseq object that I need for calling methylation with BSmooth with the files that they sent me...

                      Comment

                      • dpryan
                        Devon Ryan
                        • Jul 2011
                        • 3478

                        #12
                        Why don't you just use the read.bsmooth() function from bsseq? If nothing else, BSseq objects aren't particularly difficult to create yourself (just post here and I can tell you how).

                        Comment

                        • ge2sasag
                          Member
                          • Apr 2013
                          • 43

                          #13
                          Hi, thanks for answering I would be very grateful if you could help me to create the BSseq object to run the analysis.

                          The files that I have are the output from Bowtie2 and look like this (one file per sample):

                          chr1 564495 564496 1 1
                          chr1 564501 564502 1 1
                          chr1 565013 565014 1 1
                          chr1 565040 565041 1 1
                          chr1 565262 565263 0 8
                          chr1 565397 565398 1 5
                          chr1 565469 565470 2 2

                          $4 is methylation and $5 is coverage (according to what I´ve been told)

                          Is it better to create the BSseq object or to run the read.bsmooth function? I don´t know which is the difference sorry

                          Comment

                          • dpryan
                            Devon Ryan
                            • Jul 2011
                            • 3478

                            #14
                            Assuming that that's the output from BSmooth (I don't use it, it's too slow and inaccurate), the read.bsmooth() function will return a BSseq object.

                            Comment

                            • ge2sasag
                              Member
                              • Apr 2013
                              • 43

                              #15
                              This is the output from Bowtie2 alignment, it is not included in BSmooth, the one included in BSmooth is Merman

                              Comment

                              Latest Articles

                              Collapse

                              • SEQadmin2
                                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                                by SEQadmin2



                                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                                ...
                                10-14-2026, 09:55 AM
                              • SEQadmin2
                                New Genomics Technologies Take Aim at Long-Standing Limits
                                by SEQadmin2


                                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                                ...
                                09-28-2026, 10:25 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, 10-15-2026, 10:52 AM
                              0 responses
                              21 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 10-14-2026, 05:39 AM
                              0 responses
                              26 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 10-13-2026, 09:56 AM
                              0 responses
                              22 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 10-09-2026, 11:14 AM
                              0 responses
                              28 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...