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
            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
          • seqadmin
            Essential Discoveries and Tools in Epitranscriptomics
            by seqadmin




            The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
            04-22-2024, 07:01 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Yesterday, 06:35 AM
          0 responses
          15 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-09-2024, 02:46 PM
          0 responses
          21 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-07-2024, 06:57 AM
          0 responses
          18 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-06-2024, 07:17 AM
          0 responses
          19 views
          0 likes
          Last Post seqadmin  
          Working...
          X