Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #16
    Originally posted by cmccabe View Post
    Here is the error:

    Code:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Users\cmccabe>cd "C:\Users\cmccabe\Desktop\Ion_Torrent_ Software\bedtools-2.1
    7.0"  (files here)
    
    C:\Users\cmccabe\Desktop\Ion_Torrent_ Software\bedtools-2.17.0>[COLOR="Red"][SIZE="2"]bin\bedtools[/SIZE][/COLOR] bedToBam -i Ampli
    cons.bed -g hg19_genome.txt > Amplicons.bam
    'bedToBam' is not recognized as an internal or external command,
    operable program or batch file.
    Thanks.
    I think you left out the executable program name "bedtools" when issuing the command. See the highlight in red.

    Comment

    • cmccabe
      Senior Member
      • Jul 2012
      • 355

      #17
      $ cd /cygdrive/c/Users/cmccabe/Desktop/Ion_Torrent_ Software/bedtools-2.17.0

      $ bin/bamToBed -i Amplicons.bed -g hg19_genome.txt > Amplicons.bam

      The command runs in perl however the input Amplicons.bed in 44kb and the output amplicons.bam is 0kb. That doesent seem right and below is a couple lines from the BED file. Thanks.

      chr1 2160290 2160475 AMPL2688828352 . SKI
      chr1 2160480 2160634 AMPL2688829530 . SKI

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #18
        Should you not be running "bedToBam" if you are generating a BAM file?

        Comment

        • cmccabe
          Senior Member
          • Jul 2012
          • 355

          #19
          What I am trying to do is to calculate predicted off-target reads based on a BED file?

          One sugesstion was to use bedToBam (from bedtools) followed by Picard's CalculateHSMetrics
          Thanks.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #20
            Originally posted by cmccabe View Post
            What I am trying to do is to calculate predicted off-target reads based on a BED file?

            One sugesstion was to use bedToBam (from bedtools) followed by Picard's CalculateHSMetrics
            Thanks.
            In post #17 you had "bamToBed" listed instead of "bedToBam". Perhaps a typo or a wrong command?

            Comment

            • cmccabe
              Senior Member
              • Jul 2012
              • 355

              #21
              bed2bam

              I switched the command to bedToBam and got the same result. Maybe there is something wrong with the format of the BED file?

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #22
                Since you are trying to do this on windows there could be some issue with file formats etc. It would be tough to diagnose them through the forum.

                Do you think you would be up to trying this through the cygwin terminal (instead of windows terminal)?
                Last edited by GenoMax; 07-10-2013, 06:29 AM.

                Comment

                • cmccabe
                  Senior Member
                  • Jul 2012
                  • 355

                  #23
                  bed2bam

                  I am using the Cygwin Terminal to run the command. Thank you.

                  Comment

                  • GenoMax
                    Senior Member
                    • Feb 2008
                    • 7142

                    #24
                    Can you try the following in cygwin terminal?
                    Code:
                    $ dos2unix Amplicons.bed
                    $ dos2unix hg19_genome.txt
                    This should reformat the files to unix file format.

                    Try running your bedToBam command again.

                    Comment

                    • cmccabe
                      Senior Member
                      • Jul 2012
                      • 355

                      #25
                      bed2bam

                      The file is is still 0kb, should I re-install cygwi and re-compile bedtools?

                      Comment

                      • Heisman
                        Senior Member
                        • Dec 2010
                        • 534

                        #26
                        Is your bed file tab-delimited? The two lines you posted don't appear to be although tabs may have been lost by copying/pasting.

                        Comment

                        • cmccabe
                          Senior Member
                          • Jul 2012
                          • 355

                          #27
                          bed2bam

                          Yes, the format of the BED is Tab-deliminated.

                          Comment

                          • GenoMax
                            Senior Member
                            • Feb 2008
                            • 7142

                            #28
                            Once I explicitly changed the format in the example you pasted I was able to create the bam file.

                            What about your hg19_genome file?

                            Comment

                            • cmccabe
                              Senior Member
                              • Jul 2012
                              • 355

                              #29
                              bed2bam

                              The hg19_genome is also tab-deliminated.

                              Comment

                              • cmccabe
                                Senior Member
                                • Jul 2012
                                • 355

                                #30
                                bed2Bam

                                I re-compiled in cygwin

                                did dos2unix Amplicons.bed
                                dos2unix hg19_genome.txt

                                both of those files are tab- deliminated

                                and the commands I used in Cygwin:

                                $ cd "/cygdrive/c/Users/cmccabe/Desktop/Ion_Torrent_ Software/bedtools-2.17.0"

                                $ bin/bamToBed -i Amplicons.bed -g hg19_genome.txt > Amplicons.bam

                                Amplicons.bed (went from 44kb to 43kb)
                                chr1 2160290 2160475 SKI . AMPL2688828352
                                chr1 2160480 2160634 SKI . AMPL2688829530
                                chr1 2160632 2160738 SKI . AMPL2688828058

                                hg19_genome.txt (1kb) - acc chromosomes and lenghths are in this file
                                chr1 249,250,621
                                chr2 243,199,373

                                Amplicons.bam is still 0kb and not working.

                                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, 10:52 AM
                                0 responses
                                12 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-14-2026, 05:39 AM
                                0 responses
                                19 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-13-2026, 09:56 AM
                                0 responses
                                19 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-09-2026, 11:14 AM
                                0 responses
                                27 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...