Unconfigured Ad

Collapse
X
 
  • Filter
  • 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
                                  Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                                  by SEQadmin2



                                  Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                                  ...
                                  Yesterday, 11:10 AM
                                • SEQadmin2
                                  Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                                  by SEQadmin2



                                  Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                                  There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                                  07-08-2026, 05:17 AM
                                • GATTACAT
                                  Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                                  by GATTACAT
                                  Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
                                  07-01-2026, 11:43 AM

                                ad_right_rmr

                                Collapse

                                News

                                Collapse

                                Topics Statistics Last Post
                                Started by SEQadmin2, Yesterday, 10:04 AM
                                0 responses
                                10 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 07-08-2026, 10:08 AM
                                0 responses
                                8 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 07-07-2026, 11:05 AM
                                0 responses
                                16 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 07-02-2026, 11:08 AM
                                0 responses
                                31 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...