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
            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 on Modified Bases...
            Yesterday, 07:01 AM
          • seqadmin
            Current Approaches to Protein Sequencing
            by seqadmin


            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
            04-04-2024, 04:25 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          45 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          46 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          39 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          55 views
          0 likes
          Last Post seqadmin  
          Working...
          X