Announcement

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

  • Picard tools merge sam isssues ;;;;;;

    Hi All,
    I am trying to use merge sam with script so that I can automate this for several tissues . Command is working when I am giving this in command line
    ################################################
    !/bin/bash

    FILES=''

    for file in $(find /raid/development/anusha/DGFDATA_Tissue_DATA/brain -name \*.sorted.bam)
    do
    FILES="$FILES $file"

    done
    #echo $FILES

    java -Xmx2g -jar /raid/software/src/picard-tools-1.53/MergeSamFiles.jar I=$FILESO=/raid/development/anusha/DGFDATA_Tissue_DATA/brain/brain.merge.bam AS=FALSE USE_THREADING=TRUE VALIDATION_STRINGENCY=SILENT&
    #############################################
    anusha@cn1:/raid/development/anusha/DGFDATA_Tissue_DATA> echo $FILES

    /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203405.sorted.bam /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203400.sorted.bam /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203406.sorted.bam /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203407.sorted.bam /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203408.sorted.bam /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203404.sorted.bam /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203401.sorted.bam /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203402.sorted.bam /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203403.sorted.bam /raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203409.sorted.bam

    ###########################################

    ERROR: Invalid argument '/raid/development/anusha/DGFDATA_Tissue_DATA/brain/SRR203400.sorted.bam'

    Merges multiple SAM/BAM files into one file.
    ######################################
    I am getting error like this

    Hope to help on this . Thanks in advance .

  • #2
    For one thing, you're missing a space in your script, as you pasted it.

    I=$FILESO=/raid/development/anusha/DGFDATA_Tissue_DATA/brain/brain.merge.bam

    ---

    Additional comments.

    Picard-tools 1.53 dates back to 2011.
    The current version is Picard-tools 1.114.

    I find Python scripts easier to read, and maintain, but perhaps bash is appropriate for such a short script.
    Last edited by blancha; 06-10-2014, 11:05 PM.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Advanced Methods for the Detection of Infectious Disease
      by seqadmin




      The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
      ...
      11-27-2023, 01:15 PM
    • seqadmin
      Strategies for Investigating the Microbiome
      by seqadmin




      Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...
      11-09-2023, 07:02 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Yesterday, 08:26 AM
    0 responses
    11 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, Yesterday, 08:12 AM
    0 responses
    12 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 11-27-2023, 08:12 AM
    0 responses
    19 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 11-22-2023, 09:29 AM
    1 response
    60 views
    0 likes
    Last Post VilliamPast  
    Working...
    X