Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scRNA_analysis_pipeline
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Astrocyte
Workflows
Strand Lab
scRNA_analysis_pipeline
Commits
69dbf2fa
There was an error fetching the commit references. Please try again later.
Commit
69dbf2fa
authored
3 months ago
by
John Lafin
Browse files
Options
Downloads
Patches
Plain Diff
Enable vizapp
parent
85505205
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
astrocyte_pkg.yml
+18
-0
18 additions, 0 deletions
astrocyte_pkg.yml
vizapp/run_container.sh
+50
-0
50 additions, 0 deletions
vizapp/run_container.sh
with
68 additions
and
0 deletions
astrocyte_pkg.yml
+
18
−
0
View file @
69dbf2fa
...
...
@@ -160,3 +160,21 @@ workflow_parameters:
metadata file that lists the batch variable (i.e, "sample"). If only
one sample is present or batch correction is not desired, leave this
field blank.
# -----------------------------------------------------------------------------
# SHINY APP CONFIGURATION
# -----------------------------------------------------------------------------
# Remember - The vizapp is always 'vizapp/server.R' 'vizapp/ui.R'
# The workflow must publish all final output into $baseDir
# List of any full path of the containers
vizapp_containers
:
-
docker://git.biohpc.swmed.edu:5050/astrocyte/workflows/strand-lab/cellxgene/cellxgene_vip:3.1-small
# List of any path of the scripts in 'your_astrocyte_workflow/vizapp' folder to run the containers
vizapp_container_runscripts
:
-
run_container.sh
# Partition to use for Vizapp jobs
vizapp_slurm_partition
:
256GB,512GB
This diff is collapsed.
Click to expand it.
vizapp/run_container.sh
0 → 100755
+
50
−
0
View file @
69dbf2fa
#!/bin/bash
# Modified from https://git.biohpc.swmed.edu/CRI/scVizIt/-/blob/f18970aa0354c41f616b5308b9a7279ba79d7496/vizapp/run_container.sh
# Get the parent path of this script
SOURCE
=
${
BASH_SOURCE
[0]
}
while
[
-L
"
$SOURCE
"
]
;
do
# resolve $SOURCE until the file is no longer a symlink
DIR
=
$(
cd
-P
"
$(
dirname
"
$SOURCE
"
)
"
>
/dev/null 2>&1
&&
pwd
)
SOURCE
=
$(
readlink
"
$SOURCE
"
)
[[
$SOURCE
!=
/
*
]]
&&
SOURCE
=
$DIR
/
$SOURCE
# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR
=
$(
cd
-P
"
$(
dirname
"
$SOURCE
"
)
"
>
/dev/null 2>&1
&&
pwd
)
# Image settings
REPO
=
"cellxgene_vip"
TAG
=
"3.1-small"
singularity_image
=
${
REPO
}
-
${
TAG
}
.img
outputDir
=
${
outputDir
:-
"
${
DIR
}
/../workflow/output/CELLxGENE/"
}
# Run container
module load singularity/3.9.9
SINGULARITYENV_outputDir
=
$outputDir
\
### TESTING ###
# If input is larger than 10GB, load in backed mode
# This will reduce time to start and should help with DEA
# But may break some other things
#if [ $(stat -c %s ${outputDir}/cxg_input.h5ad) -gt 10000000000 ]; then
# backed='--backed'
#fi
# Load user-submitted annotations if present
# Removed in favor of VIP functions
#if [[ -f ${outputDir}/gene_set.csv ]]; then
# singularity exec ${singularity_image} \
# cellxgene launch \
# --host 0.0.0.0 \
# --port 8123 \
# --gene-sets-file ${outputDir}/gene_set.csv \
# ${outputDir}/cxg_input.h5ad
# Otherwise initialize annotation output
singularity
exec
${
singularity_image
}
\
cellxgene launch
\
--host
0.0.0.0
\
--port
8123
\
--annotations-dir
${
outputDir
}
\
${
outputDir
}
/cxg_input.h5ad
This diff is collapsed.
Click to expand it.
Preview
0%
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