Re-organize CBRAIN support files of task workdirs in a subfolder

Aperta
#1,625 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
ruby
Ambito
backend

Direzione di ricerca

The payload names no source files, so start by finding where CBRAIN prepares a task's work directory and writes the dot-prefixed support files (such as .qsub.*, .science.*, .runtime_info.*). Then find the unarchiving code that would need to move older files into a .cbrain folder. Done means new tasks keep their support files in .cbrain, and archived tasks can still be reactivated. The issue is an open design proposal with no maintainer decision yet, so check with maintainers before writing code.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Admin Priority: Normal Refactoring

The work directory of a task is initially created empty, and then CBRAIN goes on to prepare it for submission to a computing cluster. The preparations consists in setting up a bunch of files. These files generally fall into two groups:

  1. data files prepared as inputs for the tool
  2. special CBRAIN support and administrative files

Normally, the CBRAIN support files are all created with names that start with a period, to make them invisible to casual "ls" commands and tools that perform basic globs (e.g. with '*').

As an example, here's the content of a work directory for a completed task, as inspected by shell commands. There are 5 input files, and 15 CBRAIN support files.

# cbuser-Ensemblex-T3249731$ ls

pooled_bam.bam      pooled_barcodes.tsv  reference.vcf
pooled_bam.bam.bai  pooled_samples.vcf

# cbuser-Ensemblex-T3249731$ ls -A

.boutiques.3249731-1.json               .runtime_info.sh
.container-3249731.img                  .science.Ensemblex.3249731-1.sh
.invoke.3249731-1.json                  .science.err.Ensemblex.3249731-1
.qsub.Ensemblex.3249731-1.sh            .science.out.Ensemblex.3249731-1
.qsub.err.Ensemblex.3249731-1           .singularity.3249731-1.sh
.qsub.err.Ensemblex.3249731-1-combined  pooled_bam.bam
.qsub.exit.Ensemblex.3249731-1          pooled_bam.bam.bai
.qsub.out.Ensemblex.3249731-1           pooled_barcodes.tsv
.qsub.out.Ensemblex.3249731-1-combined  pooled_samples.vcf
.runtime_info.Ensemblex.3249731-1.kv    reference.vcf

I am suggesting we could create a folder named ".cbrain" where all these support files would go in instead.

Compatibility consideration: changing this convention would mean that older archived tasks could not be re-activated. That could be fixed if the unarchiving code for tasks was extended to detect that the admin files were stored in the task folder, and then create a ".cbrain" folder and move these older files to it.

Anyway, the end result would look like this, again from a shell perspective:

# cbuser-Ensemblex-T3249731$ ls -A

.cbrain             pooled_barcodes.tsv
pooled_bam.bam      pooled_samples.vcf
pooled_bam.bam.bai  reference.vcf

# cbuser-Ensemblex-T3249731$ ls -A .cbrain

.boutiques.3249731-1.json               .qsub.out.Ensemblex.3249731-1-combined
.container-3249731.img                  .runtime_info.Ensemblex.3249731-1.kv
.invoke.3249731-1.json                  .runtime_info.sh
.qsub.Ensemblex.3249731-1.sh            .science.Ensemblex.3249731-1.sh
.qsub.err.Ensemblex.3249731-1           .science.err.Ensemblex.3249731-1
.qsub.err.Ensemblex.3249731-1-combined  .science.out.Ensemblex.3249731-1
.qsub.exit.Ensemblex.3249731-1          .singularity.3249731-1.sh
.qsub.out.Ensemblex.3249731-1
Lingua principale
Ruby
Stelle
82
Fork
64
Merge medio
6g 13h
PR unite (30g)
36

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aces/cbrain

Tutte le issue di aces/cbrain

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.