Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bioinfo_utils
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Blaise LI
bioinfo_utils
Commits
b3715084
Commit
b3715084
authored
1 year ago
by
Blaise Li
Browse files
Options
Downloads
Patches
Plain Diff
TMPDIR in the cluster is in /local/scratch/tmp
parent
d95472b6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
singularity/run_pipeline.sh
+2
-2
2 additions, 2 deletions
singularity/run_pipeline.sh
singularity/workflows_shell.sh
+1
-1
1 addition, 1 deletion
singularity/workflows_shell.sh
singularity/wrap_in_container.sh
+1
-1
1 addition, 1 deletion
singularity/wrap_in_container.sh
with
4 additions
and
4 deletions
singularity/run_pipeline.sh
+
2
−
2
View file @
b3715084
...
...
@@ -114,7 +114,7 @@ cluster_opts="--cluster \\\'sbatch --mem={cluster.ram} --cpus-per-task={threads}
#cluster_opts="--cores 20 --cluster \'sbatch --mem={cluster.ram} --cpus-per-task={threads} --job-name={rule}-{wildcards} --qos=${QOS} --part=${PART} --mpi=none\' -j 300"
#cmd="APPTAINERENV_USER=${USER} apptainer run --cleanenv -B /opt/hpc/slurm -B /var/run/munge -B /pasteur ${container} ${PROGNAME} ${pipeline_config} ${cluster_opts} --cluster-config ${cluster_config}"
#cmd="APPTAINERENV_USER=${USER} apptainer run --cleanenv -B /opt/hpc/slurm -B /var/run/munge -B /pasteur ${container} ${PROGNAME} $@"
cmd
=
"APPTAINERENV_USER=
${
USER
}
apptainer run -B /opt/hpc/slurm -B /var/run/munge -B /pasteur
${
container
}
${
PROGNAME
}
$@
${
cluster_opts
}
"
cmd
=
"APPTAINERENV_USER=
${
USER
}
apptainer run -B /opt/hpc/slurm -B /var/run/munge -B /pasteur
-B /local
${
container
}
${
PROGNAME
}
$@
${
cluster_opts
}
"
# This script can be called from various symbolic links.
# The name of the link determines which snakefile to use.
...
...
@@ -127,6 +127,6 @@ cmd="APPTAINERENV_USER=${USER} apptainer run -B /opt/hpc/slurm -B /var/run/munge
# that are expected to be in a specific location there.
# singularity run -B /pasteur -B /run/shm:/run/shm ${container} ${PROGNAME} $@
#[[ $(hostname) = "pisa" ]] && SINGULARITYENV_USER=${USER} singularity run --cleanenv -B /pasteur -B /run/shm:/run/shm ${container} ${PROGNAME} $@ || sbatch --qos=${QOS} --part=${PART} --wrap="${cmd}"
[[
$(
hostname
)
=
"pisa"
]]
&&
SINGULARITYENV_USER
=
${
USER
}
singularity run
-B
/pasteur
-B
/run/shm:/run/shm
${
container
}
${
PROGNAME
}
$@
||
sbatch
--qos
=
${
QOS
}
--part
=
${
PART
}
--wrap
=
"
${
cmd
}
"
[[
$(
hostname
)
=
"pisa"
]]
&&
SINGULARITYENV_USER
=
${
USER
}
singularity run
-B
/pasteur
-B
/local
-B
/run/shm:/run/shm
${
container
}
${
PROGNAME
}
$@
||
sbatch
--qos
=
${
QOS
}
--part
=
${
PART
}
--wrap
=
"
${
cmd
}
"
exit
0
This diff is collapsed.
Click to expand it.
singularity/workflows_shell.sh
+
1
−
1
View file @
b3715084
...
...
@@ -77,6 +77,6 @@ case ${1} in
# -B /pasteur will mount /pasteur in the container
# so that it finds the Genome configuration and gene lists
# that are expected to be in a specific location there.
[[
$(
hostname
)
=
"pisa"
]]
&&
SINGULARITYENV_USER
=
${
USER
}
singularity shell
-B
/pasteur
-B
/run/shm:/run/shm
${
container
}
$@
||
APPTAINERENV_USER
=
${
USER
}
apptainer shell
-B
/opt/hpc/slurm
-B
/var/run/munge
-B
/pasteur
${
container
}
$@
[[
$(
hostname
)
=
"pisa"
]]
&&
SINGULARITYENV_USER
=
${
USER
}
singularity shell
-B
/pasteur
-B
/local
-B
/run/shm:/run/shm
${
container
}
$@
||
APPTAINERENV_USER
=
${
USER
}
apptainer shell
-B
/opt/hpc/slurm
-B
/var/run/munge
-B
/pasteur
-B
/local
${
container
}
$@
;;
esac
This diff is collapsed.
Click to expand it.
singularity/wrap_in_container.sh
+
1
−
1
View file @
b3715084
...
...
@@ -71,6 +71,6 @@ fi
echo
"
${
PROGNAME
}
found
${
container
}
"
APPTAINERENV_USER
=
${
USER
}
apptainer
exec
-B
/pasteur
${
container
}
$@
APPTAINERENV_USER
=
${
USER
}
apptainer
exec
-B
/pasteur
-B
/local
${
container
}
$@
exit
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment