Unconfigured Ad

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

    #16
    I have now sorted using:

    $ sort -k1,1 -k2,2n sample_RB49.bedGraph > sample_RB49_sorted.bedGraph

    and it now says:
    chrMT is not found in chromosome sizes file

    Comment

    • GenoMax
      Senior Member
      • Feb 2008
      • 7142

      #17
      If you posted the entire contents of the chrom.sizes file above then it does not seem to contain chrMT.

      Edit: I think the discrepancy is in the name. Your file probably has chrMT, where as the chrom.sizes file refers to chrM. UCSC likely will expect chrM so you could edit that in your own file. If you don't care about chrM data then you could edit the chrom.sizes file (that data will then not display).
      Last edited by GenoMax; 07-01-2015, 07:54 AM.

      Comment

      • Hparker
        Member
        • Dec 2014
        • 42

        #18
        It includes chrM just not chrMT...

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #19
          Originally posted by Hparker View Post
          It includes chrM just not chrMT...
          See my last post for an edit.

          Comment

          • Hparker
            Member
            • Dec 2014
            • 42

            #20
            I used the following to try and replace chrM with chrMT but it did not work:
            sed 's/chrM/chrMT/' hg19.chrom.sizes

            is there a better alternative?

            Comment

            • Hparker
              Member
              • Dec 2014
              • 42

              #21
              I don't understand what is wrong with the chromsizes file

              $ wget http://hgdownload.cse.ucsc.edu/admin...etchChromSizes
              $ chmod 777 fetchChromSizes
              $ ./fetchChromSizes hg19 > hg19.chrom.sizes

              I again got an error, but this time with chr7:

              type=bedGraphchr7 is not found in chromosome sizes file

              Please help!

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #22
                Originally posted by Hparker View Post
                I used the following to try and replace chrM with chrMT but it did not work:
                sed 's/chrM/chrMT/' hg19.chrom.sizes

                is there a better alternative?
                Do this

                Code:
                $ sed --in-place=.bak s'/chrM/chrMT/' hg19.chrom.sizes
                This will edit the file and make a backup copy (.bak) at the same time. Let us see if this fixes the error.

                Comment

                • Hparker
                  Member
                  • Dec 2014
                  • 42

                  #23
                  I am still having the problem with creating the bigWigs - this is the error I get:

                  type=bedGraphchr7 is not found in chromosome sizes file

                  Comment

                  • GenoMax
                    Senior Member
                    • Feb 2008
                    • 7142

                    #24
                    Show us the first 10 lines of your bedGraph file
                    Code:
                    $ head -10 sample_CO115.bedGraph

                    Comment

                    • Hparker
                      Member
                      • Dec 2014
                      • 42

                      #25
                      type=bedGraphchr7 12784 12784 100
                      chr7 12948 12948 100
                      chr7 12962 12962 0
                      chr7 13071 13071 100
                      chr7 13107 13107 100
                      chr7 13119 13119 100
                      chr7 19750 19750 50
                      chr7 19751 19751 100
                      chr7 19771 19771 50
                      chr7 19772 19772 0

                      It appears to have type=bedGraph at the beginning of the file?

                      Comment

                      • GenoMax
                        Senior Member
                        • Feb 2008
                        • 7142

                        #26
                        Originally posted by Hparker View Post
                        type=bedGraphchr7 12784 12784 100
                        chr7 12948 12948 100
                        chr7 12962 12962 0
                        chr7 13071 13071 100
                        chr7 13107 13107 100
                        chr7 13119 13119 100
                        chr7 19750 19750 50
                        chr7 19751 19751 100
                        chr7 19771 19771 50
                        chr7 19772 19772 0

                        It appears to have type=bedGraph at the beginning of the file?
                        Right but it has to be on a separate line by itself.

                        Edit so the file has a return:

                        Code:
                        type=bedGraph
                        chr7	12784	12784	100
                        chr7	12948	12948	100

                        Comment

                        • Hparker
                          Member
                          • Dec 2014
                          • 42

                          #27
                          Ah great! Can you edit it manually? Or is there code?

                          Comment

                          • GenoMax
                            Senior Member
                            • Feb 2008
                            • 7142

                            #28
                            You can edit manually (TextEdit or TextWrangler on Mac).

                            Comment

                            • Hparker
                              Member
                              • Dec 2014
                              • 42

                              #29
                              Because I am now getting these errors:
                              Expecting at least 3 words line 1321892 of sample_CO115.bedGraph got 1

                              This is quite time consuming going through all the data to find where there are gaps.. is there a way of doing this in unix?

                              Thanks a lot for your help!

                              Comment

                              • GenoMax
                                Senior Member
                                • Feb 2008
                                • 7142

                                #30
                                Is that the last line in your file (a blank line perhaps)?

                                Code:
                                $ wc -l sample_CO115.bedGraph

                                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, Yesterday, 11:13 AM
                                0 responses
                                16 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, Yesterday, 10:48 AM
                                0 responses
                                17 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-15-2026, 10:52 AM
                                0 responses
                                35 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-14-2026, 05:39 AM
                                0 responses
                                42 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...