# Selection account process nextflow

**URL:** <https://community.france-bioinformatique.fr/t/selection-account-process-nextflow/5948>\
**Category:** Nextflow\
**Tags:** nextflow, slurm\
**Created:** [Janvier 10, 2025, 3:20 UTC](https://community.france-bioinformatique.fr/t/selection-account-process-nextflow/5948 "2025-01-10T15:20:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpignolet](https://community.france-bioinformatique.fr/user_avatar/community.france-bioinformatique.fr/cpignolet/32/1030_2.png) [@cpignolet](https://community.france-bioinformatique.fr/u/cpignolet)\
**Post date:** [Janvier 10, 2025, 3:20 UTC](https://community.france-bioinformatique.fr/t/selection-account-process-nextflow/5948/1 "2025-01-10T15:20:20Z")

</div>

Bonjour,

J'aimerai pouvoir lancer mon pipe nextflow sur un account(projet) spécifique sans changer mon account par défaut.

 ![image](https://community.france-bioinformatique.fr/uploads/default/original/2X/d/d174267fac998ef9688d8972a2fe55c92ff297d8.png)

Si, je lance mon projet en faisant un sbatch -A 'pdacallpipe' run\_nextflow.sh (ce job est long en partition).  
Quand je fais un sacct (voir le screen), j'ai bien ce job 44348714 sur ce projet mais tous les jobs suivants qui sont lancer par mon pipe nextflow sont lancés sur mon projet par défaut qui est 'pdacrna'.

J'ai testé d'ajouter à mon .config nextflow dans executor, un clusterOptions comme suivant :

```executor
    name = 'slurm'
    queueSize = 20
    clusterOptions = '-A pdacallpipe'
}

```

j'ai toujours les process lancés par Nextflow sur mon account par defaut "pdacrna".

Comment je peux attribuer un account spécifique a mes process de mon pipe Nextflow sans changer mon account par défaut ?

Merci, bonne journée.  
Camille Pignolet.

---

<div class="post-metadata">

**Author:** ![Mag](https://community.france-bioinformatique.fr/user_avatar/community.france-bioinformatique.fr/mag/32/338_2.png) [@Mag](https://community.france-bioinformatique.fr/u/Mag)\
**Post date:** [Janvier 14, 2025, 10:40 UTC](https://community.france-bioinformatique.fr/t/selection-account-process-nextflow/5948/2 "2025-01-14T10:40:25Z")

</div>

Bonjour, pouvez-vous partager votre run\_nextflow.sh et vos fichiers de configuration?

---

<div class="post-metadata">

**Author:** ![cpignolet](https://community.france-bioinformatique.fr/user_avatar/community.france-bioinformatique.fr/cpignolet/32/1030_2.png) [@cpignolet](https://community.france-bioinformatique.fr/u/cpignolet)\
**Post date:** [Janvier 14, 2025, 3:53 UTC](https://community.france-bioinformatique.fr/t/selection-account-process-nextflow/5948/3 "2025-01-14T15:53:57Z")

</div>

Bonjour,

Je run le nextflow en faisant :

```auto
sbatch -A pdacallpipe /shared/projects/pdacallpipe/RNApipeline/runIFBjob.sh /shared/projects/pdacallpipe/RNApipeline/fullPairedEnd.nf /shared/projects/pdacallpipe/RNApipeline/av_pdac_mdn.config /shared/projects/pdacallpipe/RNApipeline/allsamlist.txt

```

via mon runIFBjob.sh qui est :

```auto
#SBATCH --partition=long
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --mem-per-cpu=5GB
#SBATCH -c 1

module load nextflow/24.04.1

ROOTDIR="/shared/projects/pdacrna/"
PROJECTID="exemple"
INPUT_FQ_DIR=$ROOTDIR"/fastq_merged_lanes"
REZ_DIR=$ROOTDIR"/Results/"$PROJECTID"/"
REF="/shared/projects/pdacrna/ensembl_v113_GRCh38"`
nextflow -c $2 run $1 -resume -with-report --sampleInputDir $INPUT_FQ_DIR --ref $REF --outputdir $REZ_DIR --sampleList $3

```

et mon config nextflow :

```auto
process {
      withName: doSTAR{
        cpus = 12
        container = 'genehetx/genehetx-rnaseq:v1.6.0'
        memory = 70.GB
        disk = 500.GB
    }
     withName:fastqc{
        cpus = 4
        container = 'quay.io/biocontainers/fastqc:0.12.1--hdfd78af_0'
        memory = 8.GB
        disk = 200.GB
    }

        errorStrategy = { task.exitStatus==14 ? 'retry' : 'terminate' }
    maxRetries = 2

}
// Enable sigularity here
singularity {
    enabled = true
    singularity.autoMounts = true
    cacheDir = "singularity/"
    path = "/usr/bin/singularity"
}
report.enabled = true

executor {
    name = 'slurm'
    queueSize = 20
    clusterOptions = '-A rnapipe'
}

```

Le nextflow lance la totalité des process sur mon projet par défaut qui est pdacrna alors que je fais un sbatch -A pdacallpipe.  
Seul le job qui lance le nextflow se lance sur le pdacallpipe.

Merci, bonne journée.  
Camille Pignolet.
