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
                                  Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                                  by SEQadmin2



                                  CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                                  Despite this, “CRISPR helped turn genome editing from a specialized technique into
                                  ...
                                  07-31-2026, 11:01 AM
                                • SEQadmin2
                                  Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                                  by SEQadmin2


                                  Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                                  The systematic characterization of the human proteome has
                                  ...
                                  07-20-2026, 11:48 AM

                                ad_right_rmr

                                Collapse

                                News

                                Collapse

                                Topics Statistics Last Post
                                Started by SEQadmin2, 08-13-2026, 12:22 PM
                                0 responses
                                29 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 08-11-2026, 10:35 AM
                                0 responses
                                24 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 08-06-2026, 07:41 AM
                                0 responses
                                38 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 08-03-2026, 10:13 AM
                                0 responses
                                51 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...