Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cmccabe
    Senior Member
    • Jul 2012
    • 355

    #1

    GATK convert SAM to BAM

    Following the GATK example but the spacing seems off in the command. Is it and how do I correct it? Thanks

    Code:
    java -jar picard.jar SortSam \ 
         INPUT=/home/cmccabe/IDP/mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.sam \ 
         OUTPUT=/home/cmccabe/Desktop/NGS/picard-tools-1.139/sorted_mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.bam  \ 
         SORT_ORDER=coordinate
  • mastal
    Senior Member
    • Mar 2009
    • 666

    #2
    the spacing looks OK to me.

    Comment

    • cmccabe
      Senior Member
      • Jul 2012
      • 355

      #3
      Here is what it looks like in the ubuntu terminal:

      Code:
      cmccabe@DTV-A5211QLM:~$ java -jar picard.jar SortSam \ 
      Error: Unable to access jarfile picard.jar
      cmccabe@DTV-A5211QLM:~$      INPUT=/home/cmccabe/IDP/mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.sam \ 
       : command not found
      cmccabe@DTV-A5211QLM:~$      OUTPUT=/home/cmccabe/Desktop/NGS/picard-tools-1.139/sorted_mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.bam  \ 
       : command not found
      cmccabe@DTV-A5211QLM:~$      SORT_ORDER=coordinate
      cmccabe@DTV-A5211QLM:~$ echo $PATH
      /home/cmccabe/Desktop/NGS/bedops-2.14.4/bin:/home/cmccabe/Desktop/NGS/samtools-1.2:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/cmccabe/Desktop/NGS/bedtools2-25.0/bin:/home/cmccabe/Desktop/NGS/bbmap-35.59:/home/cmccabe/Desktop/NGS/FastQC-0.11.4:/home/cmccabe/Desktop/NGS/picard-tools-1.139
      Thank you .

      Comment

      • blancha
        Senior Member
        • May 2013
        • 367

        #4
        Just delete the extra white spaces.
        You can use a text editor that displays white space to make your life easier.
        I like TextWranger on Mac, which has the option to display white spaces.

        Code:
        java -jar picard.jar SortSam \
        INPUT=/home/cmccabe/IDP/mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.sam \
        OUTPUT=/home/cmccabe/Desktop/NGS/picard-tools-1.139/sorted_mapped_unmatched_adapter_removed_quality_trimmed_NA12878-NextSeq-S1_R1_and_R2.bam \
        SORT_ORDER=coordinate

        Comment

        • cmccabe
          Senior Member
          • Jul 2012
          • 355

          #5
          I use notepad++ with ubuntu and it is hard to see the spaces in yellow (not sure why this color was used). Thank you .

          Comment

          Latest Articles

          Collapse

          • kinpict.com
            Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by kinpict.com
            The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
            Today, 06:37 PM
          • SEQadmin2
            16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
            by SEQadmin2





            NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
            10-30-2026, 06:46 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 11-12-2026, 07:59 AM
          0 responses
          28 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-05-2026, 09:25 AM
          0 responses
          35 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 11-03-2026, 11:54 AM
          2 responses
          56 views
          0 reactions
          Last Post kinpict.com  
          Started by SEQadmin2, 10-28-2026, 09:57 AM
          0 responses
          175 views
          0 reactions
          Last Post SEQadmin2  
          Working...