Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bedtools error

    I am getting the below error using bedtoold 2.20. The files are too large to attach. Thank you.

    Code:
     dnascopev@ubuntu:~$ cd "/media/9C168A3F168A1A82"
    
    dnascopev@ubuntu:/media/9C168A3F168A1A82$ coverageBed -hist -abam IonXpress_001.bam -b LCH_IDT.bed | grep ^all > output.txt
    Unexpected file format.  Please use tab-delimited BED, GFF, or VCF. Perhaps you have non-integer starts or ends at line 1?

  • #2
    What're the first couple lines of LCH_IDT.bed?

    Comment


    • #3
      There are 15 lines in that file sorted: The first 3 lines are below. Thanks.

      chr12 112884064 112884217
      chr12 112888106 112888331
      chr12 112890983 112891206

      Comment


      • #4
        The most common cause of this is either not using unix line endings (i.e., using \r) or having an extraneous space after a tab. The simplest thing is to just look at the bed file in a hex editor. You could also just "od -c LCH_IDT.bed" if you don't have a hex editor handy. A tab will show up as "\t" and a proper like ending will be "\n". Aside from those you should only see regular characters.

        Comment


        • #5
          Thank you, that was it... I seem to do that a lot, I guess I need to use Linux more and Windows less .

          Comment


          • #6
            For the record... To quickly visualize non-printable characters you could use
            Code:
            cat -vet
            . What you want to see is that tab characters are marked by ^I and line endings by $. If lines end in ^M$ you have windows line endings "carriage return + line feed". E.g.:

            Code:
            cat -vet ds069_293T_GFP_2.merge_peaks.bed | head
            chr1^I713939^I714220^Ids069_293T_GFP_2.merge_peak_1^I8.91011$
            chr1^I762786^I762945^Ids069_293T_GFP_2.merge_peak_2^I6.57885$
            chr1^I805256^I805387^Ids069_293T_GFP_2.merge_peak_3^I3.11743$
            chr1^I840046^I840238^Ids069_293T_GFP_2.merge_peak_4^I3.39438$
            chr1^I856585^I856713^Ids069_293T_GFP_2.merge_peak_5^I7.55995$
            chr1^I859179^I859369^Ids069_293T_GFP_2.merge_peak_6^I13.05689$

            Comment


            • #7
              Thank you .

              Comment

              Latest Articles

              Collapse

              • seqadmin
                Essential Discoveries and Tools in Epitranscriptomics
                by seqadmin


                The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
                Yesterday, 07:01 AM
              • seqadmin
                Current Approaches to Protein Sequencing
                by seqadmin


                Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
                04-04-2024, 04:25 PM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by seqadmin, 04-11-2024, 12:08 PM
              0 responses
              39 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-10-2024, 10:19 PM
              0 responses
              41 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-10-2024, 09:21 AM
              0 responses
              35 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-04-2024, 09:00 AM
              0 responses
              55 views
              0 likes
              Last Post seqadmin  
              Working...
              X