Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trio-whole-exome
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
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
igmmbioinformatics
trio-whole-exome
Commits
cc66bb22
Commit
cc66bb22
authored
3 years ago
by
not populated not populated
Browse files
Options
Downloads
Patches
Plain Diff
First draft of Slurm params
parent
c331202b
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Ultra 2 SOP/doc updates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
submit_trio_wes_checksums.sh
+11
-22
11 additions, 22 deletions
submit_trio_wes_checksums.sh
with
11 additions
and
22 deletions
submit_trio_wes_checksums.sh
+
11
−
22
View file @
cc66bb22
#!/bin/bash
#PBS -l walltime=48:00:00
#PBS -l ncpus=1,mem=2gb
#PBS -q uv2000
#PBS -N trio_whole_exome_checksums
#PBS -j oe
# enable running singletons
if
[
-z
$PBS_ARRAY_INDEX
]
then
if
[
-z
$INDEX
]
then
export
PBS_ARRAY_INDX
=
1
else
export
PBS_ARRAY_INDEX
=
$INDEX
fi
fi
#SBATCH --cpus-per-task=1
#SBATCH --mem=2GB
#SBATCH --time=6:00:00
#SBATCH --job-name=trio_whole_exome_checksums
#SBATCH --output=trio_whole_exome_checksums.%A_%a.out
#SBATCH --error=trio_whole_exome_checksums.%A_%a.err
# Expects environment variables to be set
# PROJECT_ID - e.g. 12345_LastnameFirstname
...
...
@@ -23,13 +13,13 @@ fi
source
$CONFIG_SH
FAMILY_ID
=
`
head
-n
$
PBS
_ARRAY_
INDEX
$PARAMS_DIR
/
$PROJECT_ID
.family_ids.txt |
tail
-n
1
`
FAMILY_ID
=
`
head
-n
$
SLURM
_ARRAY_
TASK_ID
$PARAMS_DIR
/
$PROJECT_ID
.family_ids.txt |
tail
-n
1
`
BASE
_PROJECT_ID
=
`
echo
$PROJECT_ID
|
cut
-f
1
-d
'_'
`
SHORT
_PROJECT_ID
=
`
echo
$PROJECT_ID
|
cut
-f
1
-d
'_'
`
# This assumes that ${
VERSION}_${PROJECT_ID
}_${FAMILY_ID} is unique, and it should be -
if there was
# a re-run of a family, it should have a new project id.
cd
$OUTPUT_DIR
/
${
VERSION
}
_
${
BASE
_PROJECT_ID
}
/
*
${
VERSION
}
_
${
PROJECT_ID
}
_
${
FAMILY_ID
}
*
# This assumes that ${
SHORT_PROJECT_ID}_${VERSION
}_${FAMILY_ID} is unique, and it should be -
#
if there was
a re-run of a family, it should have a new project id
and version
.
cd
$OUTPUT_DIR
/
${
SHORT
_PROJECT_ID
}
_
${
VERSION
}
/families/
*${
SHORT_
PROJECT_ID
}
_
${
VERSION
}
_
${
FAMILY_ID
}
rm
md5sum.txt 2> /dev/null
...
...
@@ -37,4 +27,3 @@ for file in `find . -type f | grep -v '\.bam'`
do
md5sum
$file
>>
md5sum.txt
done
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