Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • New to BAsh. Encountered an error

    This is the script which I made

    #!/bin/bash -l
    ##PBS Directives
    #PBS -q default
    #PBS -l nodes=1pn=4
    #PBS -l mem=30GB
    #PBS -l walltime=60:00:00
    #PBS -A ccg-ngs
    #PBS -m abe
    #PBS -M .......
    #PBS -o /scratch/ccg-ngs/tmp/v_stdout/${PBS_JOBNAME}.o${PBS_JOBID}
    #PBS -e /scratch/ccg-ngs/tmp/v_stderr/${PBS_JOBNAME}.e${PBS_JOBID}

    #o=$1
    #i=$2
    /projects/ccg-ngs/hthiele0/sw/delly_v0.0.9/delly -o $o $i

    And I submit the job as
    qsub -v o=/scratch/ccg-ngs/tmp/vishal/results/delly/delly2jfidhild.txt,i=/scratch/ccg-ngs/tmp/vishal/results/mrsfast/lag/final.bam /scratch/ccg-ngs/tmp/vishal/results/delly/sample2/delly1.sh



    This doesn't give any output. Even the v_stderr file is empty.
    When I give the path in -o and input instead of $o and $i, the code works.
    What am I doing wrong?

  • #2
    Originally posted by vishal.rossi View Post
    This is the script which I made

    #!/bin/bash -l
    ...
    #o=$1
    #i=$2
    /projects/ccg-ngs/hthiele0/sw/delly_v0.0.9/delly -o $o $i

    And I submit the job as
    qsub -v o=/scratch/ccg-ngs/tmp/vishal/results/delly/delly2jfidhild.txt,i=/scratch/ccg-ngs/tmp/vishal/results/mrsfast/lag/final.bam /scratch/ccg-ngs/tmp/vishal/results/delly/sample2/delly1.sh

    When I give the path in -o and input instead of $o and $i, the code works.
    What am I doing wrong?
    Have you tried not commenting out the "o=$1" and "i=$2" lines? I would assume that those won't be processed by qsub (I use slurm, but assume that qsub is similar enough).

    Comment


    • #3
      Originally posted by dpryan View Post
      Have you tried not commenting out the "o=$1" and "i=$2" lines? I would assume that those won't be processed by qsub (I use slurm, but assume that qsub is similar enough).

      I am sure that #o and #i works and are taken as variables and not comments . But I will try the thing which you suggested and post the result.
      Thank you

      Comment


      • #4
        Originally posted by vishal.rossi View Post
        I am sure that #o and #i works and are taken as variables and not comments . But I will try the thing which you suggested and post the result.
        Thank you
        Are you sure? As far as I know, the syntax of passing info to qsub in scripts follows #$ ..

        What does 'qstat -j yourJobID' say?
        savetherhino.org

        Comment


        • #5
          ok people, the problem is solved

          #!/bin/bash -l
          ##PBS Directives
          #PBS -q default
          #PBS -l nodes=1pn=4
          #PBS -l mem=30GB
          #PBS -l walltime=60:00:00
          #PBS -A ccg-ngs
          #PBS -m abe
          #PBS -M .......
          #PBS -o /scratch/ccg-ngs/tmp/v_stdout/${PBS_JOBNAME}.o${PBS_JOBID}
          #PBS -e /scratch/ccg-ngs/tmp/v_stderr/${PBS_JOBNAME}.e${PBS_JOBID}

          out=$output
          inp=$input
          /projects/ccg-ngs/hthiele0/sw/delly_v0.0.9/delly -o $out $inp

          while submitting the job:
          qsub -v output=/scratch/ccg-ngs/tmp/vishal/results/delly/delly2jfidhild.txt,input=/scratch/ccg-ngs/tmp/vishal/results/mrsfast/lag/final.bam /scratch/ccg-ngs/tmp/vishal/results/delly/sample2/delly1.sh

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Latest Developments in Precision Medicine
            by seqadmin



            Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

            Somatic Genomics
            “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
            05-24-2024, 01:16 PM
          • seqadmin
            Recent Advances in Sequencing Analysis Tools
            by seqadmin


            The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
            05-06-2024, 07:48 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 06:55 AM
          0 responses
          12 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-30-2024, 03:16 PM
          0 responses
          24 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-29-2024, 01:32 PM
          0 responses
          29 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-24-2024, 07:15 AM
          0 responses
          215 views
          0 likes
          Last Post seqadmin  
          Working...
          X