Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • ng6 ng6
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Maintenance - Mise à jour mensuelle Lundi 6 Février entre 7h00 et 9h00

  • genotoul-bioinfo
  • ng6ng6
  • Issues
  • #191
Closed
Open
Issue created Nov 23, 2020 by Roxane Boyer@roboyer🐲

[ont_qc] Add {} for bash variable of more than one number

We had an issue recently where the command would not be correctly interpreted :

ng6@node103 /work/ng6/jflow/work/ont_qc/wf007676 $ cat /work/ng6/jflow/work/ont_qc/wf007676/.working/7c6b4a7d6d/_Stash/0/0/0/w0000021
#!/bin/sh
module load bioinfo/seqkit-v0.9.3
/usr/local/bioinfo/SeqKit/seqkit-v0.9.3/seqkit stats --all  $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14> $15

Was just adding a number behind an argument. Exemple, if $1 contains "unclassified.fastq.gz", then echo $15 will give : "unclassified.fastq.gz5".

We never noticed this issue before because we never had multiplexed run with more than 8 sample. To correct this issue, you should put the variable in this format : ${15}, like this :

/usr/local/bioinfo/SeqKit/seqkit-v0.9.3/seqkit stats --all ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}> ${15}

Thank you for your help 🦄

Assignee
Assign to
Time tracking